mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-10-14 14:46:12 +02:00
Improve affect bounds handling.
This commit is contained in:
1 parent
b3eb4c8e61
commit
72f5e3b9ed
5 files changed
+10
-9
No files matched your search
@@ -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