yugalatea / gwt-google-apis

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

geocoder setViewport results in error #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:

gwt-maps version 1.0.3 gwt version 1.5.3

Detailed description:
call com.google.gwt.maps.client.geocode.Geocoder
.setViewPort(LatLngBounds bounds);
results in this exception at runtime
[ERROR] Unable to load module entry point class com.xxx.MyClass (see
associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Value
undefined (result of expression jsoPeer.setViewport) is not object.
 line: 42
 sourceId: 350
 sourceURL: transient source for
com.google.gwt.maps.client.impl.__GeocoderImplImpl
    at com.google.gwt.maps.client.impl.__GeocoderImplImpl.setViewport(Native
Method)
    at com.google.gwt.maps.client.geocode.Geocoder.setViewport(Geocoder.java:197)
    at com.xxx.MyClass.myMethod(MyClass.java:172)

Workaround if you have one:
Don't use it :)

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by karajdaar@gmail.com on 17 Feb 2009 at 6:56

GoogleCodeExporter commented 9 years ago
Can you tell us which version of the Maps API you are loading?  The docs say 
that
this was introduced in 2.82.

Can you post a snipped of your code that is failing?

Original comment by galgwt.reviews@gmail.com on 17 Feb 2009 at 7:09

GoogleCodeExporter commented 9 years ago
That explains it. v=2 works but v=2.s fails with the above error

The snippet of code is quite simply

...
public static final LatLng NORTH_EAST = LatLng.newInstance(41.99216, -114.025);

public static final LatLng SOUTH_WEST = LatLng.newInstance(35.642789, 
-125.072479);
....
Geocoder geocoder = new Geocoder();
geocoder.setViewport(LatLngBounds.newInstance(SOUTH_WEST, NORTH_EAST)); // 
fails here

Original comment by karajdaar@gmail.com on 17 Feb 2009 at 9:16

GoogleCodeExporter commented 9 years ago
In that case, I suppose everything is working as expected.

Original comment by galgwt.reviews@gmail.com on 17 Feb 2009 at 10:21

GoogleCodeExporter commented 9 years ago
Updating account names

Original comment by zundel@google.com on 21 Dec 2009 at 2:00