commit f8a138c2c983001934e714a298b72c81e24319a2
parent 77f1fcadb53dc04c589750b5b84015cc474eb65f
Author: Sergey Orlov <wladimirych@gmail.com>
Date: Thu, 8 Jul 2021 00:18:33 +0200
update url for Yandex maps
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/lib/leaflet.layer.yandex/index.js b/src/lib/leaflet.layer.yandex/index.js
@@ -5,7 +5,6 @@ const yandexCrs = L.CRS.EPSG3395;
L.Layer.Yandex = L.TileLayer.extend({
options: {
- subdomains: '1234',
className: L.Browser.retina ? '' : 'yandex-tile-layer',
yandexScale: L.Browser.retina ? 2 : 1
},
@@ -42,7 +41,7 @@ L.Layer.Yandex.Map = L.Layer.Yandex.extend({
initialize: function(options) {
L.Layer.Yandex.prototype.initialize.call(
this,
- 'https://vec0{s}.maps.yandex.net/tiles?l=map&x={x}&y={y}&z={z}&scale={yandexScale}',
+ 'https://core-renderer-tiles.maps.yandex.net/tiles?l=map&x={x}&y={y}&z={z}&scale={yandexScale}',
options
);
},
@@ -52,7 +51,7 @@ L.Layer.Yandex.Sat = L.Layer.Yandex.extend({
initialize: function(options) {
L.Layer.Yandex.prototype.initialize.call(
this,
- 'https://sat0{s}.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z}',
+ 'https://core-sat.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z}',
options
);
},