geoToViewCoordinates method - MapViewBase class - mapview library - Dart API
geoToViewCoordinates
geoToViewCoordinates abstract method
- GeoCoordinates geoCoordinates
Converts geographical coordinates to view coordinates (in pixels).
If specified, altitude of the input coordinates is interpreted as altitude above sea level. If not specified, the input coordinates are interpreted as being on ground elevation. The above distinction is only relevant when 3D terrain feature is enabled.
The resulting view coordinates might be outside of current viewport, i.e. result might contain values less than zero or greater than view's dimensions.
If the render surface is not attached, it will return null.
geoCoordinatesGeographical coordinates to convert.
Returns Point2D?. The view coordinates of the specified geographical point or null
if there is no render surface attached.
Implementation
Point2D? geoToViewCoordinates(GeoCoordinates geoCoordinates);