AnsweredAssumed Answered

Drawing Graphics on Different esri Basemaps

Question asked by christopher.barger on Jan 31, 2013
Latest reply on Feb 1, 2013 by christopher.barger
I am trying to draw a graphic on an esri basemap. I started with the ESRI_StreetMap_World_2D basemap. It is created in the viewDidLoad method of my view controller like this:


Code:
    AGSTiledMapServiceLayer *tiledLayer =
    [AGSTiledMapServiceLayer
     tiledMapServiceLayerWithURL:[NSURL URLWithString:@"http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"]];
    [self.mapView addMapLayer:tiledLayer withName:@"World Imagery"];



I then draw a graphic, a blue simple marker symbol, on user input. However, if i switch to http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer as my basemap, the graphic no longer draws. Is there something with the imagery layer where you cannot draw graphics on it? The only change I make to my code that results in the graphic not being drawn is changing the URL of the basemap.

Outcomes