-
-
Notifications
You must be signed in to change notification settings - Fork 338
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][Google] Add maxZoom to GoogleOptions #2520
base: 2.x
Are you sure you want to change the base?
Conversation
📊 Packages dist files size differenceThanks for the PR! Here is the difference in size of the packages dist files between the base branch and the PR.
|
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.
Hi, thanks and congrats for your first contribution to Symfony 🎉😄
If we add (we will) support maxZoom
configuration, it would be great to have support for minZoom
configuration too, it should be quite simple.
Also, since this new feature is pretty generic, it would be great to add support for minZoom
and maxZoom
for Leaflet too. 🙏🏻
Finally, since we can configure initial, minimum, and maximum zoom values, I believe it would be nice to validate them, e.g. you don't want the initial zoom to be lower than minZoom, you don't want the minZoom to be higher that maxZoom, etc...
Feel free to reach us if needed, thanks!
@@ -1,5 +1,9 @@ | |||
# CHANGELOG | |||
|
|||
## Unreleased |
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.
We know that the next version will be 2.23, so let's add it :)
## Unreleased | |
## 2.23 |
@@ -1,5 +1,9 @@ | |||
# CHANGELOG | |||
|
|||
## Unreleased | |||
|
|||
- Add support for the maxZoom option |
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 the maxZoom option | |
- Add support for the `maxZoom` option |
It wasn't planned, but we're totally open to adding other options :) Initially when creating UX Map and bridges, we implemented a few of the “most popular” options. |
Hi @Kocal, Thank you for your awesome review! I'll take care of your comments. However, I have a few questions: Regarding the support for minZoom and maxZoom in Leaflet, I see that it’s already covered here. Or am I missing something? As for the validation, I’m not 100% sure how you want me to implement it. I have a few ideas, but I’m uncertain about the best approach. Could you please guide me? |
Hey @nina-alin,
You're 100% right, I forgot that it was already supported through
Sure! But first, I think Then, the validation will take place in the
We can introduce a new private method like
And of course, some tests! :D Do not hesitate to let me know if anything is unclear here. PS: were you at the ForumPHP 2024 at DisneyLand Paris? Your face looks familiar! |
I added the "maxZoom" option to the Symfony UX Google Map package. I needed it for a project, so I thought it would be a good addition.
This is my first time contributing to Symfony, so please let me know if I made any mistakes.
I'm also unsure if you're planning to add more GoogleOptions in the future. Currently, some of them are not available, and I was wondering if there's a specific reason for that. If so, I would be happy to help add more options!
Usage: