kabit999 / gwt-google-apis

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

Marker.setVisible throws error #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: 44?
OS: Windows

Detailed description: Using the marker setVisible function in the Maps API
lib causes a Java exception.

TO demonstrate, modify OverlayDemo.java in HelloMaps to include these 3
lines in the marker creation loop:
      Marker marker = new Marker(point);
      map.addOverlay(marker);
      marker.setVisible(false);

Run it and pick "Overlays" from drop-down. You should see this error:

Workaround if you have one:
[ERROR] Unable to load module entry point class
com.google.gwt.maps.sample.maps.client.HelloMaps (see associated exception
for details)
com.google.gwt.core.client.JavaScriptException: JavaScript TypeError
exception: Object doesn't support this property or method
    at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:481)
    at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:270)
    at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:137
)
    at com.google.gwt.maps.client.impl.__MarkerImplImpl.setVisible(transient
source for com.google.gwt.maps.client.impl.__MarkerImplImpl:9)
    at com.google.gwt.maps.client.overlay.Marker.setVisible(Marker.java:219)
    at
com.google.gwt.maps.sample.maps.client.OverlayDemo.onShow(OverlayDemo.java:77)
    at com.google.gwt.maps.sample.maps.client.HelloMaps.show(HelloMaps.java:89)
    at
com.google.gwt.maps.sample.maps.client.HelloMaps.onHistoryChanged(HelloMaps.java
:28)
    at
com.google.gwt.maps.sample.maps.client.HelloMaps.onModuleLoad(HelloMaps.java:48)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:342)

Original issue reported on code.google.com by pamela.fox on 5 Oct 2007 at 11:29

GoogleCodeExporter commented 9 years ago
The JSFlyweightWrapper object for GMarker was not defined correctly; it assumed 
that
GMarker implemented a method setVisible(boolean).

The fix was included in r46.

Original comment by gwt.team...@gmail.com on 9 Oct 2007 at 3:26

GoogleCodeExporter commented 9 years ago

Original comment by gwt.team...@gmail.com on 21 Dec 2007 at 4:37

GoogleCodeExporter commented 9 years ago

Original comment by mmendez+personal@google.com on 7 Mar 2008 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 2 Jun 2008 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 9 Jun 2008 at 11:31

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 13 Oct 2008 at 8:54

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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