Skip to main content

Activate snapping.

Comments

17 comments

  • Stefan Schweigert

    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
  • Permanently deleted user

    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
  • Guillaume Ruelle

    @Stefan Schweigert?  @Jan-Henrik Nilsen? , any news about this topic ? Any workaround/solution ?

    0
  • Stefan Schweigert

    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
  • Permanently deleted user

    we're using HTML5 viewer v2.11.1 and having the same issue as Jan-Henrik. just wondering any progress. thanks.

    0
  • Stefan Schweigert

    Hi Jack,

     

    No updates at this time; I've added your name to the list of stakeholders.

     

    Thanks, Stefan

    0
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Stefan Schweigert

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Stefan Schweigert

    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
  • Permanently deleted user

    Hi Stefan, I'm using 4.14.3 and I do not see this feature. Where can I find it?

    0
  • Stefan Schweigert

    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
  • Permanently deleted user

    Hi Stefan, this would be a workflow 5 activity?

    0
  • Permanently deleted user

    All Good, I think I have worked it out. Thank you!

    0
  • Aaron Wong

    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

Please sign in to leave a comment.