forked from Snck3rs/contao-leaflet-maps
Use same layer id for the geojson layer.
This commit is contained in:
@@ -128,8 +128,7 @@ class FileLayerMapper extends AbstractLayerMapper
|
||||
return parent::createInstance($model, $mapper, $request, $elementId);
|
||||
}
|
||||
|
||||
$customId = $layerId . '_data';
|
||||
$customLayer = new GeoJson($customId);
|
||||
$customLayer = new GeoJson($layerId);
|
||||
|
||||
$layer->setCustomLayer($customLayer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user