Hide Layer List without Deactivating It
Hello,
I have a map with a workflow that uses the activity Capture Geometry after an alert instructing users to draw a polygon on the map. When the alert is dismissed, the layer list is open even though it was not open when the workflow started. Somehow, the Layer List being open is causing the drawing to be plotted on the map about an inch above where my finger is actually touching my phone screen.
I'm trying to hide the layer list, but the only way I seem to be able to get rid of it is by using the command "DeactivateView" with the parameter "LayerListView". I can put a command at the end of the workflow to activate the view again, but I would rather not deactivate the layer list in the first place. I've tried using the command "HideView" with the same parameter, but it doesn't work.
Does anybody know how I can minimize the layer list rather than deactivate it?
Thanks,
Denise
0
-
Hi Denise,
Sounds like your idea to use the DeactivateView command is the closest option to accomplish what you're trying to do. However, it doesn't explain why the layer list is open after the workflow has completed.
If you'd like us to investigate whether this is a bug or not, please create a support ticket and include the workflow you're using.
The following page has an extensive list of commands, and how they are used. I'm sure you're familiar with it, but in case you aren't, here it is: https://docs.geocortex.com/essentials/gvh/latest/commands-help/#/
You could also look into the CloseDataFrame or ToggleDataFrame commands.
Hope that helps!
All the best,
Stephanie0 -
Hello Stephanie,
Thank you so much for your response! The CloseDataFrame command did the trick! The layer list now closes once the alert is dismissed, so the whole map is visible and the drawing shows up were my finger is instead of an inch above it.
Interestingly, the layer list is open again when the final display form is closed, but I don't mind that, and I can always put another CloseDataFrame command in if it does start to bother me.
Thanks again!
Denise0
Please sign in to leave a comment.
Comments
2 comments