Extract OptionsBuilder from AbstractMapper

This commit is contained in:
David Molineus
2015-01-22 08:54:08 +01:00
parent ac9ab7324c
commit b96cd80669
3 changed files with 278 additions and 144 deletions

View File

@@ -12,6 +12,7 @@
namespace Netzmacht\Contao\Leaflet\Mapper\Layer;
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
use Netzmacht\Contao\Leaflet\Mapper\OptionsBuilder;
use Netzmacht\LeafletPHP\Definition;
use Netzmacht\LeafletPHP\Definition\Type\LatLngBounds;
@@ -78,7 +79,7 @@ class ProviderLayerMapper extends AbstractLayerMapper
Definition $parent = null
) {
if (!empty($this->providers[$model->tile_provider]['options'])) {
$this->applyOptions(
OptionsBuilder::applyOptions(
$this->providers[$model->tile_provider]['options'],
$definition,
$model