getNearestNodeByScreenCoordinates

abstract fun getNearestNodeByScreenCoordinates(    x: Int,     y: Int,     map: MPIMap? = null,     nearestNodeCallback: (MPINavigatable.MPINode?) -> Unit)

Gets the nearest node by screen coordinates

Return

Unit

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