Caused by: java.lang.RuntimeException: Deferred binding failed for 'com.google.gwt.maps.client.impl.MapOptionsImpl' (did you forget to inherit a required module?)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
at com.google.gwt.core.shared.GWT.create(GWT.java:57)
at com.google.gwt.core.client.GWT.create(GWT.java:85)
at com.google.gwt.maps.client.impl.MapOptionsImpl.<clinit>(MapOptionsImpl.java:31)
at com.google.gwt.maps.client.MapOptions.<init>(MapOptions.java:40)
at com.yieldstar.mpfui.client.ui.ViewMapPopUpPanel.buildUi(ViewMapPopUpPanel.java:85)
at com.yieldstar.mpfui.client.ui.ViewMapPopUpPanel.<init>(ViewMapPopUpPanel.java:39)
at com.yieldstar.mpfui.client.ui.EditProperty.viewMapDetail(EditProperty.java:2056)
at com.yieldstar.mpfui.client.ui.EditProperty_BinderImpl$Widgets$10.onClick(EditProperty_BinderImpl.java:150)
at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:56)
at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
I am using gwt-maps3-0.2b.jar in gwt 2.5rc1 project.
I have also added the following line in gwt.xml file:
<inherits name='com.google.gwt.maps.Maps' />
The code snippet that I tried to view a map is as following:
final MapOptions options = new MapOptions();
options.setZoom(8);
options.setCenter(new LatLng(latitude, longitude));
options.setMapTypeId(new MapTypeId().getRoadmap());
options.setDraggable(true);
options.setMapTypeControl(true);
MapWidget mapWidget = new MapWidget(options);
mapWidget.setSize("800px", "600px");
dock.add(mapWidget);
Am I missing something here? I am trying to debug this from morning. Could someone please help me with this?
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aSQfYML6GmAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment