Skip to content

Commit

Permalink
Merge pull request #9 from matafokka/development
Browse files Browse the repository at this point in the history
Fixed Yandex Maps
  • Loading branch information
matafokka authored Jul 25, 2021
2 parents 93c05dd + b2b267c commit 01d429a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ let layerSystem = new L.ALS.System(map, {
let osmLayer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
noWrap: true,
attribution: '&copy; <a href="https://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
});
layerSystem.addBaseLayer(osmLayer, "Open Street Maps");

Expand All @@ -75,9 +74,8 @@ for (let letter of letters) {
// Yandex maps
let countries = ["ru_RU", "en_US", "uk_UA", "tr_TR"];
for (let country of countries) {
let layer = L.tileLayer("http://vec{s}.maps.yandex.net/tiles?l=map&v=4.55.2&z={z}&x={x}&y={y}&scale=2&lang=" + country, {
let layer = L.tileLayer(`https://core-renderer-tiles.maps.yandex.net/tiles?l=map&v=21.07.25-1-b210701140430&x={x}&y={y}&z={z}&scale=1&lang=${country}&experimental_data_poi=no_extra_orgs`, {
subdomains: ['01', '02', '03', '04'],
attribution: '<a href="yandex.ru" target="_blank">Yandex</a>',
reuseTiles: true,
updateWhenIdle: false,
noWrap: true,
Expand Down

0 comments on commit 01d429a

Please sign in to comment.