mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-02 13:03:43 +01:00
Support bounds changing after files got loaded.
This commit is contained in:
@@ -124,6 +124,10 @@ class FileLayerMapper extends AbstractLayerMapper
|
||||
|
||||
$customLayer = $definition->getCustomLayer();
|
||||
if ($customLayer instanceof GeoJson) {
|
||||
if ($model->boundsMode) {
|
||||
$customLayer->setOption('boundsMode', $model->boundsMode);
|
||||
}
|
||||
|
||||
if ($model->pointToLayer) {
|
||||
$customLayer->setPointToLayer(new Expression($model->pointToLayer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user