Maps4HTML / Web-Map-Custom-Element

A custom <mapml-viewer> and <layer-> element suite
https://maps4html.org/Web-Map-Custom-Element/
Other
54 stars 15 forks source link

The extent bound is uncorrectly set, resulting the layer-.zoomTo work unproperly #900

Closed yhy0217 closed 4 months ago

yhy0217 commented 9 months ago

to reproduce:

go to: https://maps4html.org/experiments/vector-tiles/mapml/web-map/

zoom to the layer in the first map > the layer disappears from the viewport

Toggle debug mode on the first map > the extent bound does not match the actual size of the extent

The layer- with the same content but a different projection in the second map does not have the same problem. It will zoom to zoom level 0 when doing a layer-.zoomTo(), as expectation.

prushforth commented 4 months ago

Closing as no longer an issue