Projection
Projection.
Uses the Mercator spherical projection (EPSG:3857), looped in longitude. Displayed data is limited in latitude from -85.06° to 85.06°.
Extends:
ru.dgis.sdk.NativeObject
Methods
fun screenToMap(point: ScreenPoint): GeoPoint?
Calculates a map point at the specified screen point.
The function returns an empty value if the specified screen point is outside the map projection.
Parameters
fun mapToScreen(point: GeoPoint): ScreenPoint?
Calculating the screen point corresponding to the specified map point.
The function returns an empty value:
Parameters
fun mapToScreen(point: GeoPointWithElevation): ScreenPoint?
Calculates the screen point corresponding to the specified map point with elevation.
The function returns an empty value:
- if the point has an invalid value (latitude is outside the range -90;90, longitude is outside the range -180;180, or elevation is negative).
- if the specified map point is above the projection plane of the map on the screen.
- if the specified map point is too far beyond the screen and the type overflow occurs.
Parameters
fun screenToMapClipped(point: ScreenPoint): GeoPoint
Calculating the nearest map point to the projection of the specified screen point.
Parameters