screenToLocationOrNull

fun screenToLocationOrNull(screenCoordinate: ScreenCoordinate): Point?

Converts a screen coordinate (in pixels) to a coordinate within the mapview's spatial reference.

May return null in some circumstances, such as if the mapview's spatial reference has not been determined yet.

Return

a Point object, or null if the location could not be determined or an error occurs

Since

200.4.0

Parameters

screenCoordinate

the screen point, in pixels