Class BaseVectorLayer<S extends AbstractVectorSource>
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.layer.Layer<S>
io.jmix.mapsflowui.kit.component.model.layer.BaseVectorLayer<S>
- All Implemented Interfaces:
HasBaseLayerOptions
,Serializable
- Direct Known Subclasses:
BaseHeatmapLayer
,NoOpVectorLayer
,VectorLayer
Base class for layers with vector data that is rendered client-side.
For more details see: BaseVectorLayer docs
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface to be implemented by layers that should provide "background" attribute management.static interface
Options for layer that renders vector data client-side.static interface
Interface to be implemented by layers that should provide "declutter" attribute management.static interface
Interface to be implemented by layers that should provide "render-buffer" attribute management.static interface
Interface to be implemented by layers that should provide "updateWhileAnimating" attribute management.static interface
Interface to be implemented by layers that should provide "updateWhileInteracting" attribute management.Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent
-
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds styles that should be merged with default.protected String
protected Boolean
protected BaseVectorLayerOptions
protected Double
protected Boolean
protected Boolean
protected void
Clears list of styles.protected void
removeStyles
(Style... styles) Removes provided styles from layer.protected void
setBackground
(String color) protected void
setDeclutter
(Boolean declutter) protected void
setRenderBuffer
(Double renderBuffer) protected void
setUpdateWhileAnimating
(Boolean updateWhileAnimating) protected void
setUpdateWhileInteracting
(Boolean updateWhileInteracting) Methods inherited from class io.jmix.mapsflowui.kit.component.model.layer.Layer
createOptions, getClassName, getExtent, getId, getMaxZoom, getMinZoom, getOpacity, getSource, getVisible, getZIndex, setClassName, setExtent, setId, setMaxZoom, setMinZoom, setOpacity, setSource, setVisible, setZIndex, withClassName, withExtent, withId, withMaxZoom, withMinZoom, withOpacity, withSource, withVisible, withZIndex
Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, getType, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Field Details
-
styles
-
-
Constructor Details
-
BaseVectorLayer
public BaseVectorLayer()
-
-
Method Details
-
getRenderBuffer
-
setRenderBuffer
-
getDeclutter
-
setDeclutter
-
getBackground
-
setBackground
-
getUpdateWhileAnimating
-
setUpdateWhileAnimating
-
getUpdateWhileInteracting
-
setUpdateWhileInteracting
-
getStyles
- Returns:
- layer's styles or empty list
-
addStyles
Adds styles that should be merged with default. Layer's styles are applied for all added features, except features with own style.- Parameters:
styles
- styles to add
-
removeStyles
Removes provided styles from layer.- Parameters:
styles
- styles to remove
-
removeAllStyles
protected void removeAllStyles()Clears list of styles. -
getOptions
- Specified by:
getOptions
in classLayer<S extends AbstractVectorSource>
-