0

How can I add Yandex satellite map in OpenLayers?

new ol.layer.Tile({
  title: "Yandex Uydu",
  baseLayer: true,
  visible: true,
  source: new ol.source.XYZ({
    url: 'http://vec0{1-4}.maps.yandex.net/tiles?lang=tr_TR&l=s&x={x}&y={y}&z={z}',
    maxZoom: 19,
    attributions: [new ol.Attribution({
    html: '© Yandex'
    })],
     projection: 'EPSG:3395',
     tileGrid: ol.tilegrid.createXYZ({
       extent: [-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244]
     })
   })
})

My code

  • 1
    https://sat0{1-4}.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z} – Mike Feb 25 at 13:59
  • 1
    Can we put this comment in answer form if it solved the issue? – Gabriel C. Feb 25 at 14:12
1

The satellite image tile url template is

https://sat0{1-4}.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z}

A language parameter is accepted but since there are no labels it has no effect

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.