Aller au contenu principal

Workflow 4 - Passing dynamic arguments to new viewer

Commentaires

4 commentaires

  • Nico Burgerhart

    You could use the extent URL parameter to open a viewer with a specific extent.

    https://docs.vertigisstudio.com/essentials/gvh/latest/admin-help/Default.htm#gvh/admin/viewer-urls.htm#URL_Parameters_Reference

    0
  • Emma Muirhead

    Thank you Nico.

    The documentation only shows examples with a specific extent to set, but I am looking to see if I can make it dynamic. Passing whatever prior extent the user had to the new viewer.

    Do you know a way to set the extent on the fly and pass that to the url parameter somehow??

     

    Thank you!!

    0
  • Nico Burgerhart

    You could use the Get Map Extent activity in a workflow to get the extent envelope.
    You could then create the extent parameter dynamically by creating a string in the way like below.

     "?extent=" & envelope1.xmin.tostring & "," & envelope1.ymin.tostring & "," & envelope1.xmax.tostring & "," & envelope1.ymax.tostring
    0
  • Emma Muirhead

    Thanks Nico!! I assume this string would just be used with the 'OpenWebPagewithURL'? 

     

    Do you know if we can pass the {context} value for point into a new viewer to be utilized by a separate workflow? I know you can set external values in the same viewer, but I don't know if it would be possible to pass values to a new viewer/workflow somehow?

     

    0

Vous devez vous connecter pour laisser un commentaire.