X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/66aac9ca879d40f5e5767037c25e5867448586f9..0de6885a91e1740e3e2740287cb2d576de827844:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 7072b7c6b..6ac398fc5 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 }; @@ -101,12 +97,6 @@ function updateLinks(loc, zoom, layers, object) { I18n.t('javascripts.site.edit_disabled_tooltip') : ''); } -// generate a cookie-safe string of map state -function cookieContent(map) { - var center = map.getCenter().wrap(); - return [center.lng, center.lat, map.getZoom(), map.getLayersCode()].join('|'); -} - function escapeHTML(string) { var htmlEscapes = { '&': '&',