Interface IMapDataFeature

All Known Subinterfaces:
IMapDataFeatureWrapped

public interface IMapDataFeature
Represents a GeoJSON feature on the map
Author:
swong
  • Method Summary

    Modifier and Type Method Description
    IMapDataGeometry getGeometry()
    Get the IMapDataGeometry that defines this feature.
    java.lang.String getMapDataFeatureId()
    Get the ID of the feature
    java.util.Map<java.lang.String,​java.lang.String> getProperties()
    Get a dictionary of the feature's defined properties
    static IMapDataFeature make​(java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> propertiesMap, IMapDataGeometry geometry)
    *** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD! ***
    Factory method to instantiate an IMapDataFeature instance from the given data
    static com.google.gson.TypeAdapterFactory makeTypeAdapterFactory()
    *** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD! ***
    Factory method to make the TypeAdapterFactory for use by GSON to process instances of this class.
  • Method Details

    • getMapDataFeatureId

      java.lang.String getMapDataFeatureId()
      Get the ID of the feature
      Returns:
      The feature's ID
    • getProperties

      java.util.Map<java.lang.String,​java.lang.String> getProperties()
      Get a dictionary of the feature's defined properties
      Returns:
      A dictionary mapping the name of the property to its value
    • getGeometry

      IMapDataGeometry getGeometry()
      Get the IMapDataGeometry that defines this feature.
      Returns:
      The geometry object for this feature
    • make

      static IMapDataFeature make​(java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> propertiesMap, IMapDataGeometry geometry)
      *** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD! ***
      Factory method to instantiate an IMapDataFeature instance from the given data
      Parameters:
      id - The ID value of the feature
      propertiesMap - A dictionary of the names of the properties of this feture mapped to the associated property value
      geometry - The geometry that defines this feature.
      Returns:
      A new IMapDataFeature instance
    • makeTypeAdapterFactory

      static com.google.gson.TypeAdapterFactory makeTypeAdapterFactory()
      *** FOR INTERNAL USE ONLY!! DEVELOPER CODE SHOULD NEVER USE THIS METHOD! ***
      Factory method to make the TypeAdapterFactory for use by GSON to process instances of this class.
      Returns:
      A TypeAdapterFactory instance