Support geojson and topojson as file types for the file layer.

This commit is contained in:
David Molineus
2017-10-18 11:47:04 +02:00
parent 5501887231
commit edb4ac9eeb
8 changed files with 122 additions and 8 deletions

View File

@@ -38,6 +38,13 @@ parameters:
- 'circle'
- 'circleMarker'
netzmacht.contao_leaflet.file_formats:
gpx: ['gpx']
kml: ['kml']
wkt: ['wkt']
geojson: ['json', 'geojson']
topojson: ['json', 'topojson']
# When creating a GeoJSON feature of a map object a feature.properties.model object is passed.
# Define the properties you always want to set.
#

View File

@@ -39,6 +39,7 @@ services:
- '%netzmacht.contao_leaflet.layers%'
- '%netzmacht.contao_leaflet.providers%'
- '%netzmacht.contao_leaflet.amenities%'
- '%netzmacht.contao_leaflet.file_formats%'
netzmacht.contao_leaflet.listeners.dca.marker:
class: Netzmacht\Contao\Leaflet\Listener\Dca\MarkerDcaListener