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

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

Open AliyanH opened this issue 2 years ago • 2 comments

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

  • [x] zoomTo() method
  • [x] extent property
  • [ ] map-change event

AliyanH avatar Nov 09 '23 20:11 AliyanH

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.

prushforth avatar Mar 12 '24 20:03 prushforth

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

AliyanH avatar Mar 12 '24 20:03 AliyanH