X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/447c05fcb8e306b1be53b4108f816ac8d5663324..79447e75497601444a9d4de25220f24a609d2780:/app/assets/javascripts/leaflet.map.js diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index 3e37ccb42..d47b89617 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -1,4 +1,4 @@ -//= require querystring +//= require qs/dist/qs L.extend(L.LatLngBounds.prototype, { getSize: function () { @@ -126,9 +126,8 @@ L.OSM.Map = L.Map.extend({ params.mlon = latLng.lng.toFixed(precision); } - var querystring = require("querystring-component"), - url = window.location.protocol + "//" + OSM.SERVER_URL + "/", - query = querystring.stringify(params), + var url = window.location.protocol + "//" + OSM.SERVER_URL + "/", + query = Qs.stringify(params), hash = OSM.formatHash(this); if (query) url += "?" + query; @@ -193,8 +192,7 @@ L.OSM.Map = L.Map.extend({ params[this._object.type] = this._object.id; } - var querystring = require("querystring-component"), - query = querystring.stringify(params); + var query = Qs.stringify(params); if (query) { str += "?" + query; }