X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/44810b2b3993ddc579bfd255bdd92df2b1e33b71..d8c1b28fde32414c9fd7f212dff8954942ef0b5c:/app/assets/javascripts/leaflet.map.js diff --git a/app/assets/javascripts/leaflet.map.js b/app/assets/javascripts/leaflet.map.js index 83cb73ec5..75396fd73 100644 --- a/app/assets/javascripts/leaflet.map.js +++ b/app/assets/javascripts/leaflet.map.js @@ -255,14 +255,18 @@ L.OSM.Map = L.Map.extend({ this._objectLoader = { abort: function () {} }; + this._object = object; this._objectLayer = L.featureGroup().addTo(this); + L.circleMarker(object.latLng, haloStyle).addTo(this._objectLayer); + L.marker(object.latLng, { icon: object.icon, opacity: 1, interactive: true }).addTo(this._objectLayer); + if (callback) callback(this._objectLayer.getBounds()); } else { // element or changeset handled by L.OSM.DataLayer var map = this;