mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-03-02 18:18:15 +01:00
Simplify getting of class name.
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user