Failed error

598
2
10-02-2012 12:23 PM
BanchanaPandey
New Contributor III
I am trying to do a very simple stuff.
I am using drawing toolbar to draw graphics on the map.

As shows in the javascript api example,
I initiate a draw toolbar

   var drawToolbar = new esri.toolbars.Draw(map);

Then onDrawEnd of the drawToolbar, I add graphics to the map.

First time it adds successfully.
Second time it adds successfully if I don't click on top of the previously added graphic.
if I happen to start from a point, that is on top of the previously added graphic, I get a failed error in visual studio.
But this behaviour is only in IE, not in chrome. In chrome, it works fine.
If I don't click on top of the graphic, it works fine. Already tried with map.graphics onClick event handler, but that also doesn't help it.

But If I run the esri javascript api draw toolbar sample in ie, it works fine. What could I be possibly missing?

Thanks,
Banchana
0 Kudos
2 Replies
JohnGravois
Frequent Contributor
can you provide a sample application demonstrating the problem?
0 Kudos
JeffPace
MVP Alum
are you using an older version of the api?

I remember this occuring in older versions (~2.3 or so) but the error has been gone for a long time.  IT was IE only, could not start to draw a graphic over an existing graphic.
0 Kudos