X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/aa45efc1b7dd87821178f7780e2e0b3129ac4529..c5be2b6f8498ba4f0df1fc95f307078320e2b5be:/app/assets/javascripts/leaflet.map.js.erb diff --git a/app/assets/javascripts/leaflet.map.js.erb b/app/assets/javascripts/leaflet.map.js.erb index 8a0d537b5..75700913f 100644 --- a/app/assets/javascripts/leaflet.map.js.erb +++ b/app/assets/javascripts/leaflet.map.js.erb @@ -49,15 +49,15 @@ L.OSM.Map = L.Map.extend({ }) ]; - this.noteLayer = new L.LayerGroup(); + this.noteLayer = new L.FeatureGroup(); this.noteLayer.options = {code: 'N'}; this.dataLayer = new L.OSM.DataLayer(null); this.dataLayer.options.code = 'D'; }, - updateLayers: function(params) { - var layerParam = params.layers || "M"; + updateLayers: function(layerParam) { + layerParam = layerParam || "M"; var layersAdded = ""; for (var i = this.baseLayers.length - 1; i >= 0; i--) { @@ -243,9 +243,6 @@ L.extend(L.Icon.Default.prototype, { } }); -L.Hash.prototype.parseHash = OSM.parseHash; -L.Hash.prototype.formatHash = OSM.formatHash; - function getUserIcon(url) { return L.icon({ iconUrl: url || <%= asset_path('marker-red.png').to_json %>,