Hoppa till huvudinnehållet

Is it possible to append Markup Lines drawn in Studio web into an AGO Hosted feature service via VertiGIS Workflow. Can I assume Markup is stored as "Graphics"?

Kommentarer

1 kommentar

  • Amanda Frech

    Isaac Sorensen I think the simplest way to have the user draw lines for new features in a hosted feature layer would be with Display Form and Geometry Picker.

    But if you're specifically looking to capture any markup that has already been drawn with Studio Web's drawing tools, that can be retrieved in workflow too. For that I'd recommend using the "Run Operation" activity with map.get-markup as the operation name and the operation parameter left blank.  Then $runOperation1.result.graphics will hold an array of graphics containing each feature from the drawing tools.  You may need to do additional steps to filter down the graphics in that array to just line features if your app has the option to draw points, lines, and polygons.

    The map.get-markup operation is documented here: https://developers.vertigisstudio.com/docs/web/api-commands-operations-events/#operation-map.get-markup . If it helps to know for future exploration, I ended up going backwards to find it.  I went to Web Designer, tried adding a new command to the I Want To Menu, and looked for options that looked like they might grab the app's markup:

    After selecting that option, I used the "Customize" button here to check out what chain of operations and commands it used and find "map.get-markup":

     

    There's also the option of running the Get Graphics activity with __GCX_MARKUP as the layer ID, but that layer seems to add two features for each drawing, each with a different renderer.

    0

Du måste logga in om du vill lämna en kommentar.