[Symfony UX Map] Add post-install steps for Leaflet and Google, add "ux_map.google_maps.default_map_id" config recipe

This commit is contained in:
Hugo Alliaume
2024-11-14 08:32:44 +01:00
parent 21ffab22d3
commit cda40e9471
4 changed files with 23 additions and 0 deletions
@@ -0,0 +1 @@
* <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/ux/blob/2.x/src/Map/src/Bridge/Google/README.md</>
+20
View File
@@ -0,0 +1,20 @@
{
"conflict": {
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
},
"add-lines": [
{
"file": "config/packages/ux_map.yaml",
"position": "after_target",
"warn_if_missing": true,
"target": " renderer: '%env(resolve:default::UX_MAP_DSN)%'",
"content": " google_maps:\n # define the default map id for all maps (https://developers.google.com/maps/documentation/get-map-id)\n default_map_id: null"
}
],
"env": {
"#1": "Options available at https://github.com/symfony/ux/blob/2.x/src/Map/src/Bridge/Google/README.md",
"#2": "",
"GOOGLE_MAPS_API_KEY": "# Get your API key at https://developers.google.com/maps/documentation/javascript/get-api-key",
"UX_MAP_DSN": "google://%env(GOOGLE_MAPS_API_KEY)%@default"
}
}
@@ -0,0 +1 @@
* <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/ux/blob/2.x/src/Map/src/Bridge/Google/README.md</>
@@ -0,0 +1 @@
* <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/ux/blob/2.x/src/Map/src/Bridge/Leaflet/README.md</>