forked from Snck3rs/contao-leaflet-maps
Refactor the mappers to use the filters.
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper;
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Filter\Filter;
|
||||
use Netzmacht\LeafletPHP\Definition\GeoJson\GeoJsonFeature;
|
||||
use Netzmacht\LeafletPHP\Definition\Type\LatLngBounds;
|
||||
|
||||
/**
|
||||
* Interface GeoJsonMapper describes mappers which can convert their definition to a GeoJSON representation.
|
||||
@@ -26,9 +26,9 @@ interface GeoJsonMapper
|
||||
*
|
||||
* @param \Model $model The model being mapped.
|
||||
* @param DefinitionMapper $mapper The definition mapper.
|
||||
* @param LatLngBounds $bounds The requested bounds.
|
||||
* @param Filter $filter Optional request filter.
|
||||
*
|
||||
* @return GeoJsonFeature|null
|
||||
*/
|
||||
public function handleGeoJson(\Model $model, DefinitionMapper $mapper, LatLngBounds $bounds = null);
|
||||
public function handleGeoJson(\Model $model, DefinitionMapper $mapper, Filter $filter = null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user