Class MapObjectDescriptor
Package com.here.sdk.mapview
Class MapObjectDescriptor
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.MapObjectDescriptor
-
public final class MapObjectDescriptor extends NativeBase
Interface represents descriptor of a pickable map object.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoCoordinatesgetClosestPoint()Return a geo point of the picked object, closest to the picking location.DataAttributesgetDataAttributes()Returns data attributes of a map object.java.lang.StringgetLayerName()Returns the name of the layer where this picked item came from.
-
-
-
Method Detail
-
getLayerName
@NonNull public java.lang.String getLayerName()
Returns the name of the layer where this picked item came from.
- Returns:
The name of the layer map object belongs to.
-
getDataAttributes
@NonNull public DataAttributes getDataAttributes()
Returns data attributes of a map object.
- Returns:
The data attributes of a map object.
-
getClosestPoint
@Nullable public GeoCoordinates getClosestPoint()
Return a geo point of the picked object, closest to the picking location. For polygons and polylines
nullis returned.- Returns:
The coordinates of a map object.
-
-