Closed Kocal closed 1 week ago
With this modification, I can configure a default Google Maps mapId:
mapId
# config/packages/ux_map.yaml ux_map: # https://symfony.com/bundles/ux-map/current/index.html#available-renderers renderer: '%env(resolve:default::UX_MAP_DSN)%' google_maps: default_map_id: abcdefgh123456789
without having to manually pass the mapId when creating a Map:
Map
// use default mapId $map = (new Map()); ->center(new Point(48.8566, 2.3522)) ->zoom(6); // use default mapId $map2 = (clone $map) ->options(new GoogleOptions()); // use custom mapId $map3 = (clone $map) ->options(new GoogleOptions(mapId: 'foobar));
With this modification, I can configure a default Google Maps
mapId
:without having to manually pass the
mapId
when creating aMap
: