Simplify getting of class name.
This commit is contained in:
1 parent
25d4dace71
commit
b65bcbff9f
5 files changed
+5
-40
No files matched your search
@@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user