Hi all:
I appreciate if someone could give me a hint on the following problem.
In application, I have a graphics layer which has a DataProvider property set to an array collection.
(so the array collection consists of points with attributes and is a data source for my graphics layer).
To define a style of points and to draw them, I use infoRenderer with states: one of states has a button "delete". The idea is to able a user to delete point from a layer. ( in other words I need to remove an object from the arrayCollection/dataProvider by its index.
I still cannot figure out how ( when a user clicks on "delete" button ) to get an index of the graphic in the array collection?
Kind regards,
Alexander