Class VectorTileFeature

java.lang.Object
com.massifmaps.geometry.Feature
com.massifmaps.geometry.VectorTileFeature

public class VectorTileFeature extends Feature
A vector tile feature consisting of id, layer, geometry and properties.
  • Constructor Details

    • VectorTileFeature

      public VectorTileFeature(long id, MapTile mapTile, String layerName, Geometry geometry, Variant properties)
      Constructs a VectorTileFeature object from id, layer name, geometry and properties.
      Parameters:
      id - The id of the feature.
      mapTile - The map tile of this feature
      layerName - The name of the layer of the feature.
      geometry - The geometry of the feature.
      properties - The properties of the feature.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Feature
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Feature
      Returns:
      The hash value of this object.
    • getId

      public long getId()
      Returns the id of the feature.
      Returns:
      The id of the feature.
    • getMapTile

      public MapTile getMapTile()
      Returns the map tile of the feature.
      Returns:
      The map tile of the feature.
    • getLayerName

      public String getLayerName()
      Returns the layer name of the feature.
      Returns:
      The layer name of the feature.
    • getDistance

      public double getDistance()
    • setDistance

      public void setDistance(double value)