diff --git a/src/Map/doc/index.rst b/src/Map/doc/index.rst index c6d49cfdc7d..6c22bc8a42f 100644 --- a/src/Map/doc/index.rst +++ b/src/Map/doc/index.rst @@ -34,6 +34,12 @@ Configuration is done in your ``config/packages/ux_map.yaml`` file: # config/packages/ux_map.yaml ux_map: renderer: '%env(resolve:default::UX_MAP_DSN)%' + + # Google Maps specific configuration + google_maps: + # Configure the default Map Id (https://developers.google.com/maps/documentation/get-map-id), + # without to manually configure it in each map instance (through "new GoogleOptions(mapId: 'your_map_id')"). + default_map_id: null The ``UX_MAP_DSN`` environment variable configure which renderer to use. diff --git a/src/Map/src/Bridge/Google/README.md b/src/Map/src/Bridge/Google/README.md index d46bd700833..59a55a06f24 100644 --- a/src/Map/src/Bridge/Google/README.md +++ b/src/Map/src/Bridge/Google/README.md @@ -46,9 +46,12 @@ $map = (new Map()) ->center(new Point(48.8566, 2.3522)) ->zoom(6); -// To configure controls options, and some other options: +// To configure control options and other map options: $googleOptions = (new GoogleOptions()) - ->mapId('YOUR_MAP_ID') + // You can skip this option if you configure "ux_map.google_maps.default_map_id" + // in your "config/packages/ux_map.yaml". + ->mapId('YOUR_MAP_ID') + ->gestureHandling(GestureHandling::GREEDY) ->backgroundColor('#f00') ->doubleClickZoom(true)