X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c162c065c6f6db5dc584599f5639b296b627a165..118347444f0564d427b62535a953401549063303:/app/assets/javascripts/leaflet.map.js diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index 4d9fbac8e..797a57e20 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -1,3 +1,5 @@ +//= require querystring + L.extend(L.LatLngBounds.prototype, { getSize: function () { return (this._northEast.lat - this._southWest.lat) * @@ -114,7 +116,8 @@ L.OSM.Map = L.Map.extend({ params.mlon = latLng.lng.toFixed(precision); } - var url = window.location.protocol + "//" + OSM.SERVER_URL + "/", + var querystring = require("querystring-component"), + url = window.location.protocol + "//" + OSM.SERVER_URL + "/", query = querystring.stringify(params), hash = OSM.formatHash(this); @@ -180,7 +183,8 @@ L.OSM.Map = L.Map.extend({ params[this._object.type] = this._object.id; } - var query = querystring.stringify(params); + var querystring = require("querystring-component"), + query = querystring.stringify(params); if (query) { str += "?" + query; }