Class Feature

  • All Implemented Interfaces:

    
    public final class Feature
    
                        

    A data class representing a single feature, which combines a geometry, its style, and arbitrary properties.

    This is a platform-agnostic representation of a feature to be rendered on a map.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Geometry getGeometry() The geometric object of the feature.
      final Style getStyle() The style to be applied to the feature.
      final Map<String, Object> getProperties() A map of arbitrary properties associated with the feature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getStyle

         final Style getStyle()

        The style to be applied to the feature. Can be null if no specific style is defined for the feature.

      • getProperties

         final Map<String, Object> getProperties()

        A map of arbitrary properties associated with the feature. Defaults to an empty map.