mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 15:16:30 +03:00
[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:
@@ -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,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</>
|
||||
Reference in New Issue
Block a user