X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef448ea4946091c1bd671b2169f31f9b22e6f7cb..66039dedb069400298717415e7c9ce4e444bfcdb:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 5b0687649..75b48ac87 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -20,10 +20,6 @@ var querystring = require('querystring-component'); -function zoomPrecision(zoom) { - return Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2)); -} - function remoteEditHandler(bbox, object) { var loaded = false, query = { @@ -78,7 +74,7 @@ function updateLinks(loc, zoom, layers, object) { args = { lat: loc.lat, - lon: loc.lon || loc.lng, + lon: 'lon' in loc ? loc.lon : loc.lng, zoom: zoom }; @@ -138,7 +134,3 @@ $(document).ready(function () { $("header").toggleClass("closed"); }); }); - -if (Math.random() * 100 < 20) { - L.OSM.Mapnik.prototype.options.url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; -}