Class Feature
java.lang.Object
com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
com.vaadin.flow.component.map.configuration.Feature
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PointBasedFeature
A geographic feature to be displayed on a map. A feature represents a point
of interest, such as an address, a building, a vehicle, or any other entity.
- See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe geometry representing the feature, for example aPointor a polygon.getStyle()TheStyledefines how the feature should be visually displayed.getType()The unique type name of this class.voidsetGeometry(SimpleGeometry geometry) Sets the geometry representing the feature.voidSets the style that defines how the feature should be visually displayed.Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
Constructor Details
-
Feature
public Feature()
-
-
Method Details
-
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
-
getGeometry
The geometry representing the feature, for example aPointor a polygon.- Returns:
- the current geometry
-
setGeometry
Sets the geometry representing the feature.- Parameters:
geometry- the new geometry, not null
-
getStyle
TheStyledefines how the feature should be visually displayed.- Returns:
- the current style
-
setStyle
Sets the style that defines how the feature should be visually displayed.- Parameters:
style- the new style, not null
-