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

Experiment: Popover API for popups #969

Open
Malvoz opened this issue Aug 10, 2024 · 2 comments
Open

Experiment: Popover API for popups #969

Malvoz opened this issue Aug 10, 2024 · 2 comments

Comments

@Malvoz
Copy link
Member

Malvoz commented Aug 10, 2024

See Maps4HTML/MapML-Specification#259.

With the Popover API, <feature> is the popovertarget and <properties> (or other element) the popover element.

Polyfill: https://github.com/oddbird/popover-polyfill

@Malvoz
Copy link
Member Author

Malvoz commented Aug 10, 2024

I just remembered @zcorpan's comment (förlåt Simon!) - if we find any limitations or issues with the popup API for web maps, we should raise them.

@prushforth
Copy link
Member

One thing that for example Leaflet provides is the ability of the popover to have a thought balloon-like callout pointer that points to the feature on the map. This could be important, or nice to have at least, for maps and features, depending on how the popover element is presented. i.e. if it's really a popup, the callout is useful:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants