yugalatea / gwt-google-apis

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

Java map API, PolylineOptions 1 arg constructor leads to 'geodesic' is undefined #291

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: gwt-maps-1.0.4

Detailed description:
<code>
PolylineOptions pOpt = PolylineOptions.newInstance(false); // not clickable
</code>

Leads to the error
<code>
com.google.gwt.core.client.JavaScriptException: (TypeError): 'geodesic' is
undefined
 number: -2146823279
 description: 'geodesic' is undefined
</code>

Running in the GWT shell on eclipse. I haven't tried the real browser.

I've tried tracing it down, but couldn't find the actual culprit in
GWT. Any ideas?

Everything seems good down to:
<code>
ModuleSpaceIE6.invokeNative("@com.google.gwt.maps.client.overlay.PolylineOptions
::newInstance(Z)",null,[boolean],
[false])
</code>
result in this method looks right, btw.

Workaround if you have one: Use 2 arg constructor

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by dhmitche...@gmail.com on 12 Jul 2009 at 4:42

GoogleCodeExporter commented 9 years ago
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/bf5b4b163
3691f79/924126a7d2aa21c0

Patch committed as r1530

Workaround is to use:

PolylineOptions.newInstance(false, false);

Original comment by galgwt.reviews@gmail.com on 17 Jul 2009 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 17 Jul 2009 at 6:30

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

Original comment by piotr.sw...@gmail.com on 28 May 2010 at 5:13