draw tool error: spatial reference of undefined

3245
1
06-26-2015 09:58 AM
TchapoBilante
New Contributor

In chrome when user draws a box on map using left mouse and immediately right clicks, a box is created on top of the map. The only way to get rid of it is to refresh the browser. Two errors are written to console:

     1- Uncaught TypeError: Cannot read property 'spatialReference' of undefined. happening in init.js

     2- Uncaught TypeError: Cannot set property 'geometry' of null. happening in draw.js

Is there a fix for this?

I am using JSAPI version 3.11

Thanks.

T.

0 Kudos
1 Reply
DarrenWiens2
MVP Honored Contributor

Please post your code or link to example.

0 Kudos