Skip to content

[feature request] 📌 Map pin opened state + transition? #4226

Description

@dalibormrska

Is your feature request related to a problem? Please describe.

Currently a map pin does not have an arrow and is a bit rigid. Which means that the circle is obstructing the exact location.
Image

Describe the solution you'd like

Primarily the goal would be to make the pin pointy when it is in the opened state, so that the tip points to the location.
Image

Many other platforms do this, such as Geocaching.
Image

A while ago I coded AN EXAMPLE of a map pin animation and I am wondering if it could be implemented. I am not sure if it is possible and what are the limitations of Leaflet.

I am creating this issue as a place of discussion to gather ideas about possible solutions and limitations. And also to see if it makes sense. If it is too complicated and would take too much time, we can skip it, not a priority.

If you see a way to implement the codepen example then go to the issue #3854 where more info is given.

Describe alternatives you've considered

If the animation is not possible or would not work well, the solution with just the pointy tip on the bottom of the card, transitioning instantly would work as well - it would also be a nice improvement.

This is an alternative that I have also seen, for example on WWOOF, it is nice indeed, it makes more obvious connection between the card and the pin and feel free to also implement it if you would like to, but it does not address the problem identified above.
Image

Additional context

Metadata

Metadata

Assignees

Projects

Status
New / Under Discussion

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions