yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Earth MapType create error when dynamic remove and then add Map to a widget while Earth MapType is selected. #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: trunk r1146

Detailed description:
While Earth MapType is selected, then click on a button/link to view my app
without Google Map, so it removed from a VerticalPanel. Then click on a
button or a link to view my app with the same google map instance, with the
same map states, an error occurs:
com.google.gwt.core.client.JavaScriptException: (Error): Bad NPObject as
private data!
 fileName: http://maps.google.com/intl/en_us/mapfiles/139e/maps2.api/main.js
 lineNumber: 180
 stack: ([object
Object],false)@http://maps.google.com/intl/en_us/mapfiles/139e/maps2.api/main.js
:180
([object
Object])@http://maps.google.com/intl/en_us/mapfiles/139e/maps2.api/main.js:180
...

Workaround if you have one:
not remove it from VerticalPanel rather use a popup panel to hold my
application view states then show/hide(setVisibile(true/false)) when it
necessary.

This seem to work fine in IE but not in firefox. In Firefox, event the
PopupPanel contains the MapWidget is setVisible(false) but the Google Earth
plug in still show.

Original issue reported on code.google.com by Tri...@gmail.com on 9 Jan 2009 at 12:05

GoogleCodeExporter commented 9 years ago
The error is shown in Firefox. in IE Google Earth plug in just show nothing.

The workaround works if I hide (setVisibile(false)) the MapWidget when the
PopupPanel.setVisible(false).

Original comment by Tri...@gmail.com on 9 Jan 2009 at 12:21

GoogleCodeExporter commented 9 years ago
The next step on this would be to try to reproduce it in plain JavaScript to 
report
to the Maps team.

Original comment by galgwt.reviews@gmail.com on 9 Jan 2009 at 6:00

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 28 May 2010 at 6:18