Change addTo map behaviour.

This commit is contained in:
David Molineus
2015-01-19 12:58:16 +01:00
parent 5b6f56d9f7
commit f0832388fe

View File

@@ -118,7 +118,7 @@ class MapMapper extends AbstractMapper
$control = $mapper->handle($control, $bounds);
if ($control instanceof Control) {
$map->addControl($control);
$control->addTo($map);
}
}
}
@@ -145,7 +145,7 @@ class MapMapper extends AbstractMapper
$layer = $mapper->handle($layer, $bounds);
if ($layer instanceof Layer) {
$map->addLayer($layer);
$layer->addTo($map);
}
}
}