Hoppa till huvudinnehållet

Use workflow to change measurement graphic style

Kommentarer

3 kommentarer

  • Zack Robison

    I don't know how you would go about modifying existing graphics' colors, but if you know the id of the graphics layer you can use the Get Graphics Layer Features activity. If you find that you are unable to update the existing graphics, it would be pretty easy to clear out the existing graphics from the layer and replace them with new ones of a different color.

     

    You might also toy around with the results of the Get Application Info activity, where I suspect you can find and change the markup styles for a given app instance. Again, I suspect that one would need to clear and re-draw graphics in order to update the map.

     

    Please let us know if you come up with anything, this seems like a useful snippet to have!

    0
  • Permanently deleted user

    hi @Zack Robison? , thanks a lot for your tip which helped me finish my workflow. The ID of the graphic layer I tried to work on is the default one - Drawings, which contains graphics drawn by user, or from the measurement tools. I used Get Graphics Layer Features to get all graphic features from the layer, then filtered the array by user's input geometry, and used Set Feature Symbol to change the style, and finally use Get Layer to get the Drawings layer object as the input of the Refresh Layer activity. All work perfectly.

    0
  • Zack Robison

    Awesome! Thanks for sharing the trick, I'm sure that I'll probably be using this at some point.

    0

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