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 USA
http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to