[mapserver-users] Styling (classes) based on zoom/extent?
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Wed Oct 19 03:38:45 PDT 2011
Hi,
Visibility by scale is controlled with MAXSCALEDENOM and MINSCALEDENOM at LAYER level. Pretty easy. I am never trying to calculate at which scale the change happens, it is much faster just to try and check the behaviour with a WMS client. For example, for rendering a layer between nominal scales 1:100000 and 1:1000000 use
LAYER
...
MAXSCALEDENOM 1000000
MINSCALEDENOM 100000
...
-Jukka Rahkonen-
Michael G. wrote:
>
> Hello everyone,
>
> I would like to render a layer only on closer zoomlevels. I am using
> OpenLayers that requests the map via WMS. I assume a zoom-level is not
> passed via WMS, so I would have to use the extends of a tile, which is
> fine, too.
>
> Can I somehow use these values in the EXPRESSION statement of classes?
>
> Best wishes,
> Michael
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list