locationToScreen

Converts a coordinate within the map view'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.

This method can't be called until a map has been set to the map view by calling MapView.map. If called before the map view is ready, an exception will occur.

Return

A ScreenCoordinate for the screen in pixels. NAN for x and y if an error occurs

Since

200.0.0

Parameters

mapPoint

a Point object representing a coordinate on the map