From 2fe170c341024ddaf4301c64e8404a16c37e5177 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sat, 2 Jul 2016 15:33:32 +0300 Subject: [PATCH] =?UTF-8?q?ADD=20=D0=BB=D0=B8=D0=BD=D0=B5=D0=B9=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BC=D0=B0=D1=81=D1=88=D1=82=D0=B0=D0=B1=D0=B0=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BA=D0=B0=D1=80=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/map.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/map.js b/public/js/map.js index dc26d00..c2d49e1 100644 --- a/public/js/map.js +++ b/public/js/map.js @@ -67,6 +67,8 @@ function init(lat, lng) { markers = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 30}); // markersPlus = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 25}); + 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['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});