This library provides Java language bindings for the Google maps Javascript api.
Add Maven dependencies
<!-- GWT Maps API V3 -->
<dependency>
<groupId>com.github.branflake2267</groupId>
<artifactId>gwt-maps-api</artifactId>
<version>3.10.0-alpha-7</version>
</dependency>
Add the inherits statement to your module.gwt.xml.
<inherits name='com.google.gwt.maps.Maps' />
Load and use the API.
Example of loading the api. Find the showcase example here.
private void loadMapApi() {
boolean sensor = true;
// load all the libs for use in the maps
ArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();
loadLibraries.add(LoadLibrary.ADSENSE);
loadLibraries.add(LoadLibrary.DRAWING);
loadLibraries.add(LoadLibrary.GEOMETRY);
loadLibraries.add(LoadLibrary.PANORAMIO);
loadLibraries.add(LoadLibrary.PLACES);
loadLibraries.add(LoadLibrary.WEATHER);
loadLibraries.add(LoadLibrary.VISUALIZATION);
Runnable onLoad = new Runnable() {
@Override
public void run() {
draw();
}
};
LoadApi.go(onLoad, loadLibraries, sensor);
}
Add Maven dependencies
<repositories>
<repository>
<id>sonatype.snapshots</id>
<name>Sonatype snapshot repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<!-- GWT Maps API V3 -->
<dependency>
<groupId>com.github.branflake2267</groupId>
<artifactId>gwt-maps-api</artifactId>
<version>3.10.0-alpha-8-SNAPSHOT</version>
</dependency>
Add the inherits statement to your module.gwt.xml.
<inherits name='com.google.gwt.maps.Maps' />
Marker Cluster Plus
<dependency>
<groupId>com.github.branflake2267</groupId>
<artifactId>gwt-maps-utility-markerclustererplus</artifactId>
<version>2.0.9-build-1</version>
</dependency>
See the downloads page
Inherit the module
<inherits name='com.google.gwt.maps.Maps'/>
3.10.0-alpha-3
3/18/2013. Added utility lib and more 3.10 features. 3.10.0-alpha-2
2/10/2013, includes transit api and overlay fix.3.9.0-build-17-SNAPSHOT
1/19/20133.9.0-build-16
1/13/2013