prasadp87

Set max Zoom in level and changing annotation image for feature layer

Discussion created by prasadp87 on Mar 23, 2014
Latest reply on Aug 10, 2015 by susannamoore
Hello All,

1. I am trying to show LA street lights data in iOS map, i have used "http://www.arcgis.com/home/item.html?id=fbea2cb239004e6ba4c4f01eb809bba4" for reference, so in iOS app loading webmap using following method

self.webmap = [AGSWebMap webMapWithItemId:@"fbea2cb239004e6ba4c4f01eb809bba4" credential:nil];

I can zoom in map and its showing street lights data properly.

Now i would like to change its base map, so for that i have adding tiled map layer using following method

AGSTiledMapServiceLayer *tiledLayer =
    [AGSTiledMapServiceLayer
     tiledMapServiceLayerWithURL:[NSURL URLWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"]];
    [self.mapView addMapLayer:tiledLayer withName:@"Basemap Tiled Layer"];


Its loading properly, but problem which i am facing is, its not further zoom in after specific zoom in level.
i have tried by using "zoomToEnvelpe" its working fine if above tiled layer is not used.

2. Also my another question is, Is it possible to change default annotations (pins) shown in above webmap created with id "fbea2cb239004e6ba4c4f01eb809bba4", if not what is the approach that i can use so i can load different annotations.

Any help really appreciated.

Thanks.

Outcomes