mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-06 23:08:36 +01:00
Rename doBuild to build and introduce getClassName method.
This commit is contained in:
@@ -41,13 +41,13 @@ class CircleMapper extends AbstractVectorMapper
|
||||
$this->addOption('radius');
|
||||
}
|
||||
|
||||
protected function doBuild(
|
||||
protected function build(
|
||||
Definition $definition,
|
||||
\Model $model,
|
||||
DefinitionMapper $builder,
|
||||
LatLngBounds $bounds = null
|
||||
) {
|
||||
parent::doBuild($definition, $model, $builder, $bounds);
|
||||
parent::build($definition, $model, $builder, $bounds);
|
||||
|
||||
if ($definition instanceof Circle) {
|
||||
$definition->setLatLng(LatLng::fromString($model->coordinates));
|
||||
|
||||
Reference in New Issue
Block a user