Skip to content

Commit

Permalink
Add some whitespace for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Oct 5, 2022
1 parent 44810b2 commit d8c1b28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/javascripts/leaflet.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8c1b28

Please sign in to comment.