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

public abstract class Feature extends MapObservableObject
Abstract class for vector object for geographic features with a geometry.

For more details see: Feature docs

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      protected String getType()
      Specified by:
      getType in class MapObservableObject
    • getGeometry

      public SimpleGeometry getGeometry()
      Returns:
      feature's geometry
    • getStyles

      public List<Style> getStyles()
      Returns:
      list of added style or empty list if no styles added
    • addStyles

      public Feature addStyles(Style... styles)
      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

      public void removeStyles(Style... styles)
      Removes styles from feature.
      Parameters:
      styles - styles to remove
    • removeAllStyles

      public void removeAllStyles()
      Removes all added styles from feature.