mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-30 03:54:10 +01:00
Simplify getting of class name.
This commit is contained in:
@@ -26,13 +26,6 @@ use Netzmacht\LeafletPHP\Plugins\Loading\SpinJsLoadingControl;
|
||||
*/
|
||||
class LoadingControlMapper extends AbstractControlMapper
|
||||
{
|
||||
/**
|
||||
* Class of the definition being created.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Plugins\Loading\LoadingControl';
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
*
|
||||
@@ -49,7 +42,7 @@ class LoadingControlMapper extends AbstractControlMapper
|
||||
return 'Netzmacht\LeafletPHP\Plugins\Loading\SpinJsLoadingControl';
|
||||
}
|
||||
|
||||
return parent::getClassName($model, $mapper, $bounds);
|
||||
return 'Netzmacht\LeafletPHP\Plugins\Loading\LoadingControl';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,13 +25,6 @@ use Netzmacht\LeafletPHP\Definition\Type\LatLngBounds;
|
||||
*/
|
||||
class GroupLayerMapper extends AbstractLayerMapper
|
||||
{
|
||||
/**
|
||||
* Class of the definition being created.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Group\LayerGroup';
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
*
|
||||
@@ -48,7 +41,7 @@ class GroupLayerMapper extends AbstractLayerMapper
|
||||
return 'Netzmacht\LeafletPHP\Definition\Group\FeatureGroup';
|
||||
}
|
||||
|
||||
return parent::getClassName($model, $mapper, $bounds);
|
||||
return 'Netzmacht\LeafletPHP\Definition\Group\LayerGroup';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,13 +30,6 @@ use Netzmacht\LeafletPHP\Definition\UI\Marker;
|
||||
*/
|
||||
class MarkersLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
|
||||
{
|
||||
/**
|
||||
* Class of the definition being created.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Group\GeoJson';
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
*
|
||||
@@ -53,7 +46,7 @@ class MarkersLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
|
||||
return 'Netzmacht\LeafletPHP\Plugins\Omnivore\GeoJson';
|
||||
}
|
||||
|
||||
return parent::getClassName($model, $mapper, $bounds);
|
||||
return 'Netzmacht\LeafletPHP\Definition\Group\GeoJson';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,13 +23,6 @@ use Netzmacht\LeafletPHP\Definition\Type\LatLngBounds;
|
||||
*/
|
||||
class ProviderLayerMapper extends AbstractLayerMapper
|
||||
{
|
||||
/**
|
||||
* Class of the definition being created.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\Provider';
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
*
|
||||
@@ -65,7 +58,7 @@ class ProviderLayerMapper extends AbstractLayerMapper
|
||||
return $this->providers[$model->tile_provider]['class'];
|
||||
}
|
||||
|
||||
return parent::getClassName($model, $mapper, $bounds);
|
||||
return 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\Provider';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,13 +34,6 @@ use Netzmacht\LeafletPHP\Definition\Vector;
|
||||
*/
|
||||
class VectorsLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
|
||||
{
|
||||
/**
|
||||
* Class of the definition being created.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Group\GeoJson';
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
*
|
||||
@@ -57,7 +50,7 @@ class VectorsLayerMapper extends AbstractLayerMapper implements GeoJsonMapper
|
||||
return 'Netzmacht\LeafletPHP\Plugins\Omnivore\GeoJson';
|
||||
}
|
||||
|
||||
return parent::getClassName($model, $mapper, $bounds);
|
||||
return 'Netzmacht\LeafletPHP\Definition\Group\GeoJson';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user