mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-03-03 02:28:15 +01:00
Improve handling of bounds calculation. Layers have to whitelist, vectors/markers can set themselves to ignore.
This commit is contained in:
@@ -87,6 +87,8 @@ class MarkerClusterLayerMapper extends AbstractLayerMapper
|
||||
$GLOBALS['TL_CSS'][] = 'assets/leaflet/libs/leaflet-markercluster/MarkerCluster.Default.css||static';
|
||||
}
|
||||
|
||||
$definition->setOption('affectBounds', (bool) $model->affectBounds);
|
||||
|
||||
$collection = LayerModel::findBy(
|
||||
array('pid=?', 'active=1'),
|
||||
array($model->id),
|
||||
|
||||
Reference in New Issue
Block a user