X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ee3e5d56d2596443c6bb66a30bbedcf6c3664b56..f2d13c075660efb9582d7fb600bd6798d7a382ca:/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 = { '&': '&',