diff --git a/public/js/map.js b/public/js/map.js index e0a99a8..4e7a238 100644 --- a/public/js/map.js +++ b/public/js/map.js @@ -70,6 +70,7 @@ function init(lat, lng) { L.control.scale({imperial: false}).addTo(myMap); // layers['quest'] = L.tileLayer('https://otile1-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', {attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox | Points data © WIKIPOINTS.RU', maxZoom: 18}); + layers['sputnik'] = L.tileLayer('https://topo.wikipoints.ru/sputnik/{z}/{x}/{y}.png', {attribution: 'Map data © OpenStreetMap contributors, Sputnik, CC-BY-SA | Points data © WIKIPOINTS.RU', maxZoom: 18}); layers['osm'] = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA | Points data © WIKIPOINTS.RU', maxZoom: 18}); layers['topo'] = L.tileLayer('https://topo.wikipoints.ru/?z={z}&x={x}&y={y}&ver=0216', {attribution: 'Map data © OpenStreetMap contributors, CC-BY-SA, Imagery © Маршруты.ру | Points data © WIKIPOINTS.RU', maxZoom: 15}); layers['google'] = new L.Google('HYBRID'); @@ -77,10 +78,10 @@ function init(lat, lng) { layers['yandex'] = new L.Yandex('hybrid'); if ($.cookie('mapLayer') && $.cookie('mapLayer') == 'quest') { - setLayer('osm'); + setLayer('sputnik'); } - setLayer($.cookie('mapLayer') ? $.cookie('mapLayer') : 'osm'); + setLayer($.cookie('mapLayer') ? $.cookie('mapLayer') : 'sputnik'); initCategories(); // getPoints внутри diff --git a/views/indexTemplate.php b/views/indexTemplate.php index 3903bdc..c395c43 100644 --- a/views/indexTemplate.php +++ b/views/indexTemplate.php @@ -30,6 +30,7 @@ if (App::$user) {