[Mapserver-users] getLayerByName phpMapscript
Stéphane RIFF
stephane.riff@cerene.fr
Wed, 24 Mar 2004 12:15:11 +0100
I'd like to add dynamically a layer to my map only and only if that
layer doesn't already exist.
The problem is : getLayerByName returns a layerObject if the layer exist
but if it doesn't exist the function
terminate the script and print the error. So i try with '@' to stop
error message but the script still die on getLayerByName.
So i'd like to know how i can be sure that a layer exist or not ???
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users