From 5a4fd9b4340f70479491f669fccf5665380bee1d Mon Sep 17 00:00:00 2001 From: David Molineus Date: Fri, 6 Oct 2017 13:47:57 +0200 Subject: [PATCH] Fix reference to vector. --- src/Subscriber/GeoJsonSubscriber.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);