Files
contao-leaflet-maps/src/Netzmacht/Contao/Leaflet/Mapper/GeoJsonMapper.php

35 lines
920 B
PHP
Raw Normal View History

2015-01-06 14:55:53 +01:00
<?php
/**
* @package dev
* @author David Molineus <david.molineus@netzmacht.de>
* @copyright 2015 netzmacht creative David Molineus
* @license LGPL 3.0
* @filesource
*
*/
namespace Netzmacht\Contao\Leaflet\Mapper;
use Netzmacht\Contao\Leaflet\Filter\Filter;
2015-01-12 19:03:29 +01:00
use Netzmacht\LeafletPHP\Definition\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.
* @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
*/
public function handleGeoJson(\Model $model, DefinitionMapper $mapper, Filter $filter = null);
2015-01-06 14:55:53 +01:00
}