| 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 |
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.
Feb 22, 2011
(No comment was entered for this change.)
Labels:
Fixed Fixed-3.4
Feb 22, 2011
(No comment was entered for this change.)
Status:
Fixed
Labels: -Fixed
Feb 22, 2011
Issue 2092 has been merged into this issue. |
|
| ► Sign in to add a comment |
Labels: Internal-3467007