Refactor the mappers to use the filters.
This commit is contained in:
1 parent
05d3acf21d
commit
37b10c14fe
26 files changed
+121
-133
No files matched your search
@@ -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