forked from Snck3rs/contao-leaflet-maps
Remove layers encoding of omnivore layer.
This commit is contained in:
@@ -16,7 +16,6 @@ use Netzmacht\JavascriptBuilder\Encoder;
|
||||
use Netzmacht\JavascriptBuilder\Symfony\Event\EncodeValueEvent;
|
||||
use Netzmacht\JavascriptBuilder\Symfony\Event\EncodeReferenceEvent;
|
||||
use Netzmacht\JavascriptBuilder\Exception\EncodeValueFailed;
|
||||
use Netzmacht\LeafletPHP\Definition\Group\GeoJson;
|
||||
use Netzmacht\LeafletPHP\Definition\Type\Icon;
|
||||
use Netzmacht\LeafletPHP\Plugins\Omnivore\OmnivoreLayer;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
@@ -118,10 +117,6 @@ class EncoderSubscriber implements EventSubscriberInterface
|
||||
)
|
||||
);
|
||||
|
||||
foreach ($value->getLayers() as $layer) {
|
||||
$event->addLine(sprintf('%s.addLayer(%s);', $ref, $encoder->encodeReference($layer)));
|
||||
}
|
||||
|
||||
foreach ($value->getMethodCalls() as $call) {
|
||||
$event->addLine($call->encode($encoder, $encoder->getOutput()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user