From c544202ca8602109ca42a8363bae1c35b90af384 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Tue, 22 Feb 2022 08:30:32 +0100 Subject: [PATCH] Fix applying bounds to a tile layer (Closes #109) --- src/Mapper/Layer/TileLayerMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mapper/Layer/TileLayerMapper.php b/src/Mapper/Layer/TileLayerMapper.php index c695c9e..1aea74a 100644 --- a/src/Mapper/Layer/TileLayerMapper.php +++ b/src/Mapper/Layer/TileLayerMapper.php @@ -93,7 +93,7 @@ class TileLayerMapper extends AbstractLayerMapper /** @var TileLayer $definition */ $bounds = StringUtil::deserialize($model->bounds); - if ($request[0] && $request[1]) { + if ($bounds[0] && $bounds[1]) { $bounds = array_map( function ($value) { return explode(',', $value, 3);