File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,12 @@ Configuration is done in your ``config/packages/ux_map.yaml`` file:
34
34
# config/packages/ux_map.yaml
35
35
ux_map :
36
36
renderer : ' %env(resolve:default::UX_MAP_DSN)%'
37
+
38
+ # Google Maps specific configuration
39
+ google_maps :
40
+ # Configure the default Map Id (https://developers.google.com/maps/documentation/get-map-id),
41
+ # without to manually configure it in each map instance (through "new GoogleOptions(mapId: 'your_map_id')").
42
+ default_map_id : null
37
43
38
44
The ``UX_MAP_DSN `` environment variable configure which renderer to use.
39
45
Original file line number Diff line number Diff line change @@ -46,9 +46,12 @@ $map = (new Map())
46
46
->center(new Point(48.8566, 2.3522))
47
47
->zoom(6);
48
48
49
- // To configure controls options, and some other options:
49
+ // To configure control options and other map options:
50
50
$googleOptions = (new GoogleOptions())
51
- ->mapId('YOUR_MAP_ID')
51
+ // You can skip this option if you configure "ux_map.google_maps.default_map_id"
52
+ // in your "config/packages/ux_map.yaml".
53
+ ->mapId('YOUR_MAP_ID')
54
+
52
55
->gestureHandling(GestureHandling::GREEDY)
53
56
->backgroundColor('#f00')
54
57
->doubleClickZoom(true)
You can’t perform that action at this time.
0 commit comments