Zn2O / gwt-google-apis

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

Maps: Overlay.createPeer() throws exception on instanceof GGeoXmlOverlay #179

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.0.0 (RC1)

Detailed description:
From spike2050:

"I tested the new GWT Google Maps Api (RC1) and I ran into a problem, I
can't solve. I display a Map (MapWidget) and I add a LeftClickListener
and a RightClickListener on this Widget.
The LeftClickListener works fine, the RightClickListener throws a
"invalid 'instanceof' operand $wnd.GGeoXmlOverlay" Message in Firebug.
The RightClick doesn't work in Firefox, IE, Safari or Chrome.

The (generated) JavaScript-Code that doesn't seem to work is this:
function sj (a) {
 if(a instanceof $wnd.GMarker)
 {return gj(new fj(),a)}
 else if(a instanceof $wnd.GPolyline)
 {return ak(new Fj(),a)}
 else if(a instanceof $wnd.GPolygon)
 {return Cj(new Bj(),a)}
 else if(a instanceof $wnd.GGroundOverlay)
 {return cj(new bj(),a)}
 else if(a instanceof $wnd.GGeoXmlOverlay)
 {return Fi(new Ei(),a)}
 else if(a instanceof $wnd.GTileLayerOverlay)
 {return ek(new dk(),a)}
 else if(a instanceof $wnd.GTrafficOverlay)
 {return ik(new hk(),a)}
 else if(vj(a)){throw new hp()}return lj(new kj(),a)}
19

The Problem is, there is no GGeoXmlOverlay-Object in my Dom-Tree,
neither in the Api description at
http://code.google.com/apis/maps/documentation/reference.html
But there is a GGeoXml Object."

Workaround if you have one:
None

Links to the relevant GWT Forum posts:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/fe208ed41
d2a4da6

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 26 Sep 2008 at 11:35

GoogleCodeExporter commented 9 years ago

This preliminary patch was made against r855 in the subversion release branch
http://gwt-google-apis.googlecode.com/svn/releases/maps/1.0

I need to add more unit tests for the other overlay types before putting it out 
for
review.

Original comment by galgwt.reviews@gmail.com on 26 Sep 2008 at 11:41

Attachments:

GoogleCodeExporter commented 9 years ago
Unit tests added, out for review.

Original comment by galgwt.reviews@gmail.com on 6 Oct 2008 at 2:25

GoogleCodeExporter commented 9 years ago
Committed as r866.

Original comment by galgwt.reviews@gmail.com on 8 Oct 2008 at 2:01

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 11 Dec 2008 at 3:08

GoogleCodeExporter commented 9 years ago
Updating account names

Original comment by zundel@google.com on 21 Dec 2009 at 1:59