Web-Map-Custom-Element
Web-Map-Custom-Element copied to clipboard
map-input is not respected for a map-extent and the tiles are still fetched at a lower zoom level
Discovered in #887 Steps to reproduce:
- visit the sandbox and paste in the following code
<mapml-viewer projection="CBMTILE" zoom="8" lat="48.840422" lon="-101.219978" controls>
<layer- label="CBMT" checked>
<map-extent units="CBMTILE" checked="checked" hidden="hidden">
<map-input name="z" type="zoom" min="6" max="8"></map-input>
<map-input name="y" type="location" units="tilematrix" axis="row"></map-input>
<map-input name="x" type="location" units="tilematrix" axis="column"></map-input>
<map-link rel="tile" tref="https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer/tile/{z}/{y}/{x}?m4h=t" ></map-link>
</map-extent>
</layer->
</mapml-viewer>
- Expected behavior - we think the layers should not be fetched outside of zoom level 6-8 (due to the map-input on the map-extent), but they still do when we zoom to the layer through the context menu
Related to #896
I had the idea that we might implement "min/maxNativeZoom" by using the min/max attributes of <map-input type=zoom min=3 max=7> for example. Those min/max attributes are as close to the template that loads the tiles as we will get, and can be set up by the map author. The <map-meta name="zoom" content="min=7,max=12"></map-meta> values can control the display of the layer. To be discussed.
Possibly related to #666
This issue has been resolved.