mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
More whitespace fixes
This commit is contained in:
@@ -16,9 +16,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
|
|
||||||
disableClusteringAtZoom: null,
|
disableClusteringAtZoom: null,
|
||||||
|
|
||||||
// Setting this to false prevents the removal of any clusters outside of the viewpoint, which
|
// Setting this to false prevents the removal of any clusters outside of the viewpoint, which
|
||||||
// is the default behaviour for performance reasons.
|
// is the default behaviour for performance reasons.
|
||||||
removeOutsideVisibleBounds: true,
|
removeOutsideVisibleBounds: true,
|
||||||
|
|
||||||
//Whether to animate adding markers after adding the MarkerClusterGroup to the map
|
//Whether to animate adding markers after adding the MarkerClusterGroup to the map
|
||||||
// If you are adding individual markers set to true, if adding bulk markers leave false for massive performance gains.
|
// If you are adding individual markers set to true, if adding bulk markers leave false for massive performance gains.
|
||||||
@@ -390,9 +390,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
this._map = null;
|
this._map = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
getVisibleParent: function(marker){
|
getVisibleParent: function (marker) {
|
||||||
var vMarker = marker;
|
var vMarker = marker;
|
||||||
while(vMarker !== null && !vMarker._icon) {
|
while (vMarker !== null && !vMarker._icon) {
|
||||||
vMarker = vMarker.__parent;
|
vMarker = vMarker.__parent;
|
||||||
}
|
}
|
||||||
return vMarker;
|
return vMarker;
|
||||||
@@ -706,9 +706,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
|
|
||||||
//Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)
|
//Gets the maps visible bounds expanded in each direction by the size of the screen (so the user cannot see an area we do not cover in one pan)
|
||||||
_getExpandedVisibleBounds: function () {
|
_getExpandedVisibleBounds: function () {
|
||||||
if (!this.options.removeOutsideVisibleBounds) {
|
if (!this.options.removeOutsideVisibleBounds) {
|
||||||
return this.getBounds();
|
return this.getBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
var map = this._map,
|
var map = this._map,
|
||||||
bounds = map.getBounds(),
|
bounds = map.getBounds(),
|
||||||
|
|||||||
Reference in New Issue
Block a user