Sublayer Visibility not working when Group Layer is turned off - bug or feature?
Hi,
I have 2 mapservices with:
Grouplayer A, sublayers A1, A2
Grouplayer B, sublayers B1,B2
In HTML5 Viewer, the grouplayers are folders A and B with radio buttons (only one active at a time). If I use Set Layer Visibility true in a WF on A1 and B1 - it works only for the sublayer in the active/visible folder. So if folder A is ticked/visible and B is not, turning off B1 does not work.
Is there a way to work around this?
Just in case you are wondering - I have a workflow that applies a query to flora and fauna layers in separate folders. When a clear button is pressed, I need to swap layers within each folder as I am using other layers for querying than for general display without filter.
Thank you.
-
sublayers in an inactive folder cannot be turned on or off
0 -
Actually, I tested again, it is only turning off that does not work. If I activate the folder manually and run the WF again, the sublayer is turned off. Turning on works even when the folder is not active.
0 -
Does anyone have an answer to solve this issue ? It is misfortune a that I have to manually have to click the visibility of the group layer before the workflow activity is able to turn the visibility on and off.
0 -
I have had the same problem for some time and I don't think there is a direct solution in WF5 right now. In WF4 you have the Set Layer List Item Info activity to handle these situations. Unfortunately an equivalent in WF5 is still missing.
Other people on the forum also have your problem.
A workaround I have used is to create a layer theme where all the folders are turned on. The workflow switches to this layer theme when activated. Unfortunately this only works if you don't use folders with radio buttons.
@Kees Baake? I have used this in the HTML5 viewer but I don't know if it works in the new Geocortex WebViewer so it depends on which viewer you are using. It does look like that viewer also supports layer themes.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare