diff --git a/src/Plugin/Layer/Vector/Vector.php b/src/Plugin/Layer/Vector/Vector.php index 01ad3fb..8912591 100644 --- a/src/Plugin/Layer/Vector/Vector.php +++ b/src/Plugin/Layer/Vector/Vector.php @@ -51,16 +51,4 @@ class Vector extends Layer { } return $js; } - - /** - * {@inheritdoc} - */ - public function preBuild(array &$build, ObjectInterface $context = NULL) { - $layers = $context->getObjects('layer'); - foreach ($layers as $layer) { - if (!in_array($layer->getFactoryService(), array('openlayers.Layer:Vector', 'openlayers.Layer:Heatmap'))) { - $layer->setOption('type', 'base'); - } - } - } }