get Nearest Node By Screen Coordinates
open override fun getNearestNodeByScreenCoordinates( x: Int, y: Int, map: MPIMap?, nearestNodeCallback: (MPINavigatable.MPINode?) -> Unit)
Content copied to clipboard
Gets the nearest node by screen coordinates
Return
Parameters
x
The x coordinate based off WebView dimensions
y
The y coordinate based off WebView dimensions
map
Optional map to find the nearest node on, defaults to the current map if null
nearest Node Callback
Returns a node if it finds one
open suspend override fun getNearestNodeByScreenCoordinates( x: Int, y: Int, map: MPIMap?): MPINavigatable.MPINode
Content copied to clipboard
Gets the nearest node by screen coordinates
Return
the nearest MPINavigatable.MPINode
Parameters
x
The x coordinate based off WebView dimensions
y
The y coordinate based off WebView dimensions
map
Optional map to find the nearest node on, defaults to the current map if null