-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Map] Introduce ux_map.google_maps.default_map_id
configuration
#2350
base: 2.x
Are you sure you want to change the base?
Conversation
## 2.22 | ||
|
||
- Add method `Symfony\UX\Map\Renderer\AbstractRenderer::tapOptions()`, to allow Renderer to modify options before rendering a Map. | ||
- Add configuration `ux_map.google_maps.default_map_id` to automatically set the map id for all maps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add configuration `ux_map.google_maps.default_map_id` to automatically set the map id for all maps | |
- Add `ux_map.google_maps.default_map_id` configuration to set the Google ``Map ID`` |
- Add argument `$defaultMapId` to `Symfony\UX\Map\Bridge\Google\Renderer\GoogleRendererFactory` constructor | ||
- Add argument `$defaultMapId` to `Symfony\UX\Map\Bridge\Google\Renderer\GoogleRenderer` constructor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add support for Google
Map ID
->set($rendererFactoryName = 'ux_map.renderer_factory.'.$name, $bridge['renderer_factory']) | ||
->parent('ux_map.renderer_factory.abstract') | ||
->tag('ux_map.renderer_factory'); | ||
|
||
if ('google' === $name) { | ||
$container->services() | ||
->get($rendererFactoryName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big fan of variables in service names (just personal taste here)
With this modification, I can configure a default Google Maps
mapId
:without having to manually pass the
mapId
when creating aMap
: