This gives me an inde圎rror: list index out of range, which on investigating, the data in there isn't good. Self.wm.update(item_properties=item_properties) This is the function I have, inside a utilities class and I get list index errors, and when I checkl the contents, it's not being populated. Sorry for the late reply, but I have been ill. Item.update(item_properties=item_properties) ![]() # iterate through the dictionary and reorder the layersįor key, value in lyr_order_ems(): ![]() # add the definition to the entry in the dictionary # value: list, index of layer (from bottom up), the definition will be added to this list.įor index, i in enumerate(item_data): The below is for one run on a single webmap. Below is the base script created, I can put the list of webmap ids in a file and iterate through when I want or schedule for intermittent quality control runs. Just taking this a bit further, I have tens of maps that will eventually be over a couple of hundred +, where I want standard layers in the same order, users have potential to reorder and some older maps do not fit the standard order but the layer naming does.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |