locationToScreenOrNull

fun locationToScreenOrNull(mapPoint: Point): ScreenCoordinate?

Converts a coordinate within the mapview's spatial reference to a screen coordinate (in pixels). If the wraparound mode is active, this method returns the closest screen location matching the specified map location. 'Closest' meaning: If it's in view, return that location, otherwise return for the frame where the location is the closest to the center of the view.

Return

A ScreenCoordinate for the screen in pixels. Returns null if an error occurs

Since

200.4.0

Parameters

mapPoint

a Point object representing a coordinate on the map