Select to view content in your preferred language

All Instances of InfoSymbol displaying the last value

399
1
09-27-2010 11:47 AM
GregSpiridonov
Occasional Contributor
I am trying to create a "measure" tool, which displays a user-drawn polyline and an infosymbol holding the result of the lengths() function of the GeometryService.

It works fine, only that each time I run the measure tool, any instance of the InfoSymbol has it's label changed to the last measured distance.

Is that how it is supposed to work? would I have to clear the graphics layer and redraw them somehow?

Any help would be appreciated, thanks.
Tags (2)
0 Kudos
1 Reply
DavidElies
Deactivated User
If you're using a shared instance of a symbol, then any change you make will apply to that symbol no matter where or when you use it.  You might need to create a new instance of your InfoSymbol every time you use it.
0 Kudos