Class Feature
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.feature.Feature
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LineStringFeature
,MarkerFeature
,PointFeature
,PolygonFeature
Abstract class for vector object for geographic features with a geometry.
For more details see: Feature docs
- See Also:
-
Nested Class Summary
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, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds style to the feature.protected String
getType()
void
Removes all added styles from feature.void
removeStyles
(Style... styles) Removes styles from feature.Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, unmarkDirtyInDepth
-
Field Details
-
geometry
-
styles
-
-
Constructor Details
-
Feature
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getGeometry
- Returns:
- feature's geometry
-
getStyles
- Returns:
- list of added style or empty list if no styles added
-
addStyles
Adds style to the feature. Note, if the feature contains custom styles, the default styles or added ones to the layer won't be applied to this feature. And you have to provide fully described style to the specific feature.- Parameters:
styles
- styles to add- Returns:
- current instance
-
removeStyles
Removes styles from feature.- Parameters:
styles
- styles to remove
-
removeAllStyles
public void removeAllStyles()Removes all added styles from feature.
-