com.vaadin.flow.component.map.configuration.
Class Feature
All Implemented Interfaces:
Direct Known Subclasses:
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 a
Point
or a polygon.getStyle()
The
Style
defines how the feature should be visually displayed.getType()
The unique type name of this class.
void
setGeometry
(SimpleGeometry geometry) Sets the geometry representing the feature.
void
Sets 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:
AbstractConfigurationObject
The unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.
Specified by:
getType
in classAbstractConfigurationObject
-
getGeometry
The geometry representing the feature, for example a
Point
or a polygon.Returns:
the current geometry
-
setGeometry
Sets the geometry representing the feature.
Parameters:
geometry
- the new geometry, not null -
getStyle
The
Style
defines 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
-