camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

WMTS layers with min/max resolutions #1152

Closed rbovard closed 6 years ago

rbovard commented 9 years ago

When setting min and max resolutions on a WMTS layer, the tiles are requested even when outside the range.

I'm sure to set correctly the resolutions because the layer is gray and the icon to zoom to max resolution is here if I'm outside range.

sbrunner commented 9 years ago

Actually it's the expected behavior...

rbovard commented 9 years ago

Ok, so you send a lot of useless queries that all result with 404 errors...

sbrunner commented 9 years ago

Effectively...

rbovard commented 9 years ago

I have an issue about this one.

I noticed that the print plugin queries the tiles of lower resolution (print resolution 1 -> tiles resolution 0.25) so I generated them on a layer with scales restictions. And now, because the tiles are requested even of the visibility of the layer, the tiles shows when I don't want them to.

So my question is if it's possible to disable queries when outside the range of the layer?

sbrunner commented 9 years ago

Do you have an example ?

You need this for ?:

rbovard commented 9 years ago

Yes sure: http://map.nyon.ch/demo/s/UiP5

If you zoom in (1:250), the layer in the TOC become gray but the tiles are asked. For me it's a bug between the status of the layer in the TOC and the display on the map.

Not concerning the print, I mentionned it because when printing, the tiles of 2 level after are requested. So to be able to print at 1:500, I autorized the layer in MapFile until ~1:100 and limit the visibility in admin panel.

Do you see what I mean?

sbrunner commented 9 years ago

Yes :-)

sbrunner commented 6 years ago

https://jira.camptocamp.com/browse/GSGMF-519