delete individual graphic elements
Hello,
I would like to delete individually selected graphic elements that have been added to the map.
I have retrieved the graphic elements in the map with "Get Graphics" (previously added with "add graphics"). Now I want to list them in an "Item Picker" and then remove a selected element from the map.

(Deleting all elements is possible with "Clear Graphics")
In my workflow for filling the "Item Picker" I can fill the items with "Get Form Element Items From Features", but I cannot display the "Label" with an array element from the "Get Form Element Items From Features". If I write "...features[0].symbo0.url" as label, the label comes. But how can I dynamically fill feature[???]?
The same value of the first element should not always be displayed.
Label: ={symbol.url} or url or ={url} does not work

Does anyone have an idea how to delete individual graphic elements?
or labeling in the "item picker" with a value from the array of graphics .
I am grateful for any tips :)
-
The label in Get Form Element Items From Features always comes from an attribute of the graphic. If you want to use other properties, such as the symbol, I think the easiest way is to use a For Each loop on the graphics and inside it, use Set Feature Attribute to add a ‘label’ attribute based on the symbol.
Then, use that attribute for the Label input.
2 -
Hello Berend,
thank you for the information. I didn't know that I could ONLY label with the attributes. Then I'll try it (as described) once with the for each loop.
1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer