Package 

Class POIAnnotationData

  • All Implemented Interfaces:

    
    public final class POIAnnotationData
    
                        

    Data class representing parameters for creating POI (Point of Interest) annotations on the map.

    This class encapsulates all the necessary information to create, display, and update a POI annotation. It supports both custom graphics and style-based rendering, and provides a flexible way to store/update additional dynamic properties through string and float value maps.

    • Constructor Detail

      • POIAnnotationData

        POIAnnotationData(String id, Boolean isUserGraphic, Annotation.UserGraphic userGraphic, String styleKey, Location location, String text, Bundle extrasInfo)
        Parameters:
        id - unique id for the search POI, make sure it's unique so that we can identify the annotation
        isUserGraphic - true if using a custom graphic for the annotation, false if using a style key
        userGraphic - the custom graphic for the annotation, used if isUserGraphic is true
        styleKey - the style key for the annotation, used if isUserGraphic is false
        location - the location of the POI
        text - the text to display on the annotation
        extrasInfo - additional information for the location, can be used to store extra data
    • Method Detail

      • getId

         final String getId()
      • setUserGraphic

         final Unit setUserGraphic(Boolean isUserGraphic)
        Parameters:
        isUserGraphic - true if using a custom graphic for the annotation, false if using a style key
      • addStringValue

         final POIAnnotationData addStringValue(String key, String value)

        Add a string value to the POI annotation.

        Parameters:
        key - the key for the string value
        value - the string value to add return itself for chaining
      • addFloatValue

         final POIAnnotationData addFloatValue(String key, Float value)

        Add a float value to the POI annotation.

        Parameters:
        key - the key for the float value
        value - the float value to add
      • getStringValues

         final Map<String, String> getStringValues()

        Returns the map of custom string key-value pairs attached to this POI annotation.

      • getFloatValues

         final Map<String, Float> getFloatValues()

        Returns the map of custom float key-value pairs attached to this POI annotation.

      • equals

         Boolean equals(Object other)