My question is :
Do you have to remove the entire DynamicMapLayer each time you want to change the visible layers on the fly? (as in, I've already created the dynamicmaplayer and added it to the mapView.Now I want to make a change to the visible layers in the middle of running the app)
So, Do I have to do this entire process of removing the layer either by reset or removing it by name, recreating it, and adding it back in?
[self.mapView reset];
Then rebuild the AGSDynamicMapServiceLayer and addit to the
self.baseDynamicLayer = [[[AGSDynamicMapServiceLayer alloc] initWithMapServiceInfo:bms]autorelease];
self.baseDynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:2], nil];
[self.mapView addMapLayer:baseDynamicLayer withName:@"baseLayer"];
Or - is there a better way I can accomplish changing visible layers without REMOVING the AGSDynamicMapServiceLayer from the mapView and adding back in ?