TDesjardins / gwt-ol

GWT wrapper for OpenLayers 3+ using JSInterop
Apache License 2.0
70 stars 33 forks source link
gis gwt gwt-ol gwt-ol3 java jsinterop mapping maps ogc ol ol3 ol6 openlayers web wrapper

GWT-OpenLayers 3+

Build Status Maven Central Join the chat at https://gitter.im/gwt-ol3/Lobby

With gwt-ol you can write fast mapping applications for web and mobile in pure Java. Technically speaking, it is a GWT wrapper for OpenLayers 3+ using the JSInterop-Features of the GWT-SDK. The project consists of two parts:

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:

Demo App

GWT-OL live example

Project Setup

Maven dependency

<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.

GWT module

  <inherits name='ol.GwtOL'/>

optional: add this line for proj4js support

  <inherits name="proj4.GwtProj4"/>

Resources

  <link href="https://github.com/TDesjardins/gwt-ol/blob/main//cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v[x.x.x]/css/ol.css" rel="stylesheet" type="text/css">
  <script src="https://github.com/TDesjardins/gwt-ol/raw/main//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.

Download

Releases are deployed to the Central Repository.

Snapshots of the development version are available in Sonatype's snapshots repository.

Projects using gwt-ol

Running Reality
Mapping of Covid19 spread in Italy