Web-Map-Custom-Element icon indicating copy to clipboard operation
Web-Map-Custom-Element copied to clipboard

Experiment: Popover API for popups

Open Malvoz opened this issue 1 year ago • 2 comments

See https://github.com/Maps4HTML/MapML/issues/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 avatar Aug 10 '24 01:08 Malvoz

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.

Malvoz avatar Aug 10 '24 01:08 Malvoz

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

prushforth avatar Aug 18 '24 20:08 prushforth