01-08-2018 03:05 PM
Using the Geospatial Portal SDK to add WFS and WMS layers with $GP.legend.add. Problem is that the first time the session is run, the layers are not added in the same order as specified in the script. As a result the layers can cover each other in an undesirable manner (e.g. air photo on top of WFS). Is there a way to ensure that the layers will be added in the correct order as specified in the script? I can do a page refresh and the layers come in as expected, but that is a waste of time.