Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.noledgy:GWT-Maps-V3-Api:v3.8.1'
}
dependencies {
implementation("com.github.noledgy:GWT-Maps-V3-Api:v3.8.1")
}
<dependency>
<groupId>com.github.noledgy</groupId>
<artifactId>GWT-Maps-V3-Api</artifactId>
<version>v3.8.1</version>
</dependency>
libraryDependencies += "com.github.noledgy" % "GWT-Maps-V3-Api" % "v3.8.1"
:dependencies [[com.github.noledgy/GWT-Maps-V3-Api "v3.8.1"]]
#GWT-Maps-V3-Api
This library provides Java language bindings for the Google maps Javascript api.
##Demo ###Live Showcase
##Community ###GWT Maps V3 API G+ Community
##Implementers
##Maven Versions Available
##Current Maven Release 1. Add Maven dependencies
```xml
<!-- 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);
}
##Current Maven Snapshots 1. Add Maven dependencies ```xml <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' />
##Utility Library
Marker Cluster Plus
<dependency>
<groupId>com.github.branflake2267</groupId>
<artifactId>gwt-maps-utility-markerclustererplus</artifactId>
<version>2.0.9-build-1</version>
</dependency>
##Previous Versions See the downloads page ##Maven-Free Jar Use 1. Download the jar 2. Add jar to your /WEB-INF/lib 3. Right click on the jar and goto Build path > add to build path
##Eclipse Setup Using Source 1. Clone the source with EGit 2. Add the project to your build path 3. Link the maps source "src" folder as src_maps in your build path 4. Inherit the module
```xml
<inherits name='com.google.gwt.maps.Maps'/>
```
##Documentation
##Contribute
##New Features
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