Activate snapping.
Hello. I want to activate snapping for geometry picker in workflow. I'm able to do this if I first activate the snapping in standard tool for Edit --> Create new feature-->Enable snapping for active layers. Is there any way to activate snapping for geometry picker without activate the snapping in the edit tool section?
Best regards
Jan-Henrik Nilsen
-
Hi Jan-Henrik,
If you have configured the layer in Manager to already have snapping allowed and enabled, you should be able to use the Run Command activity with the ActivateSnapping set as the Command Name in the Load event for your form.
See: https://docs.geocortex.com/essentials/gvh/latest/commands-help/index.html#/commands/Snapping
Thanks, Stefan
0 -
Hello. Thx for answer. I have tried that and I get the circle and snapping point activate with the command, but it will not snap to my snappable layers. I have set snapping true to the layer. If I manual go into the edit toolbar and activate snapping and back to the w5 tool it will snap.
0 -
@Stefan Schweigert? @Jan-Henrik Nilsen? , any news about this topic ? Any workaround/solution ?
0 -
Hi Guillaume,
I've created a bug for our development team to look at as I'm also not able to configure this scenario.
Thanks, Stefan
0 -
we're using HTML5 viewer v2.11.1 and having the same issue as Jan-Henrik. just wondering any progress. thanks.
0 -
Hi Jack,
No updates at this time; I've added your name to the list of stakeholders.
Thanks, Stefan
0 -
Thanks Stefan, hope this bug could be addressed ASAP. Using geometry picker to create features that need to snap to other features on map is very common. without the snapping command working properly in WF5, it introduces more input error, and affect the user experience of the tool we developed using WF5.
0 -
Is there any bug number for this issue. We have waited one year on this topic. We need this function to work to port functions from another vendor to Geocortex applications.
0 -
Hi Jan-Henrik,
I've bumped up the priority on this issue (35663) and raised it again with the development team. I'll let you know if we have further updates.
Thanks, Stefan
0 -
Hi @Jan-Henrik Nilsen? , @Jack Zhang? , @Guillaume Ruelle?
There might be other conditions that get it to work, but in my experience the ActivateSnapping command only works when you have a tool that uses snapping active. The geometry picker doesn't seem to count as active for snapping until you click "+Add Location", so if the workflow runs the command before the user clicks that button, nothing happens.
I've been able to work around the issue before by using 3 command activities instead of just one. Have the first one (temporarily) enable a tool that can use snapping, have the second one run the ActivateSnapping command, and have the third one turn off the tool again.
So for example, this works if you have the default Draw tool available on your toolbar:
Command Name: SetActiveTool
Command Parameter: PolylineMarkupTool
Command Name: ActivateSnapping
Command Parameter:
Command Name: ClearActiveTool
Command Parameter:
0 -
Following @Amanda Frech? 's suggestion, I found I need to also wrap ActivateSnapping command with ActivateSelectLayersForSnapping DeactivateSelectLayersForSnapping, as below
Command Name: SetActiveTool
Command Parameter: PolylineMarkupTool
Command Name: ActivateSelectLayersForSnapping
Command Name: ActivateSnapping
Command Name: DeactivateSelectLayersForSnapping
Command Name: ClearActiveTool
0 -
Hi there,
In the 4.14.3 release, planned to be released in May 2021, will contain the ability to toggle ActivateSnapping and DeactivateSnapping via workflow within GVH.
Thanks, Stefan
0 -
Hi Stefan, I'm using 4.14.3 and I do not see this feature. Where can I find it?
0 -
Hi Yih Pyng,
To use this feature, configure the Run Command activity in Geocortex Workflow with the command as ActivateSnapping or DeactivateSnapping.
Thanks, Stefan
0 -
Hi Stefan, this would be a workflow 5 activity?
0 -
All Good, I think I have worked it out. Thank you!
0 -
just having this issue as well and searched up this post. (I know not many people still use HTML5 viewer).. how do we configure the layers to activate snapping for within a workflow?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
17 kommentarer