AnsweredAssumed Answered

Label Scale Range Inverted When Displaying Runtime Content

Question asked by jamesrichards on May 5, 2014
Latest reply on May 7, 2014 by SBaskaran-esristaff
Hi,

I'm experimenting with the new Share As... Runtime Content... option in ArcGIS Desktop 10.2.2. I created an offline geodatabase file with a point layer (Cities). The layer has its Scale Range set to "Don't show layer when zoomed out beyond: 1:12,000,000". This looks correct in ArcMap and works fine when publishing the geodatabase file as runtime content, sideloading to the device, and loading the layer into a map using this code:

for (AGSFeatureTable* fTable in [self.geodatabase.featureTables reverseObjectEnumerator]) {     if ([fTable hasGeometry]) {         NSLog(@"adding name: %@", fTable.tableName);         [self.mapView addMapLayer:[[AGSFeatureTableLayer alloc] initWithFeatureTable:fTable]];     } }


I then turned on the "Label features in this layer" option and set the Scale Range of the labels to "Don't show labels when zoomed out beyond: 1:4,000,000". This works correctly in ArcMap, however, when displayed on the device the labels are shown between 4,000,000 and 12,000,000 scale.

Thanks!
James

Outcomes