diff --git a/src/Subscriber/GeoJsonSubscriber.php b/src/Subscriber/GeoJsonSubscriber.php index a929a4b..a66bbd6 100644 --- a/src/Subscriber/GeoJsonSubscriber.php +++ b/src/Subscriber/GeoJsonSubscriber.php @@ -12,9 +12,9 @@ namespace Netzmacht\Contao\Leaflet\Subscriber; -use Netzmacht\Contao\Leaflet\Dca\VectorCallbacks; use Netzmacht\Contao\Leaflet\Event\ConvertToGeoJsonEvent; use Netzmacht\Contao\Leaflet\Model\LayerModel; +use Netzmacht\LeafletPHP\Definition\Vector; use Netzmacht\LeafletPHP\Value\GeoJson\Feature; use Netzmacht\LeafletPHP\Definition\HasPopup; use Netzmacht\LeafletPHP\Definition\UI\Marker; @@ -101,7 +101,7 @@ class GeoJsonSubscriber implements EventSubscriberInterface $definition = $event->getDefinition(); $model = $event->getModel(); - if (($definition instanceof Marker || $definition instanceof VectorCallbacks) + if (($definition instanceof Marker || $definition instanceof Vector) && $model instanceof \Model && $feature instanceof Feature) { $this->setDataProperty($model, $feature); $this->setBoundsInformation($model, $feature);