[Mapserver-users] status on or default?
Siki Zoltan
siki at bme-geod.agt.bme.hu
Sun Jul 27 14:46:43 PDT 2003
On Sun, 27 Jul 2003, [gb2312] Chen Fu wrote:
> Hi!
> I play with raster on mapserver these days. But I must
> set status default to make the raster layer shown,
> while set status on the raster layer disappear.
> Why?
>
>
> =====
> Remote Scensing Satellite Ground Station
> Chinese Academy of Science
>
> _________________________________________________________
> Do You Yahoo!?
> ÊîÆÚ´óƬÆë¾ÛÑÅ»¢Í¨ ÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨µ÷ƵÊÕÒô»úµÈÄãÀ´ÄÃ
> http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.promo.yahoo.com/minisite/messenger1/
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
Hi!
As far as I know if you set the layer status on really means you will be
able to turn it on/off. If the status is default you cannot turn the layer
off. So if you set the status on, you must set cgi variables.
Check layer, layers, <layer_name>_check and <layer_name>_select cgi
variables in the cgi reference.
For example the itasca demo uses layer cgi variable to set some
layers on at start up.
demo_init.html from itasca demo:
<html>
<head><title>MapServer Demo Interface</title></head>
<body bgcolor="#FFFFFF">
<center><h2>MapServer Demo Interface</h2></center>
<p><hr><p>
Kattintson az <b>Indítás</b> gombra a demo elindításához.
Az adatok Itasca megyébõl (MN) származnak, fõleg a USGS 1:24000-es szelvényrõl.
<form method=GET action="/cgi-bin/mapserv">
<input type="hidden" name="map" value="/home1/www/maps/itasca/demo.map">
<input type="hidden" name="layer" value="lakespy2">
===================================================
<input type="hidden" name="layer" value="dlgstln2">
===================================================
<input type="hidden" name="zoomsize" value=2>
<input type="hidden" name="program" value="/cgi-bin/mapserv">
<input type="hidden" name="map_web_imagepath" value="/home1/www/maps/tmp/">
<input type="hidden" name="map_web_imageurl" value="/maps/tmp/">
<center><input type="submit" value="Indítás"></center>
</form>
<p><hr><p>
</body></html>
End of demo_init.html
I hope it helps
Bye
--
Zoltan Siki
Tel:+36 1 463 1146 +36 70 3199092 Fax:+36 1 463 3209
Mail: siki at agt.bme.hu
-------------------------------------------------------------------------------
Assistant professor at egyetemi adjunktus
Department of Geodesy and Surveying Altalanos es Felsogeodezia tanszek
Budapest University of Technology Hungary Budapesti Muszaki Gazd. Tud. Egyetem
-------------------------------------------------------------------------------
More information about the MapServer-users
mailing list