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

Templated image layer remains visible when zooming out using zoom out control #767

Open
Tracked by #886
yhy0217 opened this issue Feb 23, 2023 · 0 comments
Open
Tracked by #886
Milestone

Comments

@yhy0217
Copy link
Contributor

yhy0217 commented Feb 23, 2023

<layer- label="Toporama" checked>
  <map-meta name="zoom" content="min=4,max=5"></map-meta>
  <!-- the templated image layer has a minimum zoom level === 4 -->
  <map-extent units="CBMTILE">
    <map-input name="z" type="zoom" value="19" min="4" max="4" ></map-input>
    <map-input name="w" type="width" ></map-input>
    <map-input name="h" type="height" ></map-input>
    <map-input name="xmin" type="location" units="pcrs" position="top-left" axis="easting" min="-6207743.103886206"
      max="3952277.216154434" ></map-input>
    <map-input name="ymin" type="location" units="pcrs" position="bottom-left" axis="northing" min="-3362085.3441706896"
      max="3952277.216154434" ></map-input>
    <map-input name="xmax" type="location" units="pcrs" position="top-right" axis="easting" min="-6207743.103886206"
      max="3952277.216154434" ></map-input>
    <map-input name="ymax" type="location" units="pcrs" position="top-left" axis="northing" min="-3362085.3441706896"
      max="3952277.216154434" ></map-input>
    <map-link rel="image"
              tref="http://wms.ess-ws.nrcan.gc.ca/wms/toporama_en?SERVICE=WMS&amp;REQUEST=GetMap&amp;FORMAT=image/jpeg&amp;TRANSPARENT=FALSE&amp;STYLES=&amp;VERSION=1.3.0&amp;LAYERS=WMS-Toporama&amp;WIDTH={w}&amp;HEIGHT={h}&amp;CRS=EPSG:3978&amp;BBOX={xmin},{ymin},{xmax},{ymax}&amp;m4h=t" ></map-link>
  </map-extent>
</layer->
<layer- label="Static MapML with tiles" checked>
  <map-meta name="zoom" content="min=0,max=10"></map-meta>
  <map-meta name="projection" content="CBMTILE"></map-meta>
  <map-link rel="license"
    href="https://www.nrcan.gc.ca/earth-sciences/geography/topographic-information/free-data-geogratis/licence/17285"
    title="Canada Base Map © Natural Resources Canada"></map-link>
  <map-tile zoom="0" row="3" col="3" src="data/cbmt/0/c3_r3.png"></map-tile>
</layer->

When zooming out using the zoom out control:
image
It is still visible and is not disabled when zoom level = 2. But it will become invisible and disabled if I make any movement on map (ex. zooming in/panning/zooming in using mouse wheel) except zooming out using zoom out control.

When zooming out using mouse wheel:
image
It works as expectation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants