Changes to the drawing tool causing refresh

395
1
09-29-2010 05:50 AM
KevinGooss
Occasional Contributor
Some change made to the js api around version 2.0 is causing my application some serious issues. Wondering if anyone else is experiencing this and has a fix.
When my users go to draw features while they are clicking to add vertex the map will refresh on it's own and the sketch will be gone.
I noticed that at around 2.0 users were able to pan while they are sketching. This seems to be a new feature added to the api.
I like that aspect of the sketching, because users often ask for panning ability.
But I don't understand why it is being inconsistent in my app.
Users can get 4 or 5 vertex in and the drawing will just vanish and the map will refresh and the sketch will be gone.
Is anyone else noticing this?
0 Kudos
1 Reply
KevinGooss
Occasional Contributor
I think i figured this one out on my own. I had some code that fired on each map refresh that was reseting that draw toolbar. I guess somewhere around version 2.0 esri introduced a feature to allow users to pan while sketching. Didn't see that anywhere in the docs, but it is definitely something that needs to be accounted for, esp. if you are doing anything on map refresh.
0 Kudos