2015-01-06 14:55:53 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
2016-10-11 10:40:15 +02:00
|
|
|
* @package contao-leaflet-maps
|
2015-01-06 14:55:53 +01:00
|
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
2016-10-11 10:40:15 +02:00
|
|
|
* @copyright 2014-2016 netzmacht David Molineus
|
2015-01-06 14:55:53 +01:00
|
|
|
* @license LGPL 3.0
|
|
|
|
|
* @filesource
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Mapper;
|
|
|
|
|
|
2015-01-24 21:37:25 +01:00
|
|
|
use Netzmacht\Contao\Leaflet\Filter\Filter;
|
2015-01-27 14:52:20 +01:00
|
|
|
use Netzmacht\LeafletPHP\Value\GeoJson\GeoJsonFeature;
|
2015-01-06 14:55:53 +01:00
|
|
|
|
2015-01-12 19:03:29 +01:00
|
|
|
/**
|
|
|
|
|
* Interface GeoJsonMapper describes mappers which can convert their definition to a GeoJSON representation.
|
|
|
|
|
*
|
|
|
|
|
* @package Netzmacht\Contao\Leaflet\Mapper
|
|
|
|
|
*/
|
2015-01-06 14:55:53 +01:00
|
|
|
interface GeoJsonMapper
|
|
|
|
|
{
|
|
|
|
|
/**
|
2015-01-12 19:03:29 +01:00
|
|
|
* Hanle the GeoJSON creation.
|
|
|
|
|
*
|
|
|
|
|
* @param \Model $model The model being mapped.
|
|
|
|
|
* @param DefinitionMapper $mapper The definition mapper.
|
2015-01-24 21:37:25 +01:00
|
|
|
* @param Filter $filter Optional request filter.
|
2015-01-06 14:55:53 +01:00
|
|
|
*
|
2015-01-12 19:03:29 +01:00
|
|
|
* @return GeoJsonFeature|null
|
2015-01-06 14:55:53 +01:00
|
|
|
*/
|
2015-01-24 21:37:25 +01:00
|
|
|
public function handleGeoJson(\Model $model, DefinitionMapper $mapper, Filter $filter = null);
|
2015-01-06 14:55:53 +01:00
|
|
|
}
|