mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-16 04:15:17 +01:00
Fix circles.
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Netzmacht\Contao\Leaflet\Mapper\Vector;
|
||||
use Netzmacht\Contao\Leaflet\Filter\Filter;
|
||||
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
||||
use Netzmacht\LeafletPHP\Definition;
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\CircleMarker;
|
||||
use Netzmacht\LeafletPHP\Value\LatLng;
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\Circle;
|
||||
|
||||
@@ -60,7 +61,7 @@ class CircleMapper extends AbstractVectorMapper
|
||||
) {
|
||||
parent::build($definition, $model, $mapper, $filter);
|
||||
|
||||
if ($definition instanceof Circle) {
|
||||
if ($definition instanceof CircleMarker) {
|
||||
$definition->setLatLng(LatLng::fromString($model->coordinates));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user