X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c3cdd4b5d732ae6ea7a65490ed6797190f3f4330..1debc147b8c4d9c917d54a279dcf0e2718e0665e:/app/assets/javascripts/index.js diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 7744b1ae4..6ea276230 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -1,6 +1,5 @@ //= require_self //= require leaflet.sidebar -//= require leaflet.customzoom //= require leaflet.locate //= require leaflet.layers //= require leaflet.key @@ -56,7 +55,7 @@ $(document).ready(function () { map.invalidateSize(); }); - L.control.customZoom({position: 'topright'}) + L.OSM.zoom({position: 'topright'}) .addTo(map); L.control.locate({position: 'topright'}) @@ -75,11 +74,6 @@ $(document).ready(function () { sidebar: sidebar }).addTo(map); - L.OSM.note({ - position: 'topright', - sidebar: sidebar - }).addTo(map); - L.OSM.share({ getShortUrl: getShortUrl, getUrl: getUrl, @@ -87,6 +81,11 @@ $(document).ready(function () { short: true }).addTo(map); + L.OSM.note({ + position: 'topright', + sidebar: sidebar + }).addTo(map); + L.control.scale() .addTo(map);