X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/824a474d933a3f5010717dd41097e65a25f8130c..648f23259680f55d233656413679c58eec98c985:/app/assets/javascripts/application.js diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index b608a1cd0..8d6c13503 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -4,7 +4,11 @@ //= require jquery.timers //= require jquery.cookie //= require augment -//= require openlayers +//= require leaflet +//= require leaflet.osm +//= require leaflet.locationfilter +//= require leaflet.pan +//= require leaflet.zoom //= require i18n/translations //= require osm //= require piwik @@ -99,7 +103,7 @@ function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat,object) { // ?{node,way,relation}= can be safely omitted from the shortlink // which encodes lat/lon/zoom. If new URL parameters are added to // the main slippy map this needs to be changed. - if (args.layers || args[object.type]) { + if (args.layers || object) { this.href = setArgs(prefix + "/go/" + code, args); } else { this.href = prefix + "/go/" + code;