Repository navigation
[Map] Add Rectangle support - #2845
Merged
Merged
Conversation
Contributor
📊 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.
|
||||||||||||||||||||||||||||||
Valmonzo
force-pushed
the
feat/add-rectangle-support-for-map
branch
2 times, most recently
from
June 17, 2025 11:47
e0b3f91 to
e76d201
Compare
Valmonzo
marked this pull request as ready for review
June 17, 2025 11:49
Kocal
reviewed
Jun 21, 2025
Kocal
force-pushed
the
feat/add-rectangle-support-for-map
branch
from
June 22, 2025 14:54
dd132b1 to
861c5c9
Compare
Co-authored-by: Hugo Alliaume <hugo@alliau.me>
…mputing `@id` is expected
…r `Circle` and `Rectangle` instances
Kocal
force-pushed
the
feat/add-rectangle-support-for-map
branch
from
June 22, 2025 14:55
861c5c9 to
93c31b0
Compare
Kocal
reviewed
Jun 22, 2025
Comment on lines
+111
to
+118
| foreach ($attrs['circles'] as $key => $circle) { | ||
| $attrs['circles'][$key]['@id'] = $computeId($circle); | ||
| } | ||
|
|
||
| foreach ($attrs['rectangles'] as $key => $rectangle) { | ||
| $attrs['rectangles'][$key]['@id'] = $computeId($rectangle); | ||
| } | ||
|
|
Member
There was a problem hiding this comment.
The @id computation was missing from last PR and this one, it was not possible to use them correctly when using the Map with a LiveComponent.
I've improved our tests to assert that @id are present and nicely computed, for the next Elements instances properties.
Kocal
reviewed
Jun 22, 2025
Member
There was a problem hiding this comment.
Modifying this file was also forgotten in the previous PR and this one. Without these modifications, it was not possible to use <twig:ux:map circles="{{ ... }}"> or ux_map(circles=[]). Same for rectangles.
Kocal
approved these changes
Jun 22, 2025
Member
|
Thank you @Valmonzo. |
Kocal
added a commit
that referenced
this pull request
Jun 22, 2025
…and `Rectangle` (Kocal) This PR was merged into the 2.x branch. Discussion ---------- [Map][Google] Fix `InfoWindow` compatibility with `Circle` and `Rectangle` | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Docs? | no <!-- required for new features --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Looks like using `InfoWindow` with Google Maps `Circle` and `Rectangle` has not been tested when working on #2845 and #2838 :( Commits ------- ac68141 [Map][Google] Fix `InfoWindow` compatibility with `Circle` and `Rectangle`
Kocal
added a commit
that referenced
this pull request
Jun 23, 2025
…tributes (Valmonzo) This PR was merged into the 2.x branch. Discussion ---------- [Map] Update test to include circle and rectangle data attributes | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Fix typo from #2845 and missing circles attributes from #2838 , sorry `@Kocal` 😞 Commits ------- 2b65124 [Map] Update test to include circle and rectangle data attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding a new
Rectangleelement to Map following GoogleMaps and Leaflet features.