[Mapserver-users] How can i switch layers on/off with PHP mapscript?

Michael Härtel mhaerte1 at gwdg.de
Wed Apr 30 10:13:56 EDT 2003


Hello All!

I have installed the GMAP sample project and receive a lot of errors 
"Call to a member function on a non-object" in several code lines 
(between 548-553).
I try to simply switch on/off a single layer but can't figure out how do so.

I installed the example files from 
http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html

and i want to add a simple layer switching function to that example.

Can someone tell me how to EASILY implement this?

thanks in advance,

M. Härtel




More information about the mapserver-users mailing list