Closed GoogleCodeExporter closed 9 years ago
Here is another possibility, although I'm not sure how well this could be
extended as a general solution. If
LatLng was an overlay type (extends JavaScriptObject) and we allowed our
MapWidget to expose its GMap2
instance, then we could expose a <T extends JavaScriptObject> void
setCenterPoint(T center) overload and not
have Map types in the mix explicitly.
Original comment by mmendez+personal@google.com
on 25 Aug 2008 at 1:51
Added a method that takes a JavaScriptObject. Now the Maps LatLng type is a JSO
subclass, so you can pass a LatLng created in the Maps API directly to this
method.
/**
* This method establishes a center point that is used to scope search
* results. You can pass a GLatLng or GMap2 object created by the Google Maps API.
* If you are using the gwt-maps project, pass an instance of the LatLng class.
*
* @param point Supply either a GLatLng object or a GMap2 object from the
* Google Maps API.
*/
public void setCenterPoint(JavaScriptObject point);
Original comment by galgwt.reviews@gmail.com
on 7 Oct 2008 at 7:35
Original comment by galgwt.reviews@gmail.com
on 6 Nov 2008 at 6:36
Original comment by zundel@google.com
on 21 Dec 2009 at 1:57
Original issue reported on code.google.com by
galgwt.reviews@gmail.com
on 23 Aug 2008 at 10:46