Eric I see what you mean by version 2.118, the release notes for gwt- maps-1.0.0 say 2.113.
Quite confusing, I use the following jar: gwt-maps.jar embedded in the gwt-maps-1.0.0.tar.gz dated Sept 22, 2008 which is found here: http://code.google.com/p/gwt-google-apis/downloads/list?can=1&q= . I'm not sure how to determine the API version in in the jar file, but surely the jar will include the correct API version? To clarify, I was essentially following the following 'Getting Started with Google Maps': http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=MapsGettingStarted. No mention of a necessary API version. As you can from the code sample I can't get beyond the second line (MapWidget). The only 'include' is in the xxx.gwt.xml: <inherits name="com.google.gwt.maps.GoogleMaps" />. Many regards Chris On Oct 2, 10:34 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > Hi Chris, > > There is a minimum rev of the Maps API required. What does your line to > include the Maps API look like? > > I think I recently determined the minimum required version is 2.118 (it > should be in the release notes) > > -Eric. > > > > On Thu, Oct 2, 2008 at 1:26 PM, RubberBaron <[EMAIL PROTECTED]> wrote: > > > I am using gwt-linux-1.5.2 and gwt-maps-1.0.0 with some very simple > > Java code: > > > import com.google.gwt.core.client.EntryPoint; > > import com.google.gwt.user.client.ui.RootPanel; > > > import com.google.gwt.maps.client.MapWidget; > > import com.google.gwt.maps.client.geom.LatLng; > > > public class MainEntryPoint implements EntryPoint > > { > > private MapWidget map; > > public MainEntryPoint(){ } > > > public void onModuleLoad() > > { > > map = new MapWidget( LatLng.newInstance(53.188245,-2.558616), > > 12 ); > > RootPanel.get().add( map ); > > } > > } > > > When using GWTCompile, all seems well. When using the shell (with > > exactly the same classpath as compiling), I get: > > > java.lang.AssertionError: Backing JSO missing imported function > > scrollWheelZoomEnabled > > at com.google.gwt.maps.client.impl.__MapImplImpl.bind(transient > > source for com.google.gwt.maps.client.impl.__MapImplImpl:41) > > at com.google.gwt.maps.client.MapWidget.<init>(MapWidget.java:249) > > at com.google.gwt.maps.client.MapWidget.<init>(MapWidget.java:222) > > at > > com.chrispowell.client.MainEntryPoint.onModuleLoad(MainEntryPoint.java: > > 34) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > > 39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > > 25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) > > at > > > com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java: > > 329) > > at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access > > $100(BrowserWidgetMoz.java:35) > > at com.google.gwt.dev.shell.moz.BrowserWidgetMoz > > $ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:59) > > at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native > > Method) > > at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java: > > 1428) > > at > > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840) > > at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) > > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) > > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > > > I have tried changing the order of the jars but, as I expected, this > > makes little difference. I ha ve checked the source code in > > com.google.gwt.maps.client.MapWidget.java finding: > > > public boolean isScrollWheelZoomEnabled() { > > return MapImpl.impl.scrollWheelZoomEnabled(jsoPeer); > > } > > > It gets a little confusing at this point. MapImpl is an interface > > with: > > > MapImpl impl = GWT.create(MapImpl.class); > > . > > . > > com.google.gwt.maps.client.impl.MapImpl.java and find: > > boolean scrollWheelZoomEnabled(JavaScriptObject jsoPeer); > > > Anyway, why is the GWTCompiler happy but GWTShell complaining and how > > do I go about fixing this? > > > Many thanks > > -- > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
