Package com.massifmaps.geometry
Class VectorTileFeature
java.lang.Object
com.massifmaps.geometry.Feature
com.massifmaps.geometry.VectorTileFeature
A vector tile feature consisting of id, layer, geometry and properties.
-
Constructor Summary
ConstructorsConstructorDescriptionVectorTileFeature(long id, MapTile mapTile, String layerName, Geometry geometry, Variant properties) Constructs a VectorTileFeature object from id, layer name, geometry and properties. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.doublelonggetId()Returns the id of the feature.Returns the layer name of the feature.Returns the map tile of the feature.inthashCode()Returns the hash value of this object.voidsetDistance(double value) Methods inherited from class com.massifmaps.geometry.Feature
getGeometry, getGeometryGeoJSON, getProperties
-
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 featurelayerName- The name of the layer of the feature.geometry- The geometry of the feature.properties- The properties of the feature.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getId
public long getId()Returns the id of the feature.- Returns:
- The id of the feature.
-
getMapTile
Returns the map tile of the feature.- Returns:
- The map tile of the feature.
-
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)
-