mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-05 06:18:39 +01:00
Improve affect bounds handling.
This commit is contained in:
@@ -63,7 +63,7 @@ L.Map.include({
|
||||
this._dynamicBounds = L.latLngBounds(source, source);
|
||||
}
|
||||
}
|
||||
} else if (layer instanceof L.MarkerClusterGroup && layer.options.affectBounds) {
|
||||
} else if (L.MarkerClusterGroup && layer instanceof L.MarkerClusterGroup && layer.options.affectBounds) {
|
||||
source = layer.getBounds();
|
||||
|
||||
if (source.isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user