Select to view content in your preferred language

Offline Areas Creating using Python

90
0
Friday
Labels (3)
vijaybadugu
Frequent Contributor

 was trying to re create all offline areas for a webmap after compress. We are using World _imagery (Export ) tile layer, ArcGIS python API was modified recently to add another argument in offline_areas.create tile_services =

if "HIGH" in title_upper:  # Street level 
levels = ",".join(str(i) for i in range(10, 17))
#print('High' +str(max_scale) +'|' + str(min_scale))
elif "MED" in title_upper: # neighborhood 
levels = ",".join(str(i) for i in range(12, 14))
# print('MED' +str(max_scale) +'|' + str(min_scale))
elif "LOW" in title_upper: # city 
levels = ",".join(str(i) for i in range(15, 16))
#print('LOW' +str(max_scale) +'|' + str(min_scale))

for baseitem in basemap_lyr_items:
layerImagery.append({"url": baseitem.url,"levels":levels})


map_area = offline_map.offline_areas.create(area=polygon_geom,
item_properties=item_prop,
min_scale =min_scale,
max_scale =max_scale,
enable_updates=False,
refresh_schedule='daily',
refresh_rates = refresh_rates_times,
tile_services =layerImagery 
)

What are the ranges used for these 3 levels ? I tried different combinations. it failed. Even, I checked the Service in json format. nothing was working. I used ( High : (4,.... 20) , Med : (4,.. 15) , Low :(4,...13)  Please suggest on this 

0 Kudos
0 Replies