Remove layers encoding of omnivore layer.

This commit is contained in:
David Molineus
2015-01-18 23:21:05 +01:00
parent 8242fe36af
commit a0aedb753d

View File

@@ -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()));
}