[mapserver-users] Check whether layer exists on map using c# mapscript

sireesha sireesha_alloori at satyam.com
Thu Feb 25 06:06:40 EST 2010


Dear All,

I have 2 queries:

1) How to check whether a layer exists on map and then remove it using c#
mapscript.

  I am able to remove the layer using the below code:
        layerObj remLayer = map.getLayerByName("overlay_layer");
        map.removeLayer(remLayer.index);  
  But i want to check whether layer has already been removed or not.

2)How to remove feature that has been added to a layer?


Please help me.


Regards,
Sireesha
-- 
View this message in context: http://n2.nabble.com/Check-whether-layer-exists-on-map-using-c-mapscript-tp4631814p4631814.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list