Skip to content

Popups #259

Open
Open

Description

@Malvoz

The <properties> element can be used to create popups. It seems to be a case of browser magic, which may not be ideal.

Are authors expected to style the <properties> element itself (or even pseudo-elements) to style popups?

I think it'd be good to consider integration with the new Popover API instead. MapML could specify that HTML should extend the list of allowed popovertarget elements to include <feature>.

Activity

  1. prushforth commented on Aug 18, 2024

    @prushforth
    Member

    I think it'd be good to consider integration with the new Popover API instead. MapML could specify that HTML should extend the list of allowed popovertarget elements to include .

    +1

    Also, I like the idea of <feature> being the one that contains the popover attribute / being the popovertarget i.e. not the <properties> alone, because it might allow the map author to supply CSS that is used when the feature is in the popped-over state to highlight the geometry on the map in some way, while the popover is displayed.

    I'll read the MDN docs and see if we can add it to our polyfill roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions