// Do any additional setup after loading the view from its nib.
NSURL *basemapURL = [[NSURL alloc] initWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"];
AGSTiledMapServiceLayer *basemapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:basemapURL];
[mapView addMapLayer:basemapLayer withName:@"Basemap Tiled Layer"];
mapView.layerDelegate = self;
mapView.touchDelegate = self;
/** The map coordinates of where the map display is anchored.
Usually this is the center of the map. However it could be different. For example, if the map is anchored on the location display, this will be the coordinate
of the location display.
@property (nonatomic, copy, readonly) AGSPoint *mapAnchor;
/** Limits the amount by which the map can be panned such that its anchor point (typically the center) never goes outside
this envelope. By default, this is the full envelope of the basemap layer. If you set a custom extent,
the envelope must have the same spatial reference as the map.
@property (nonatomic, strong, readwrite) AGSEnvelope *maxEnvelope;