forked from Snck3rs/contao-leaflet-maps
Rework element id generation.
This commit is contained in:
@@ -50,8 +50,12 @@ class AttributionControlMapper extends AbstractControlMapper
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function build(Definition $definition, \Model $model, DefinitionMapper $builder, LatLngBounds $bounds = null)
|
||||
{
|
||||
protected function build(
|
||||
Definition $definition,
|
||||
\Model $model,
|
||||
DefinitionMapper $builder,
|
||||
LatLngBounds $bounds = null
|
||||
) {
|
||||
if (!$definition instanceof Attribution) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -32,9 +32,16 @@ class LayersControlMapper extends AbstractControlMapper
|
||||
*/
|
||||
protected static $type = 'layers';
|
||||
|
||||
protected function buildConstructArguments(\Model $model, DefinitionMapper $mapper, LatLngBounds $bounds = null)
|
||||
{
|
||||
$arguments = parent::buildConstructArguments($model, $mapper, $bounds);
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function buildConstructArguments(
|
||||
\Model $model,
|
||||
DefinitionMapper $mapper,
|
||||
LatLngBounds $bounds = null,
|
||||
$elementId = null
|
||||
) {
|
||||
$arguments = parent::buildConstructArguments($model, $mapper, $bounds, $elementId);
|
||||
$arguments[1] = array();
|
||||
$arguments[2] = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user