Package com.yandex.mapkit.geometry.geo
Interface Projection
interface Projection
Makes two conversions: world-XY and XY-world, where XY are tile indexes.
There are two main derived classes: spherical mercator (google, osm) and wgs84 mercator (yandex).
Summary
Methods
Type and modifiers |
Method and Description |
worldToXY(@NonNull Point geoPoint, |
|
xyToWorld(@NonNull XYPoint xyPoint, |
|
boolean |
isValid() |
Methods
worldToXY
@NonNull |
Converts the world coordinates to a flat world position.
xyToWorld
@NonNull |
Converts the flat world position to world coordinates.
isValid
boolean isValid() |
Tells if this Projection is valid or not.
Any other method (except for this one) called on an invalid Projection will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.