Class is useed to handle information in PickListener.
More...
Class is useed to handle information in PickListener.
Referenced from PickListener.
Definition at line 18 of file MapObjectPickResult.java.
◆ getMapObject()
| abstract MapObject com.navigine.idl.java.MapObjectPickResult.getMapObject |
( |
| ) |
|
|
abstract |
Picked map object MapObject.
- Returns
Java code snippet:
MapObject mapObject = mapObjectPickResult.getMapObject();
System.out.println(" Object type: " + mapObject.getClass().getSimpleName());
Kotlin code snippet:
val mapObject = mapObjectPickResult.mapObject
println(" Object type: ${mapObject::class.simpleName}")
◆ getPoint()
| abstract LocationPoint com.navigine.idl.java.MapObjectPickResult.getPoint |
( |
| ) |
|
|
abstract |
Location of the picked map object LocationPoint.
- Returns
Java code snippet:
LocationPoint point = mapObjectPickResult.getPoint();
System.out.println(
"Map object picked at screen position (" + screenPosition.
x +
", " + screenPosition.
y +
")");
System.out.println(" Object location: (" + point.getX() + ", " + point.getY() + ")");
Kotlin code snippet:
val point = mapObjectPickResult.point
println("Map object picked at screen position (${screenPosition.x}, ${screenPosition.y})")
println(" Object location: (${point.x}, ${point.y})")
The documentation for this class was generated from the following file: