mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-03-01 09:38:13 +01:00
Implement assets loading.
This commit is contained in:
@@ -58,3 +58,6 @@ parameters:
|
||||
- 'id'
|
||||
- 'title'
|
||||
- 'alias'
|
||||
|
||||
# Leaflet libraries files
|
||||
netzmacht.contao_leaflet_maps.libraries: []
|
||||
|
||||
@@ -54,3 +54,12 @@ services:
|
||||
- '%netzmacht.contao_leaflet_maps.feature_model_properties%'
|
||||
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' }
|
||||
|
||||
Reference in New Issue
Block a user