java.lang.Object | |
↳ | com.carto.ui.VectorTileClickInfo |
A container class that provides information about a click performed on vector tile feature.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
MapPos |
getClickPos()
Returns the click position.
| ||||||||||
ClickType |
getClickType()
Returns the click type.
| ||||||||||
VectorTileFeature |
getFeature()
Returns the clicked feature.
| ||||||||||
MapPos |
getFeatureClickPos()
Returns the position on the clicked feature, that is close to the click position.
| ||||||||||
long |
getFeatureId()
Returns the id of the clicked feature.
| ||||||||||
String |
getFeatureLayerName()
Returns the name of the layer of the clicked feature.
| ||||||||||
Layer |
getLayer()
Returns the layer of the vector tile.
| ||||||||||
MapTile |
getMapTile()
Returns the tile id of the clicked feature.
| ||||||||||
int |
hashCode()
Returns the hash value of this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Checks if this object is equal to the specified object.
obj | The reference object. |
---|
Returns the click position.
Returns the clicked feature.
Returns the position on the clicked feature, that is close to the click position.
For points it will always be the center position, for lines it will be the closest point
on the line, for billboards it will be the anchor point and for polygons it's equal to
getClickPos().
Returns the id of the clicked feature.
Returns the name of the layer of the clicked feature.
Note that this is the layer name in the tile, not the name of style layer.
Returns the layer of the vector tile.
Returns the tile id of the clicked feature.
Returns the hash value of this object.