Select to view content in your preferred language

Urgent Help Please

701
1
03-07-2013 09:55 PM
raffia
by
Deactivated User
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.
Regards
0 Kudos
1 Reply
HumzaAkhtar
Deactivated User
Could you provide a screenshot of the error as I have never encountered any error with the name "not registered with arcgis"?

Thanks
0 Kudos