can't get URL from MapServiceInfo

Discussion created by lujun.yuan on Feb 25, 2011
Hey all,

I am trying to get URL from MapServiceInfo. However, even when my map was initialized and loaded, the URL in MapServiceInfo was always nil.

Has anybody experienced the similar issue?

Here is my code. None of variables is nil, except serviceURL.

AGSDynamicLayerView *dynamicLayerView = (AGSDynamicLayerView *)agsLayerView;
NSLog(@"layerView = %@",; 
AGSDynamicMapServiceLayer *dynamicLayer = (AGSDynamicMapServiceLayer *) dynamicLayerView.agsLayer; 
mapServiceInfo = dynamicLayer.mapServiceInfo;  
NSURL *serviceURL = mapServiceInfo.URL;