Add DivIcon support.

This commit is contained in:
David Molineus
2015-01-08 15:21:45 +01:00
parent 3386ff72b1
commit 7f79125495
10 changed files with 137 additions and 21 deletions

View File

@@ -19,7 +19,7 @@ use Netzmacht\Contao\Leaflet\Event\InitializeLeafletBuilderEvent;
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
use Netzmacht\Contao\Leaflet\Model\IconModel;
use Netzmacht\LeafletPHP\Assets;
use Netzmacht\LeafletPHP\Definition\Type\Icon;
use Netzmacht\LeafletPHP\Definition\Type\ImageIcon;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
@@ -136,7 +136,7 @@ class BootSubscriber implements EventSubscriberInterface
$icons = array();
foreach ($collection as $model) {
/** @var Icon $icon */
/** @var ImageIcon $icon */
$icon = $mapper->handle($model);
$icons[] = array(
'id' => $icon->getId(),