get Nearest Node By Screen Coordinates
abstract fun getNearestNodeByScreenCoordinates(x: Int, y: Int, map: MPIMap? = null, 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
nearestNodeCallback
Returns a node if it finds one