Skip to content

Commit 23244b1

Browse files
committed
[Symfony UX Map] Add post-install steps for Leaflet and Google, add "ux_map.google_maps.default_map_id" config recipe
1 parent dae5cee commit 23244b1

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Google/README.md</>
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"conflict": {
3+
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
4+
},
5+
"add-lines": [
6+
{
7+
"file": "config/packages/ux_map.yaml",
8+
"position": "after_target",
9+
"warn_if_missing": true,
10+
"target": " renderer: '%env(resolve:default::UX_MAP_DSN)%'",
11+
"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"
12+
}
13+
],
14+
"env": {
15+
"#1": "Options available at https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Google/README.md",
16+
"#2": "",
17+
"GOOGLE_MAPS_API_KEY": "# Get your API key at https://developers.google.com/maps/documentation/javascript/get-api-key",
18+
"UX_MAP_DSN": "google://%env(GOOGLE_MAPS_API_KEY)%@default"
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Google/README.md</>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* <fg=blue>Read</> the documentation at <comment>https://github.com/symfony/symfony-ux/blob/2.x/src/Map/src/Bridge/Leaflet/README.md</>

0 commit comments

Comments
 (0)