Hi all, I am trying get a layer of type WMSMapServiceLayer loaded in the map using the actionscript class "WMSMapServiceLayer.as" extended of the class DynamicMapServiceLayer with the following code:
for each (var layerId:String in map.layerIds) {
var layer:Layer = map.getLayer(layerId);
}
but when I try to ask the type of layer (ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, WMSMapServiceLayer)
if(layer is ArcGISDynamicMapServiceLayer){
}else if(layer is ArcGISTiledMapServiceLayer){
}else if(layer is WMSMapServiceLayer){
//condition is not true when layer is WMSMapServiceLayer
}
The condition for the layer WMSMapServiceLayer is not true, even when the object layer is of type
"com.geospatialfocus.WMSMapServiceLayer (@11839479)".
Any suggestion to do it.
Note: The service wms load fine in the map, but I need to do some whit it.
Thanks a lot for your help.
Alexander Mena