Skip to content
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][Leaflet] Fix marker icon gradients rendering, which can fails on some projects #2055

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Aug 13, 2024

Q A
Bug fix? yes
New feature? no
Issues Fix #...
License MIT

Another fix for UX Map, but for the better.

I didn't have this issue at all when working on UX Map implementation (on my "lab" project or on my personal website), but @smnandre got it when working on #2053:
Capture d’écran 2024-08-13 à 10 32 08

It looks like over-optimizing the SVG through https://jakearchibald.github.io/svgomg/, the id attributes optimization brokes the rendering. Using another id specific for UX Map fixes the issue:
Capture d’écran 2024-08-13 à 10 33 36

@carsonbot carsonbot added Bug Bug Fix Feature New Feature Status: Needs Review Needs to be reviewed labels Aug 13, 2024
@Kocal Kocal requested review from kbond, smnandre and WebMamba August 13, 2024 08:38
@Kocal Kocal removed the Feature New Feature label Aug 13, 2024
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Aug 13, 2024
@kbond
Copy link
Member

kbond commented Aug 13, 2024

Thanks Hugo.

@kbond kbond merged commit 841b847 into symfony:2.x Aug 13, 2024
38 checks passed
@Kocal Kocal deleted the fix/map-marker-svg-ids branch August 13, 2024 15:36
@Kocal Kocal added the Map label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug Fix Map Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants