Monday, 9 September 2013

Google Maps & Chrome: uncaught InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

Google Maps & Chrome: uncaught InvalidStateError: An attempt was made to
use an object that is not, or is no longer, usable

I am doing animations with markers in Google Maps, for that I use "set
icon" function of markers.
The problem is when you change the tab in google Chrome (No problems in IE
or Firefox), when you return I start to receive the exception "Uuncaught
InvalidStateError: An attempt was made to use an object that is not, or is
no longer, usable." every time setIcon is called.
What is the problem here? (I tried to stop animation when the tab is in
background but still, when you return, the exceptions starts).
Thank you.

No comments:

Post a Comment