---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/projection.sphericalMercator.md
  - https://yandex.com/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/projection.sphericalMercator.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/jsapi-v2-1/doc/en/llms.txt

# projection.sphericalMercator

Static object.

Instance of [IProjection](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md)

Mercator projection on a sphere. It is used by many cartographic services, including OpenStreetMap.

[Methods](#methods-summary)

**Example:**

```javascript
// 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 {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [fromGlobalPixels](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#fromGlobalPixels)([globalPixelPoint](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#fromGlobalPixels-param-globalPixelPoint), [zoom](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#fromGlobalPixels-param-zoom)) | Number[] | Converts pixel coordinates to the projection's coordinates at the specified zoom level. ||
|| [getCoordSystem](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#getCoordSystem)() | [ICoordSystem](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICoordSystem.md) | Returns the coordinate system that is used by the projection. ||
|| [isCycled](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#isCycled)() | Boolean[] | Indicator of projection cycling. ||
|| [toGlobalPixels](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#toGlobalPixels)([coordPoint](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#toGlobalPixels-param-coordPoint), [zoom](https://yandex.com/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IProjection.md#toGlobalPixels-param-zoom)) | Number[] | Converts projection coordinates to global pixel coordinates at the specified zoom level. ||
|#

