[Mapserver-users] getLayerByName phpMapscript

Stéphane RIFF stephane.riff at cerene.fr
Wed Mar 24 06:15:11 EST 2004


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 ???




More information about the mapserver-users mailing list