mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 03:24:37 +01:00
Fix applying bounds to a tile layer (Closes #109)
This commit is contained in:
@@ -93,7 +93,7 @@ class TileLayerMapper extends AbstractLayerMapper
|
|||||||
/** @var TileLayer $definition */
|
/** @var TileLayer $definition */
|
||||||
$bounds = StringUtil::deserialize($model->bounds);
|
$bounds = StringUtil::deserialize($model->bounds);
|
||||||
|
|
||||||
if ($request[0] && $request[1]) {
|
if ($bounds[0] && $bounds[1]) {
|
||||||
$bounds = array_map(
|
$bounds = array_map(
|
||||||
function ($value) {
|
function ($value) {
|
||||||
return explode(',', $value, 3);
|
return explode(',', $value, 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user