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

map-extent add zoomTo() method, extent property and map-change event #907

Open
2 of 3 tasks
AliyanH opened this issue Nov 9, 2023 · 2 comments
Open
2 of 3 tasks
Labels
API Map and associated elements' non-declarative API (events and methods) enhancement
Milestone

Comments

@AliyanH
Copy link
Member

AliyanH commented Nov 9, 2023

Add the following to map-extent to be similar to layer-

  • zoomTo() method
  • extent property
  • map-change event
@AliyanH AliyanH added enhancement API Map and associated elements' non-declarative API (events and methods) labels Nov 9, 2023
@prushforth prushforth added this to the Autumn 2023 milestone Nov 10, 2023
@prushforth
Copy link
Member

Remind me: What does the map-change event relate to ? IIRC it's analog on the platform is the change event:

The change event is fired for <input>, <select>, and <textarea> elements when the user modifies the element's value. Unlike the input event, the change event is not necessarily fired for each alteration to an element's value.

So when we do implement the map-change event, it gives us the opportunity to amend the behaviour that we currently implement (I believe) which is that the event is fired for each alteration to the checked status, regardless of whether that change was programmatic or user-initiated. I may be mixing stuff up.

@AliyanH
Copy link
Member Author

AliyanH commented Mar 12, 2024

What does the map-change event relate to ?

It is referring to the event fired off by the checked attribute, like we have for layer - https://maps4html.org/web-map-doc/docs/api/layer-api#events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Map and associated elements' non-declarative API (events and methods) enhancement
Projects
None yet
Development

No branches or pull requests

2 participants