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 AbstractVectorMapper extends AbstractTypeMapper
|
||||
;
|
||||
}
|
||||
|
||||
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 Path) {
|
||||
if ($model->addPopup) {
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -34,13 +34,13 @@ class MultiPolygonMapper extends MultiPolylineMapper
|
||||
*/
|
||||
protected static $type = 'multiPolygon';
|
||||
|
||||
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 MultiPolygon) {
|
||||
$latLngs = array();
|
||||
|
||||
@@ -36,13 +36,13 @@ class MultiPolylineMapper extends AbstractVectorMapper
|
||||
protected static $type = 'multiPolyline';
|
||||
|
||||
|
||||
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 MultiPolyline) {
|
||||
$latLngs = array();
|
||||
|
||||
@@ -35,13 +35,13 @@ class PolylineMapper extends AbstractVectorMapper
|
||||
protected static $type = 'polyline';
|
||||
|
||||
|
||||
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 Polyline) {
|
||||
array_map(
|
||||
|
||||
Reference in New Issue
Block a user