public class

VectorTileFeature

extends Feature
java.lang.Object
   ↳ com.carto.geometry.Feature
     ↳ com.carto.geometry.VectorTileFeature

Class Overview

A vector tile feature consisting of id, layer, geometry and properties.

Summary

Public Constructors
VectorTileFeature(long id, MapTile mapTile, String layerName, Geometry geometry, Variant properties)
Constructs a VectorTileFeature object from id, layer name, geometry and properties.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
long getId()
Returns the id of the feature.
String getLayerName()
Returns the layer name of the feature.
MapTile getMapTile()
Returns the map tile of the feature.
int hashCode()
Returns the hash value of this object.
[Expand]
Inherited Methods
From class com.carto.geometry.Feature
From class java.lang.Object

Public Constructors

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.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public long getId ()

Returns the id of the feature.

Returns
  • The id of the feature.

public String getLayerName ()

Returns the layer name of the feature.

Returns
  • The layer name of the feature.

public MapTile getMapTile ()

Returns the map tile of the feature.

Returns
  • The map tile of the feature.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.