Class VectorLayer
- java.lang.Object
-
- com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
-
- com.vaadin.flow.component.map.configuration.layer.Layer
-
- com.vaadin.flow.component.map.configuration.layer.VectorLayer
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FeatureLayer
public class VectorLayer extends Layer
Layer for rendering vector data client-side- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description VectorLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcegetSource()StringgetType()The unique type name of this class.voidsetSource(VectorSource source)Sets the source for this layer.-
Methods inherited from class com.vaadin.flow.component.map.configuration.layer.Layer
getBackground, getMaxZoom, getMinZoom, getOpacity, getzIndex, isVisible, setBackground, setMaxZoom, setMinZoom, setOpacity, setVisible, setzIndex
-
Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
-
-
-
Method Detail
-
getType
public String getType()
Description copied from class:AbstractConfigurationObjectThe unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.- Specified by:
getTypein classAbstractConfigurationObject
-
getSource
public Source getSource()
- Returns:
- source for this layer, null by default
-
setSource
public void setSource(VectorSource source)
Sets the source for this layer. The source must be a subclass ofVectorSource, which means that it must provide vector data.- Parameters:
source- the new source for the layer, not null
-
-