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 inside-circle #2036

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Aug 8, 2024

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

With Leaflet, the original marker's icon (that you can find at https://www.jsdelivr.com/package/npm/leaflet?tab=files&path=dist%2Fimages), has a white circle in it, see example:
Capture d’écran 2024-08-08 à 14 44 03

In #1937, in my first iteration I've added Leaflet icons to Symfony AssetMapper/ImportMap but this was toooo much work.
So, with Simon, we have agreed to use an inlined SVG instead, I've used the one from https://www.jsdelivr.com/package/npm/leaflet?tab=files&path=src%2Fimages, but it looks like the circle is transparent instead of white:
Capture d’écran 2024-08-08 à 14 39 05

With this PR:
Capture d’écran 2024-08-08 à 14 44 37

@carsonbot carsonbot added Bug Bug Fix Status: Needs Review Needs to be reviewed labels Aug 8, 2024
@Kocal Kocal force-pushed the fix/map-leaflet-marker-icon branch from e3938ee to 06e144b Compare August 8, 2024 12:43
@Kocal Kocal changed the title [Map][Leaflet] Fix Marker inside circle [Map][Leaflet] Fix Marker inside-circle Aug 8, 2024
@javiereguiluz
Copy link
Member

Nice. Thanks Hugo.

If we receive feedback about this white circle from folks using maps in "dark mode", we can iterate this and think about possible solutions. But, I'd say that right now this is not a problem, so let's merge this. Thanks.

@javiereguiluz javiereguiluz merged commit 108fc68 into symfony:2.x Aug 8, 2024
38 checks passed
@Kocal Kocal deleted the fix/map-leaflet-marker-icon branch August 8, 2024 13:28
@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: Needs Review Needs to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants