From ceb05bb08f5a48665db16b848f15bfe3c1d947ea Mon Sep 17 00:00:00 2001 From: David Molineus Date: Thu, 5 Oct 2017 17:35:46 +0200 Subject: [PATCH] Work on moving configuration to yml files. --- src/Resources/config/config.yml | 8 + src/Resources/config/parameters/amenities.yml | 403 +++++++++--------- src/Resources/config/parameters/common.yml | 60 +++ src/Resources/config/parameters/providers.yml | 301 ++++++------- src/Resources/config/services/encoders.yml | 40 ++ src/Resources/config/services/filters.yml | 11 + src/Resources/config/services/listeners.yml | 0 src/Resources/config/services/mappers.yml | 33 ++ src/Resources/config/services/services.yml | 3 + 9 files changed, 508 insertions(+), 351 deletions(-) create mode 100644 src/Resources/config/config.yml create mode 100644 src/Resources/config/parameters/common.yml create mode 100644 src/Resources/config/services/encoders.yml create mode 100644 src/Resources/config/services/filters.yml create mode 100644 src/Resources/config/services/listeners.yml create mode 100644 src/Resources/config/services/mappers.yml create mode 100644 src/Resources/config/services/services.yml diff --git a/src/Resources/config/config.yml b/src/Resources/config/config.yml new file mode 100644 index 0000000..b2db1a6 --- /dev/null +++ b/src/Resources/config/config.yml @@ -0,0 +1,8 @@ +imports: + - { resource: parameters/common.yml } + - { resource: parameters/amenities.yml } + - { resource: parameters/providers.yml } + - { resource: services/encoders.yml } + - { resource: services/mappers.yml } + - { resource: services/services.yml } + - { resource: services/listeners.yml } diff --git a/src/Resources/config/parameters/amenities.yml b/src/Resources/config/parameters/amenities.yml index 05b5c2c..fa8ff6b 100644 --- a/src/Resources/config/parameters/amenities.yml +++ b/src/Resources/config/parameters/amenities.yml @@ -1,201 +1,202 @@ -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' +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' diff --git a/src/Resources/config/parameters/common.yml b/src/Resources/config/parameters/common.yml new file mode 100644 index 0000000..cfaa383 --- /dev/null +++ b/src/Resources/config/parameters/common.yml @@ -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' diff --git a/src/Resources/config/parameters/providers.yml b/src/Resources/config/parameters/providers.yml index 8329dd0..6b61706 100644 --- a/src/Resources/config/parameters/providers.yml +++ b/src/Resources/config/parameters/providers.yml @@ -1,156 +1,157 @@ -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' +parameters: + netzmacht.contao_leaflet_maps.providers: + OpenStreetMap: + variants: ['Mapnik', 'BlackAndWhite', 'DE', 'France', 'HOT', 'BZH'] - OpenWeatherMap: - variants: - - 'Clouds' - - 'CloudsClassic' - - 'Precipitation' - - 'PrecipitationClassic' - - 'Rain' - - 'RainClassic' - - 'Pressure' - - 'PressureContour' - - 'Wind' - - 'Temperature' - - 'Snow' + OpenSeaMap: [] - 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' + OpenTopoMap: [] - HikeBike: - variants: - - 'HikeBike' - - 'HillShading' + Thunderforest: + variants: + - 'OpenCycleMap' + - 'Transport' + - 'TransportDark' + - 'SpinalMap' + - 'Landscape' + - 'Outdoors' + - 'Pioneer' - BasemapAT: - variants: - - 'basemap' - - 'grau' - - 'overlay' - - 'highdpi' - - 'orthofoto' + OpenMapSurfer: + variants: ['Roads', 'AdminBounds', 'Grayscale'] - nlmaps: - variants: - - 'standaard' - - 'pastel' - - 'grijs' - - 'luchtfoto' - - NASAGIBS: - variants: - - 'ModisTerraTrueColorCR' - - 'ModisTerraBands367CR' - - 'ViirsEarthAtNight2012' - - 'ModisTerraLSTDay' - - 'ModisTerraSnowCover' - - 'ModisTerraAOD' - - 'ModisTerraChlorophyll' + Hydda: + variants: ['Full', 'Base', 'RoadsAndLabels'] - NLS: [] + 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: [] diff --git a/src/Resources/config/services/encoders.yml b/src/Resources/config/services/encoders.yml new file mode 100644 index 0000000..3d636c2 --- /dev/null +++ b/src/Resources/config/services/encoders.yml @@ -0,0 +1,40 @@ +services: + 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 } diff --git a/src/Resources/config/services/filters.yml b/src/Resources/config/services/filters.yml new file mode 100644 index 0000000..3a8bf82 --- /dev/null +++ b/src/Resources/config/services/filters.yml @@ -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' } diff --git a/src/Resources/config/services/listeners.yml b/src/Resources/config/services/listeners.yml new file mode 100644 index 0000000..e69de29 diff --git a/src/Resources/config/services/mappers.yml b/src/Resources/config/services/mappers.yml new file mode 100644 index 0000000..3ed87a9 --- /dev/null +++ b/src/Resources/config/services/mappers.yml @@ -0,0 +1,33 @@ +services: + 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 } + diff --git a/src/Resources/config/services/services.yml b/src/Resources/config/services/services.yml new file mode 100644 index 0000000..99f8863 --- /dev/null +++ b/src/Resources/config/services/services.yml @@ -0,0 +1,3 @@ +services: + netzmacht.contao_leaflet_maps.frontend.value_filter: + class: