You're viewing an older version of Vaadin JavaDoc. Please see version 24.8.0 for the latest.
com.vaadin.flow.component.map.configuration.

All Implemented Interfaces:

Serializable

Direct Known Subclasses:

PointBasedFeature

public abstract class Feature extends AbstractConfigurationObject

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:

  • Constructor Details

    • Feature

      public Feature()
  • Method Details

    • getType

      public String 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 class AbstractConfigurationObject

    • getGeometry

      public SimpleGeometry getGeometry()

      The geometry representing the feature, for example a Point or a polygon.

      Returns:

      the current geometry

    • setGeometry

      public void setGeometry(SimpleGeometry geometry)

      Sets the geometry representing the feature.

      Parameters:

      geometry - the new geometry, not null

    • getStyle

      public Style getStyle()

      The Style defines how the feature should be visually displayed.

      Returns:

      the current style

    • setStyle

      public void setStyle(Style style)

      Sets the style that defines how the feature should be visually displayed.

      Parameters:

      style - the new style, not null