Skip to content

Instantly share code, notes, and snippets.

@iomonad
Created June 26, 2025 16:18
Show Gist options
  • Save iomonad/8c131756d6c55cc659f1b1b3853f3843 to your computer and use it in GitHub Desktop.
Save iomonad/8c131756d6c55cc659f1b1b3853f3843 to your computer and use it in GitHub Desktop.
How to use Yandex Map projection on Openlayers3
new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'http://vec0{1-4}.maps.yandex.net/tiles?l=map&x={x}&y={y}&z={z}',
projection: 'EPSG:3395',
tileGrid: ol.tilegrid.createXYZ({
extent: [-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244]
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment