Select to view content in your preferred language

Drawing Tool sometimes locks pan tool and can never finish drawing a polygon/polyline

2292
10
07-25-2012 11:07 AM
ChuanHung
Emerging Contributor
Hi

I'm developing a map application using Javascript API and I noticed (1) sometimes I can't pan the map after using the freehand drawing tools and (2) sometimes I can never finish drawing polyline/polygon by double clicking. At first I thought it's a problem in my code but then I found out the problems also exist in this sample . Could this be a bug in the API and is there any way to work around it?

Steps to reproduce problem (1)
1. Draw a Point on the map
2. Draw a Freehand Polyline on the map
3. Draw a Point on the map again
Now try to pan the map. It's no longer possible

Steps to reproduce problem (2)
1. Draw a Point on the map
2. Draw a Polyline on the map (not freehand)
3. Draw a Point on the map again
Now try to draw another Polyline (not freehand). Each time we double click it just adds a new vertex and we can never finish drawing the line

Thanks in advance!
0 Kudos
10 Replies
VinayBansal
Frequent Contributor
I have not encountered the same bug in 3.4 and hopefully it won't be there in 3.6. Since Jian has referred to the bug in Dojo 1.7 , but not mentioned what exactly was the bug. So not able to understand whether the bug is in dojo 1.7 or in ESRI API that used Dojo 1.7. We could have searched in the dojo Bugs list if he could have clearly mentioned about the bug detail. Also the sample link given in the above post is outdated.

To get yourself confident, just try out the sample from ESRI in different browsers. I have tried it in IE10 and Chrome and it works fine.
http://developers.arcgis.com/en/javascript/samples/graphics_add/
0 Kudos