mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-02 21:14:15 +01:00
Move bundle files to Bundle namespace.
This commit is contained in:
202
src/Bundle/Resources/config/amenities.yml
Normal file
202
src/Bundle/Resources/config/amenities.yml
Normal file
@@ -0,0 +1,202 @@
|
||||
parameters:
|
||||
netzmacht.contao_leaflet_maps.amenities:
|
||||
- 'administration'
|
||||
- 'advertising'
|
||||
- 'alm'
|
||||
- 'animal_boarding'
|
||||
- 'animal_breeding'
|
||||
- 'animal_shelter'
|
||||
- 'architect_office'
|
||||
- 'arts_centre'
|
||||
- 'artwork'
|
||||
- 'atm'
|
||||
- 'audiologist'
|
||||
- 'baby_hatch'
|
||||
- 'bank'
|
||||
- 'bar'
|
||||
- 'bbq'
|
||||
- 'bench'
|
||||
- 'bicycle_parking'
|
||||
- 'bicycle_rental'
|
||||
- 'bicycle_repair_station'
|
||||
- 'bicycle_trailer_sharing'
|
||||
- 'biergarten'
|
||||
- 'bikeshed'
|
||||
- 'boat_rental'
|
||||
- 'boat_sharing'
|
||||
- 'boat_storage'
|
||||
- 'brothel'
|
||||
- 'bts'
|
||||
- 'bureau_de_change'
|
||||
- 'bus_station'
|
||||
- 'cafe'
|
||||
- 'canoe_hire'
|
||||
- 'car_rental'
|
||||
- 'car_repair'
|
||||
- 'car_sharing'
|
||||
- 'car_wash'
|
||||
- 'casino'
|
||||
- 'charging_station'
|
||||
- 'childcare'
|
||||
- 'cinema'
|
||||
- 'citymap_post'
|
||||
- 'clinic'
|
||||
- 'clock'
|
||||
- 'club'
|
||||
- 'coast_guard'
|
||||
- 'coast_radar_station'
|
||||
- 'college'
|
||||
- 'community_center'
|
||||
- 'community_centre'
|
||||
- 'compressed_air'
|
||||
- 'concert_hall'
|
||||
- 'conference_centre'
|
||||
- 'courthouse'
|
||||
- 'coworking_space'
|
||||
- 'crematorium'
|
||||
- 'crucifix'
|
||||
- 'crypt'
|
||||
- 'customs'
|
||||
- 'dancing_school'
|
||||
- 'dead_pub'
|
||||
- 'dentist'
|
||||
- 'disused'
|
||||
- 'dive_centre'
|
||||
- 'doctors'
|
||||
- 'dog_bin'
|
||||
- 'dog_waste_bin'
|
||||
- 'dojo'
|
||||
- 'drinking_water'
|
||||
- '_driving_school'
|
||||
- 'education'
|
||||
- 'embassy'
|
||||
- 'emergency_phone'
|
||||
- 'emergency_service'
|
||||
- 'events_venue'
|
||||
- 'ev_charging'
|
||||
- 'exhibition_centre'
|
||||
- 'fast_food'
|
||||
- 'ferry_terminal'
|
||||
- 'festival_grounds'
|
||||
- 'financial_advice'
|
||||
- 'fire_hydrant'
|
||||
- 'fire_station'
|
||||
- 'first_aid'
|
||||
- 'fish_spa'
|
||||
- 'food_court'
|
||||
- 'fountain'
|
||||
- 'fuel'
|
||||
- 'gambling'
|
||||
- 'game_feeding'
|
||||
- 'garages'
|
||||
- 'grave_yard'
|
||||
- 'grit_bin'
|
||||
- 'harbourmaster'
|
||||
- 'hospice'
|
||||
- 'hospital'
|
||||
- 'hotel'
|
||||
- 'hunting_stand'
|
||||
- 'ice_cream'
|
||||
- 'internet_cafe'
|
||||
- 'jobcentre'
|
||||
- 'kindergarten'
|
||||
- 'kiosk'
|
||||
- 'kitchen'
|
||||
- 'Kneippbecken'
|
||||
- 'kneipp_water_cure'
|
||||
- 'language_school'
|
||||
- 'lavoir'
|
||||
- 'library'
|
||||
- 'lifeboat_station'
|
||||
- 'life_ring'
|
||||
- 'loading_dock'
|
||||
- 'love_hotel'
|
||||
- 'marae'
|
||||
- 'marketplace'
|
||||
- 'milk_dispenser'
|
||||
- 'mobile_library'
|
||||
- 'monastery'
|
||||
- 'money_transfer'
|
||||
- 'mortuary'
|
||||
- 'motorcycle_parking'
|
||||
- 'motorcycle_rental'
|
||||
- 'music_school'
|
||||
- 'music_venue'
|
||||
- 'nameplate'
|
||||
- 'nightclub'
|
||||
- 'nursery'
|
||||
- 'nursing_home'
|
||||
- 'park'
|
||||
- 'parking'
|
||||
- 'parking_entrance'
|
||||
- 'parking_space'
|
||||
- 'pharmacy'
|
||||
- 'photo_booth'
|
||||
- 'place_of_worship'
|
||||
- 'planetarium'
|
||||
- 'police'
|
||||
- 'post_box'
|
||||
- 'post_office'
|
||||
- 'preschool'
|
||||
- 'printer'
|
||||
- 'prison'
|
||||
- 'prison_camp'
|
||||
- 'proposed'
|
||||
- 'pub'
|
||||
- 'public_bath'
|
||||
- 'public_bookcase'
|
||||
- 'public_building'
|
||||
- 'public_hall'
|
||||
- 'ranger_station'
|
||||
- 'recycling'
|
||||
- 'refugee_housing'
|
||||
- 'register_office'
|
||||
- 'rescue_box'
|
||||
- 'rescue_station'
|
||||
- 'research_institute'
|
||||
- 'restaurant'
|
||||
- 'retirement_home'
|
||||
- 'sanatorium'
|
||||
- 'sanitary_dump_station'
|
||||
- 'sauna'
|
||||
- 'school'
|
||||
- 'scout_hut'
|
||||
- 'shelter'
|
||||
- 'shop'
|
||||
- 'shower'
|
||||
- 'ski_school'
|
||||
- 'smoking_area'
|
||||
- 'social_centre'
|
||||
- 'social_facility'
|
||||
- 'spa'
|
||||
- 'stables'
|
||||
- 'stripclub'
|
||||
- 'studio'
|
||||
- 'swimming_pool'
|
||||
- 'swingerclub'
|
||||
- 'table'
|
||||
- 'taxi'
|
||||
- 'telephone'
|
||||
- 'theatre'
|
||||
- 'ticket_booth'
|
||||
- 'ticket_validator'
|
||||
- 'toilets'
|
||||
- 'townhall'
|
||||
- 'trolley_bay'
|
||||
- 'university'
|
||||
- 'vacuum_cleaner'
|
||||
- 'vehicle_inspection'
|
||||
- 'vending_machine'
|
||||
- 'veterinary'
|
||||
- 'vivarium'
|
||||
- 'wash_center'
|
||||
- 'waste_basket'
|
||||
- 'waste_disposal'
|
||||
- 'waste_transfer_station'
|
||||
- 'water'
|
||||
- 'watering_place'
|
||||
- 'water_point'
|
||||
- 'weighbridge'
|
||||
- 'winery'
|
||||
- 'yacht_club'
|
||||
- 'youth_centre'
|
||||
60
src/Bundle/Resources/config/config.yml
Normal file
60
src/Bundle/Resources/config/config.yml
Normal file
@@ -0,0 +1,60 @@
|
||||
parameters:
|
||||
# leaflet controls.
|
||||
#
|
||||
# Supported leaflet control types. Register your type for the database driven definition here.
|
||||
netzmacht.contao_leaflet_maps.controls:
|
||||
- 'zoom'
|
||||
- 'layers'
|
||||
- 'scale'
|
||||
- 'attribution'
|
||||
- 'loading'
|
||||
- 'fullscreen'
|
||||
|
||||
# Leaflet icons.
|
||||
#
|
||||
# Supported leaflet icon types. Register you type for the database driven definition here.
|
||||
netzmacht.contao_leaflet_maps.icons:
|
||||
- 'image'
|
||||
- 'div'
|
||||
- 'extra'
|
||||
|
||||
# The style concept is not part of the LeafletJS library. Styles are extracted from the Path options. Instead
|
||||
# of defining the style for every vector again, manage them at one place.
|
||||
#
|
||||
# The goal is to provide different style strategies. For instance a random style chooser, one which uses a color
|
||||
# range and so one.
|
||||
netzmacht.contao_leaflet_maps.styles:
|
||||
- 'fixed'
|
||||
|
||||
# Leaflet vectors.
|
||||
#
|
||||
# Supported leaflet vector types. Register you type for the database driven definition here.
|
||||
netzmacht.contao_leaflet_maps.vectors:
|
||||
- 'polyline'
|
||||
- 'polygon'
|
||||
- 'multiPolyline'
|
||||
- 'multiPolygon'
|
||||
- 'rectangle'
|
||||
- 'circle'
|
||||
- 'circleMarker'
|
||||
|
||||
# When creating a GeoJSON feature of a map object a feature.properties.model object is passed.
|
||||
# Define the properties you always want to set.
|
||||
#
|
||||
# For more control you can subscribe the ConvertToGeoJsonEvent.
|
||||
#
|
||||
# The entry can be a string or an array. If an array is passed, the 2nd value is the type. Following types
|
||||
# are supported.
|
||||
# - array: Use deserialize before adding the value
|
||||
# - file: Thread value a uuid and find the path.
|
||||
# - files: Thread values as a list of file uuids and get an array of paths.
|
||||
netzmacht.contao_leaflet_maps.feature_model_properties:
|
||||
tl_leaflet_marker:
|
||||
- 'id'
|
||||
- 'title'
|
||||
- 'alias'
|
||||
|
||||
tl_leaflet_vector:
|
||||
- 'id'
|
||||
- 'title'
|
||||
- 'alias'
|
||||
47
src/Bundle/Resources/config/encoders.yml
Normal file
47
src/Bundle/Resources/config/encoders.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
# Leaflet encoders.
|
||||
#
|
||||
# The encoders transforms the definitions into javascript. The encoders has to be an implementation of the
|
||||
# EventSubscriberInterface of the event dispatcher.
|
||||
services:
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.map:
|
||||
class: Netzmacht\LeafletPHP\Encoder\MapEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.control:
|
||||
class: Netzmacht\LeafletPHP\Encoder\ControlEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.group:
|
||||
class: Netzmacht\LeafletPHP\Encoder\GroupEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.raster:
|
||||
class: Netzmacht\LeafletPHP\Encoder\RasterEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.vector:
|
||||
class: Netzmacht\LeafletPHP\Encoder\VectorEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.ui:
|
||||
class: Netzmacht\LeafletPHP\Encoder\UIEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.type:
|
||||
class: Netzmacht\LeafletPHP\Encoder\TypeEncoder
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
|
||||
netzmacht.contao_leaflet_maps.encoder.subscriber:
|
||||
class: Netzmacht\Contao\Leaflet\Subscriber\EncoderSubscriber
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.encoder }
|
||||
11
src/Bundle/Resources/config/filters.yml
Normal file
11
src/Bundle/Resources/config/filters.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
# Filters can be passed to a data request to get only specific data from a layer.
|
||||
netzmacht.contao_leaflet_maps.filter.bbox:
|
||||
class: Netzmacht\Contao\Leaflet\Filter\BboxFilter
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.filter', alias: 'bbox' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.filter.distance:
|
||||
class: Netzmacht\Contao\Leaflet\Filter\DistanceFilter
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.filter', alias: 'distance' }
|
||||
80
src/Bundle/Resources/config/layers.yml
Normal file
80
src/Bundle/Resources/config/layers.yml
Normal file
@@ -0,0 +1,80 @@
|
||||
# Leaflet layer types.
|
||||
#
|
||||
# The type is used for the database driven definitions.
|
||||
parameters:
|
||||
netzmacht.contao_leaflet_maps.layers:
|
||||
provider:
|
||||
children: false
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/provider.png'
|
||||
|
||||
group:
|
||||
children: true
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/group.png'
|
||||
|
||||
markers:
|
||||
children: false
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/markers.png'
|
||||
markers: true
|
||||
boundsMode:
|
||||
extend: true
|
||||
fit: 'deferred'
|
||||
|
||||
vectors:
|
||||
children: false
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/vectors.png'
|
||||
vectors: true
|
||||
boundsMode:
|
||||
extend: true
|
||||
|
||||
reference:
|
||||
children: false
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/reference.png'
|
||||
|
||||
markercluster:
|
||||
children: true
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/markercluster.png'
|
||||
|
||||
tile:
|
||||
children: false
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/tile.png'
|
||||
|
||||
overpass:
|
||||
children: false
|
||||
icon: 'bundles/netzmachtcontaoleaflet/img/overpass.png'
|
||||
boundsMode:
|
||||
extend: true
|
||||
fit: true
|
||||
|
||||
services:
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
netzmacht.contao_leaflet_maps.layer_label_renderer:
|
||||
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ChainRenderer
|
||||
arguments:
|
||||
- []
|
||||
|
||||
netzmacht.contao_leaflet_maps.layer_label_renderer.markers:
|
||||
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\MarkersLabelRenderer
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.layer_label_renderer.overpass:
|
||||
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\OverpassLabelRenderer
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.layer_label_renderer.provider:
|
||||
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ProviderLabelRenderer
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.layer_label_renderer.reference:
|
||||
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\ReferenceLabelRenderer
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.layer_label_renderer.vectors:
|
||||
class: Netzmacht\Contao\Leaflet\Backend\Renderer\Label\Layer\VectorsLabelRenderer
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_leaflet_maps.layer_label_renderer' }
|
||||
90
src/Bundle/Resources/config/listeners.yml
Normal file
90
src/Bundle/Resources/config/listeners.yml
Normal file
@@ -0,0 +1,90 @@
|
||||
services:
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.leaflet:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\LeafletDcaListener
|
||||
arguments:
|
||||
- '@filesystem'
|
||||
- '%netzmacht.contao_leaflet_maps.cache_dir%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.validator:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\Validator
|
||||
arguments:
|
||||
- '@netzmacht.contao_toolkit.dca.manager'
|
||||
- '@translator'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.frontend_integration:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\FrontendIntegrationListener
|
||||
arguments:
|
||||
- '@translator'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.map:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\MapDcaListener
|
||||
arguments:
|
||||
- '@netzmacht.contao_toolkit.dca.manager'
|
||||
- '@database_connection'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.control:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\ControlDcaListener
|
||||
arguments:
|
||||
- '@netzmacht.contao_toolkit.dca.manager'
|
||||
- '@database_connection'
|
||||
- '%netzmacht.contao_leaflet_maps.controls%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.layer:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\LayerDcaListener
|
||||
arguments:
|
||||
- '@netzmacht.contao_toolkit.dca.manager'
|
||||
- '@database_connection'
|
||||
- '@translator'
|
||||
- '@netzmacht.contao_leaflet_maps.layer_label_renderer'
|
||||
- '%netzmacht.contao_leaflet_maps.layers%'
|
||||
- '%netzmacht.contao_leaflet_maps.providers%'
|
||||
- '%netzmacht.contao_leaflet_maps.amenities%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.marker:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\MarkerDcaListener
|
||||
arguments:
|
||||
- '@database_connection'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.vector:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\VectorDcaListener
|
||||
arguments:
|
||||
- '@netzmacht.contao_toolkit.dca.manager'
|
||||
- '%netzmacht.contao_leaflet_maps.vectors%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.icon:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\IconDcaListener
|
||||
arguments:
|
||||
- '%netzmacht.contao_leaflet_maps.icons%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.dca.style:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\Dca\IconDcaListener
|
||||
arguments:
|
||||
- '%netzmacht.contao_leaflet_maps.styles%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.geo_json_subscriber:
|
||||
class: Netzmacht\Contao\Leaflet\Subscriber\GeoJsonSubscriber
|
||||
arguments:
|
||||
- '%netzmacht.contao_leaflet_maps.feature_model_properties%'
|
||||
tags:
|
||||
- { name: 'kernel.event_subscriber' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.hash_subscriber:
|
||||
class: Netzmacht\Contao\Leaflet\Subscriber\HashSubscriber
|
||||
tags:
|
||||
- { name: 'kernel.event_subscriber' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.load_assets:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\LoadAssetsListener
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.map.assets'
|
||||
- '@netzmacht.contao_leaflet_maps.definition.mapper'
|
||||
- '@netzmacht.contao_leaflet_maps.libraries'
|
||||
tags:
|
||||
- { name: 'kernel.event_listener', event: 'netzmacht.contao_leaflet.get_javascript', method: 'onGetJavascriptEvent' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.listeners.register_libraries:
|
||||
class: Netzmacht\Contao\Leaflet\Listener\RegisterLibrariesListener
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.libraries'
|
||||
- '@netzmacht.contao_leaflet_maps.definition.builder'
|
||||
|
||||
177
src/Bundle/Resources/config/mappers.yml
Normal file
177
src/Bundle/Resources/config/mappers.yml
Normal file
@@ -0,0 +1,177 @@
|
||||
# Leaflet mappers.
|
||||
#
|
||||
# Mappers translate between the database models and the leaflet definition.
|
||||
services:
|
||||
_defaults:
|
||||
public: false
|
||||
|
||||
|
||||
# Map mapper
|
||||
netzmacht.contao_leaflet_maps.mapper.map:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\MapMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
|
||||
# Layer mappers
|
||||
netzmacht.contao_leaflet_maps.mapper.tile_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\TileLayerMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.provider_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\ProviderLayerMapper
|
||||
arguments:
|
||||
- '%netzmacht.contao_leaflet_maps.providers%'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.markers_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\MarkersLayerMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.group_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\GroupLayerMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.vectors_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\VectorsLayerMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.reference_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\ReferenceLayerMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.overpass_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\OverpassLayerMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.marker_cluster_layer:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Layer\MarkerClusterLayerMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.map.assets'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leflet_maps.mapper }
|
||||
|
||||
|
||||
# Control mappers
|
||||
netzmacht.contao_leaflet_maps.mapper.zoom_control:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Control\ZoomControlMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.scale_control:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Control\ScaleControlMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.layers_control:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Control\LayersControlMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.attribution_control:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Control\AttributionControlMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.loading_control:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Control\LoadingControlMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.fullscreen_control:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Control\FullscreenControlMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
|
||||
# Vector mappers
|
||||
netzmacht.contao_leaflet_maps.mapper.polyline:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\PolylineMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.multi_polyline:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\MultiPolylineMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.polygon:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\PolygonMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.multi_polygon:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\MultiPolygonMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.circle:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\CircleMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.circle_mapper:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\CircleMarkerMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.rectangle_mapper:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Vector\RectangleMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
|
||||
# Miscellaneous mappers
|
||||
netzmacht.contao_leaflet_maps.mapper.popup:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\UI\PopupMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.image_icon:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Type\ImageIconMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.div_icon:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Type\DivIconMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.extra_markers:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Type\ExtraMarkersIconMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.fixed_style:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\Style\FixedStyleMapper
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
netzmacht.contao_leaflet_maps.mapper.marker:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\UI\MarkerMapper
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.frontend.value_filter'
|
||||
tags:
|
||||
- { name: netzmacht.contao_leaflet_maps.mapper }
|
||||
|
||||
157
src/Bundle/Resources/config/providers.yml
Normal file
157
src/Bundle/Resources/config/providers.yml
Normal file
@@ -0,0 +1,157 @@
|
||||
parameters:
|
||||
netzmacht.contao_leaflet_maps.providers:
|
||||
OpenStreetMap:
|
||||
variants: ['Mapnik', 'BlackAndWhite', 'DE', 'France', 'HOT', 'BZH']
|
||||
|
||||
OpenSeaMap: []
|
||||
|
||||
OpenTopoMap: []
|
||||
|
||||
Thunderforest:
|
||||
variants:
|
||||
- 'OpenCycleMap'
|
||||
- 'Transport'
|
||||
- 'TransportDark'
|
||||
- 'SpinalMap'
|
||||
- 'Landscape'
|
||||
- 'Outdoors'
|
||||
- 'Pioneer'
|
||||
|
||||
OpenMapSurfer:
|
||||
variants: ['Roads', 'AdminBounds', 'Grayscale']
|
||||
|
||||
Hydda:
|
||||
variants: ['Full', 'Base', 'RoadsAndLabels']
|
||||
|
||||
MapBox:
|
||||
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\MapBoxProvider'
|
||||
options:
|
||||
key: 'tile_provider_key'
|
||||
|
||||
Stamen:
|
||||
variants:
|
||||
- 'Toner'
|
||||
- 'TonerBackground'
|
||||
- 'TonerHybrid'
|
||||
- 'TonerLines'
|
||||
- 'TonerLabels'
|
||||
- 'TonerLite'
|
||||
- 'Terrain'
|
||||
- 'TerrainBackground'
|
||||
- 'TopOSMRelief'
|
||||
- 'TopOSMFeatures'
|
||||
- 'Watercolor'
|
||||
|
||||
Esri:
|
||||
variants:
|
||||
- 'WorldStreetMap'
|
||||
- 'DeLorme'
|
||||
- 'WorldTopoMap'
|
||||
- 'WorldImagery'
|
||||
- 'WorldTerrain'
|
||||
- 'WorldShadedRelief'
|
||||
- 'WorldPhysical'
|
||||
- 'OceanBasemap'
|
||||
- 'NatGeoWorldMap'
|
||||
- 'WorldGrayCanvas'
|
||||
|
||||
OpenWeatherMap:
|
||||
variants:
|
||||
- 'Clouds'
|
||||
- 'CloudsClassic'
|
||||
- 'Precipitation'
|
||||
- 'PrecipitationClassic'
|
||||
- 'Rain'
|
||||
- 'RainClassic'
|
||||
- 'Pressure'
|
||||
- 'PressureContour'
|
||||
- 'Wind'
|
||||
- 'Temperature'
|
||||
- 'Snow'
|
||||
|
||||
HERE:
|
||||
class: 'Netzmacht\LeafletPHP\Plugins\LeafletProviders\HereProvider'
|
||||
variants:
|
||||
- 'normalDay'
|
||||
- 'normalDayCustom'
|
||||
- 'normalDayGrey'
|
||||
- 'normalDayMobile'
|
||||
- 'normalDayGreyMobile'
|
||||
- 'normalDayTransit'
|
||||
- 'normalDayTransitMobile'
|
||||
- 'normalNight'
|
||||
- 'normalNightMobile'
|
||||
- 'normalNightGrey'
|
||||
- 'normalNightGreyMobile'
|
||||
- 'basicMap'
|
||||
- 'mapLabels'
|
||||
- 'trafficFlow'
|
||||
- 'carnavDayGrey'
|
||||
- 'hybridDay'
|
||||
- 'hybridDayMobile'
|
||||
- 'pedestrianDay'
|
||||
- 'pedestrianNight'
|
||||
- 'satelliteDay'
|
||||
- 'terrainDay'
|
||||
- 'terrainDayMobile'
|
||||
options:
|
||||
appId: 'tile_provider_key'
|
||||
appCode: 'tile_provider_code'
|
||||
fields: ['tile_provider_key', 'tile_provider_code']
|
||||
|
||||
JusticeMap:
|
||||
variants:
|
||||
- 'income'
|
||||
- 'americanIndian'
|
||||
- 'asian'
|
||||
- 'black'
|
||||
- 'hispanic'
|
||||
- 'multi'
|
||||
- 'nonWhite'
|
||||
- 'white'
|
||||
- 'plurality'
|
||||
|
||||
FreeMapSK: []
|
||||
|
||||
MtbMap: []
|
||||
|
||||
CartoDB:
|
||||
variants:
|
||||
- 'Positron'
|
||||
- 'PositronNoLabels'
|
||||
- 'PositronOnlyLabels'
|
||||
- 'DarkMatter'
|
||||
- 'DarkMatterNoLabels'
|
||||
- 'DarkMatterOnlyLabels'
|
||||
|
||||
HikeBike:
|
||||
variants:
|
||||
- 'HikeBike'
|
||||
- 'HillShading'
|
||||
|
||||
BasemapAT:
|
||||
variants:
|
||||
- 'basemap'
|
||||
- 'grau'
|
||||
- 'overlay'
|
||||
- 'highdpi'
|
||||
- 'orthofoto'
|
||||
|
||||
nlmaps:
|
||||
variants:
|
||||
- 'standaard'
|
||||
- 'pastel'
|
||||
- 'grijs'
|
||||
- 'luchtfoto'
|
||||
|
||||
NASAGIBS:
|
||||
variants:
|
||||
- 'ModisTerraTrueColorCR'
|
||||
- 'ModisTerraBands367CR'
|
||||
- 'ViirsEarthAtNight2012'
|
||||
- 'ModisTerraLSTDay'
|
||||
- 'ModisTerraSnowCover'
|
||||
- 'ModisTerraAOD'
|
||||
- 'ModisTerraChlorophyll'
|
||||
|
||||
NLS: []
|
||||
102
src/Bundle/Resources/config/services.yml
Normal file
102
src/Bundle/Resources/config/services.yml
Normal file
@@ -0,0 +1,102 @@
|
||||
parameters:
|
||||
netzmacht.contao_leaflet_maps.cache_dir: '%kernel.cache_dir%/leaflet'
|
||||
|
||||
# JSON_UNESCAPED_SLASHES ^ Netzmacht\JavascriptBuilder\Flags::BUILD_STACK
|
||||
netzmacht.contao_leaflet_maps.encoding_flags: 16448
|
||||
|
||||
services:
|
||||
netzmacht.contao_leaflet_maps.map.provider:
|
||||
class: Netzmacht\Contao\Leaflet\MapProvider
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.definition.mapper'
|
||||
- '@netzmacht.contao_leaflet_maps.definition.builder'
|
||||
- '@event_dispatcher'
|
||||
- '@netzmacht.contao_toolkit.contao.input'
|
||||
- '@netzmacht.contao_leaflet_maps.map.assets'
|
||||
- '@netzmacht.contao_leaflet_maps.cache'
|
||||
- [] # TODO: Rework filter handling.
|
||||
- '%kernel.debug%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.libraries:
|
||||
class: Netzmacht\Contao\Leaflet\Frontend\Assets\LibrariesConfiguration
|
||||
arguments:
|
||||
- '@contao.framework'
|
||||
|
||||
netzmacht.contao_leaflet_maps.cache:
|
||||
alias: 'netzmacht.contao_leaflet_maps.cache.default'
|
||||
|
||||
netzmacht.contao_leaflet_maps.cache.default:
|
||||
class: Doctrine\Common\Cache\FilesystemCache
|
||||
arguments:
|
||||
- '%netzmacht.contao_leaflet_maps.cache_dir%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.cache.debug:
|
||||
class: Doctrine\Common\Cache\ArrayCache
|
||||
|
||||
netzmacht.contao_leaflet_maps.frontend.value_filter:
|
||||
class: Netzmacht\Contao\Leaflet\Frontend\ValueFilter
|
||||
|
||||
netzmacht.contao_leaflet_maps.map.assets:
|
||||
class: Netzmacht\Contao\Leaflet\ContaoAssets
|
||||
arguments:
|
||||
- '@netzmacht.contao_toolkit.assets_manager'
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.builder:
|
||||
class: Netzmacht\LeafletPHP\Leaflet
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.definition.builder.javascript_builder'
|
||||
- '@netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher'
|
||||
- []
|
||||
- '%netzmacht.contao_leaflet_maps.encoding_flags%'
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.builder.javascript_builder:
|
||||
class: Netzmacht\JavascriptBuilder\Builder
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.definition.encoder_factory'
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher:
|
||||
class: Symfony\Component\EventDispatcher\EventDispatcher
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.mapper:
|
||||
class: Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper
|
||||
arguments:
|
||||
- '@event_dispatcher'
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.encoder_factory:
|
||||
class: Netzmacht\Contao\Leaflet\Encoder\EncoderFactory
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.definition.builder.event_dispatcher'
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.alias_generator.factory_default:
|
||||
class: Netzmacht\Contao\Leaflet\Alias\DefaultAliasGeneratorFactory
|
||||
arguments:
|
||||
- '@database_connection'
|
||||
|
||||
netzmacht.contao_leaflet_maps.definition.alias_generator.factory_parent:
|
||||
class: Netzmacht\Contao\Leaflet\Alias\ParentAliasGeneratorFactory
|
||||
arguments:
|
||||
- '@database_connection'
|
||||
|
||||
netzmacht.contao_leaflet_maps.frontend.element_factory:
|
||||
class: Netzmacht\Contao\Leaflet\Frontend\ContentElement\MapElementFactory
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_toolkit.component.content_element_factory' }
|
||||
- { name: 'netzmacht.contao_toolkit.component.content_element', alias: 'leaflet', category: 'include' }
|
||||
|
||||
netzmacht.contao_leaflet_maps.frontend.module_factory:
|
||||
class: Netzmacht\Contao\Leaflet\Frontend\Module\MapModuleFactory
|
||||
arguments:
|
||||
- '@service_container'
|
||||
tags:
|
||||
- { name: 'netzmacht.contao_toolkit.component.frontend_module_factory' }
|
||||
- { name: 'netzmacht.contao_toolkit.component.frontend_module', alias: 'leaflet', category: include }
|
||||
|
||||
netzmacht.contao_leaflet_maps.frontend.insert_tag:
|
||||
class: Netzmacht\Contao\Leaflet\Frontend\InsertTag\LeafletInsertTagParser
|
||||
arguments:
|
||||
- '@netzmacht.contao_leaflet_maps.map.provider'
|
||||
- '%kernel.debug%'
|
||||
tags:
|
||||
- { name: 'contao.hook', hook: 'replaceInsertTags', method: 'replace' }
|
||||
Reference in New Issue
Block a user