Google Maps with GWT

302 views
Skip to first unread message

Deepak Singh

unread,
Nov 26, 2012, 3:07:44 PM11/26/12
to google-we...@googlegroups.com
Hi All,

I am using gwt-maps.jar for integrating maps with our application.

I am following the link


GWT 2.5 version

Code:

Maps.loadMapsApi("", "2", false, new Runnable() {
@Override
public void run() {
System.out
.println("YatrafinderDevEnv.onModuleLoad().new Runnable() {...}.run()");
LatLng cawkerCity = LatLng.newInstance(39.509, -98.434);
MapOptions mo = MapOptions.newInstance();
final MapWidget map = new MapWidget(cawkerCity, 2, mo);
    map.setSize("100%", "100%");
   // Add some controls for the zoom level
   map.addControl(new LargeMapControl());

   // Add a marker
   map.addOverlay(new Marker(cawkerCity));

   // Add an info window to highlight a point of interest
   map.getInfoWindow().open(map.getCenter(),
       new InfoWindowContent("World's Largest Ball of Sisal Twine"));
   
   RootPanel.get("paymentInfoDiv").add(map);
}
});

I am getting exception while invoking MapWidget.
ExceptionInitializer exception.

I believe this library does not work with GWT 2.5

Pls guide me here.


--
Deepak Singh

Deepak Singh

unread,
Nov 26, 2012, 5:02:18 PM11/26/12
to google-we...@googlegroups.com
Help needed...
--
Deepak Singh

Sebastián Gurin

unread,
Nov 27, 2012, 11:09:23 AM11/27/12
to google-we...@googlegroups.com
I'm having success with this GWT librari (maps version 3) : https://github.com/branflake2267/GWT-Maps-V3-Api
Reply all
Reply to author
Forward
0 new messages