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

Implement <map-feature> custom element #528

Closed
prushforth opened this issue Oct 8, 2021 · 0 comments · Fixed by #801
Closed

Implement <map-feature> custom element #528

prushforth opened this issue Oct 8, 2021 · 0 comments · Fixed by #801
Assignees
Projects

Comments

@prushforth
Copy link
Member

prushforth commented Oct 8, 2021

We should try to implement <map-feature> as a custom element. Some behaviour that this should encompass, tentative list:

  • ability to add/remove <map-feature> as a child (or perhaps descendant) of <layer-> and render / remove the rendered resulting markup (SVG).
  • perhaps: modify the coordinates and have those modifications rendered dynamically
  • provide internal support for returning a GeoJSON representation of <map-feature> geometry. The objective is to be able to use turf.js to sort and analyze features for accessibility support e.g. sort ascending on distance from map centre
  • per discussion with @AliyanH, a custom element could directly provide interactivity, such as a .click() method, so that applications could work with features on the map without having to delve into our shadow DOM
  • method to calculate and return the extent of the feature as a JavaScript object
@Malvoz Malvoz changed the title Implement map-feature custom element Implement <map-feature> custom element Oct 19, 2021
@yhy0217 yhy0217 self-assigned this Mar 2, 2023
@prushforth prushforth added this to To Do in Road Map via automation Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Road Map
  
To Do
Development

Successfully merging a pull request may close this issue.

3 participants