Urgent Help Please

Discussion created by raffialexanian on Mar 7, 2013
Latest reply on Mar 10, 2013 by humzarr
Dear all coders;

I have a very weird error, a simple two layer mao is causing this weird "not registered with arcgis" error,
here is the code

#define kTiledMapServiceURL @"http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" #define kDynamicMapServiceURL @"http://arcgis2.roktech.net/ArcGIS/rest/services/DigitalEg/CFC_En/MapServer/"

UIView<AGSLayerView>* lyr = [self.mapView addMapLayer:tiledLayer withName:@"Tiled Layer"];

//release to avoid memory leaks [tiledLayer release]; // Setting these two properties lets the map draw while still performing a zoom/pan

lyr.drawDuringPanning = YES;
lyr.drawDuringZooming = YES;

//create an instance of a dynmaic map layer

self.dynamicLayer = [[[AGSDynamicMapServiceLayer alloc] initWithURL:[NSURL URLWithString:kDynamicMapServiceURL]] autorelease];

//set visible layers

self.dynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber

Thank you very much in advance.