Withgwt-olyou can write fast mapping applications for web and mobile in pure Java. Technically speaking, it is a GWT wrapper forOpenLayers 3+using theJSInterop-Features of theGWT-SDK.The project consists of two parts:
- a GWT wrapper for OpenLayers 3+ (gwt-ol3-client)
- a demo module for showing wrapper functionality (gwt-ol3-demo)
You can build (mvn package
) and run (mvn gwt:devmode
) the application using Maven.
If you want to build the application without Maven please consider the following hints:
- Building the application with older GWT-SDK than 2.8.0-beta1 will not work. You can download the latest SDKhere.
<dependency>
<groupId>com.github.tdesjardins</groupId>
<artifactId>gwt-ol3</artifactId>
<version>[x.x.x]</version>
</dependency>
Replace[x.x.x]
with the gwt-ol version you want to use.
<inheritsname='ol.GwtOL'/>
optional: add this line for proj4js support
<inheritsname="proj4.GwtProj4"/>
<linkhref= "//cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v[x.x.x]/css/ol.css"rel= "stylesheet"type= "text/css">
<scriptsrc= "//cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v[x.x.x]/build/ol.js"type= "text/javascript"></script>
Replace[x.x.x]
with the OpenLayers version you want to use.
Releases are deployed to theCentral Repository.
Snapshots of the development version are available in Sonatype's snapshots repository.