projection.sphericalMercator
Static object.
Instance of IProjection
Mercator projection on a sphere. It is used by many cartographic services, including OpenStreetMap.
Example:
// Creating the map in the spherical Mercator projection
var map = new ymaps.Map('YMapsID', {
center: [55, 37],
zoom: 6
}, {
projection: ymaps.projection.sphericalMercator
});
map.layers.add(new ymaps.Layer('http://tile.openstreetmap.org/%z/%x/%y.png'));
Methods
Name |
Returns |
Description |
Number[] |
Converts pixel coordinates to the projection's coordinates at the specified zoom level. |
|
Returns the coordinate system that is used by the projection. |
||
isCycled() |
Boolean[] |
Indicator of projection cycling. |
Number[] |
Converts projection coordinates to global pixel coordinates at the specified zoom level. |