Add some whitespace for readability
This commit is contained in:
parent
44810b2b39
commit
d8c1b28fde
1 changed files with 4 additions and 0 deletions
|
@ -255,14 +255,18 @@ L.OSM.Map = L.Map.extend({
|
||||||
this._objectLoader = {
|
this._objectLoader = {
|
||||||
abort: function () {}
|
abort: function () {}
|
||||||
};
|
};
|
||||||
|
|
||||||
this._object = object;
|
this._object = object;
|
||||||
this._objectLayer = L.featureGroup().addTo(this);
|
this._objectLayer = L.featureGroup().addTo(this);
|
||||||
|
|
||||||
L.circleMarker(object.latLng, haloStyle).addTo(this._objectLayer);
|
L.circleMarker(object.latLng, haloStyle).addTo(this._objectLayer);
|
||||||
|
|
||||||
L.marker(object.latLng, {
|
L.marker(object.latLng, {
|
||||||
icon: object.icon,
|
icon: object.icon,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
interactive: true
|
interactive: true
|
||||||
}).addTo(this._objectLayer);
|
}).addTo(this._objectLayer);
|
||||||
|
|
||||||
if (callback) callback(this._objectLayer.getBounds());
|
if (callback) callback(this._objectLayer.getBounds());
|
||||||
} else { // element or changeset handled by L.OSM.DataLayer
|
} else { // element or changeset handled by L.OSM.DataLayer
|
||||||
var map = this;
|
var map = this;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue