forked from Snck3rs/contao-leaflet-maps
Fix reference to vector.
This commit is contained in:
@@ -12,9 +12,9 @@
|
|||||||
|
|
||||||
namespace Netzmacht\Contao\Leaflet\Subscriber;
|
namespace Netzmacht\Contao\Leaflet\Subscriber;
|
||||||
|
|
||||||
use Netzmacht\Contao\Leaflet\Dca\VectorCallbacks;
|
|
||||||
use Netzmacht\Contao\Leaflet\Event\ConvertToGeoJsonEvent;
|
use Netzmacht\Contao\Leaflet\Event\ConvertToGeoJsonEvent;
|
||||||
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
use Netzmacht\Contao\Leaflet\Model\LayerModel;
|
||||||
|
use Netzmacht\LeafletPHP\Definition\Vector;
|
||||||
use Netzmacht\LeafletPHP\Value\GeoJson\Feature;
|
use Netzmacht\LeafletPHP\Value\GeoJson\Feature;
|
||||||
use Netzmacht\LeafletPHP\Definition\HasPopup;
|
use Netzmacht\LeafletPHP\Definition\HasPopup;
|
||||||
use Netzmacht\LeafletPHP\Definition\UI\Marker;
|
use Netzmacht\LeafletPHP\Definition\UI\Marker;
|
||||||
@@ -101,7 +101,7 @@ class GeoJsonSubscriber implements EventSubscriberInterface
|
|||||||
$definition = $event->getDefinition();
|
$definition = $event->getDefinition();
|
||||||
$model = $event->getModel();
|
$model = $event->getModel();
|
||||||
|
|
||||||
if (($definition instanceof Marker || $definition instanceof VectorCallbacks)
|
if (($definition instanceof Marker || $definition instanceof Vector)
|
||||||
&& $model instanceof \Model && $feature instanceof Feature) {
|
&& $model instanceof \Model && $feature instanceof Feature) {
|
||||||
$this->setDataProperty($model, $feature);
|
$this->setDataProperty($model, $feature);
|
||||||
$this->setBoundsInformation($model, $feature);
|
$this->setBoundsInformation($model, $feature);
|
||||||
|
|||||||
Reference in New Issue
Block a user