From 9de46923fb73b44305da92c473346adfc7957702 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Tue, 27 Jan 2015 12:36:52 +0100 Subject: [PATCH] Refactor to fit bounds. --- src/Netzmacht/Contao/Leaflet/Filter/BboxFilter.php | 10 ++++++++++ src/Netzmacht/Contao/Leaflet/Model/LayerModel.php | 1 + 2 files changed, 11 insertions(+) diff --git a/src/Netzmacht/Contao/Leaflet/Filter/BboxFilter.php b/src/Netzmacht/Contao/Leaflet/Filter/BboxFilter.php index 2f76a5d..9effc35 100644 --- a/src/Netzmacht/Contao/Leaflet/Filter/BboxFilter.php +++ b/src/Netzmacht/Contao/Leaflet/Filter/BboxFilter.php @@ -69,4 +69,14 @@ class BboxFilter implements Filter { return array('bounds' => $this->bounds); } + + /** + * Get the bounds. + * + * @return LatLngBounds + */ + public function getBounds() + { + return $this->bounds; + } } diff --git a/src/Netzmacht/Contao/Leaflet/Model/LayerModel.php b/src/Netzmacht/Contao/Leaflet/Model/LayerModel.php index 4e658e4..dff1ab7 100644 --- a/src/Netzmacht/Contao/Leaflet/Model/LayerModel.php +++ b/src/Netzmacht/Contao/Leaflet/Model/LayerModel.php @@ -20,6 +20,7 @@ use Model\Collection; * @property mixed|null alias * @property mixed|null pointToLayer * @property mixed|null onEachFeature + * @property mixed|null boundsMode * * @package Netzmacht\Contao\Leaflet\Model */