[mapserver-users] Re: multiple map layers with different scales

easyl thlin.box at gmail.com
Tue Jul 20 05:37:21 PDT 2010


I found another interesting thing with mode=tile.

I set layers with different MAX/MINSCALEDENOM in map file and used (google
map) tile mode from a web client.

====map file====
  LAYER
    NAME ...
    MINSCALEDENOM 45001
    ....
  END

====client====
function load() {
  if (GBrowserIsCompatible()) {
    var urlTemplate = 'http://server/cgi-bin/mapserv?';
        urlTemplate += 'map=my.map&';
        urlTemplate += 'layers=ALL&';
        urlTemplate += 'mode=tile&';
        urlTemplate += 'tilemode=gmap&';
        urlTemplate += 'tile={X}+{Y}+{Z}';
        .....
  }
}

Surprisingly it seems that Mapserver will automatically take "scale value"
into consideration when zoom in or out the map. The result is pretty good.
How is the CGI request interpreted?

Can I do something like that in "map" mode as well? that is, with mapext and
SCALEDENOM.
I tried
map=mapfile.map&layers=ALL&mode=MAP&mapext=11.25+45+12.5+58.25&SCALEDENOM=45000
and I got nothing.

thanks in advance.


-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-map-layers-with-different-scales-tp5292120p5316420.html
Sent from the Mapserver - User mailing list archive at Nabble.com.



More information about the MapServer-users mailing list