My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 3052: Bug: deleting an overlay of various types using setMap(null) too soon after creating it raises an error within the API
4 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Feb 2011


Sign in to add a comment
 
Reported by [email protected], Feb 17, 2011
Calling setMap(null) on an object too soon after it is created is raising an error within the API. The error is a little different between browsers but occurs in all that I have tested. It is usually something like "a is undefined" (firefox), "Uncaught TypeError: Cannot call method 'setPaths' of undefined" (Chrome), or "SCRIPT5007: Unable to get value of the property 'setPaths': object is null or undefined" (IE9). I presume this is occurring because the maps api has readied itself to render the overlay but hasn't gotten around to doing it until after setMap(null) has already been called.

A test fixture is attached that illustrates this problem in API version 3.4; however the issue currently exists in all versions of the 3.x API.
test34.html
1.4 KB   View   Download
Feb 17, 2011
#1 [email protected]
(No comment was entered for this change.)
Status: Confirmed
Labels: Internal-3467007
Feb 22, 2011
#2 [email protected]
(No comment was entered for this change.)
Labels: Fixed Fixed-3.4
Feb 22, 2011
#3 [email protected]
(No comment was entered for this change.)
Status: Fixed
Labels: -Fixed
Feb 22, 2011
#4 [email protected]
 Issue 2092  has been merged into this issue.
Sign in to add a comment

Powered by Google Project Hosting