Skip to content

tiborsomodi/gwt-leaflet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gwt-leaflet

Build Status

A lightweight mapping alternative to popular mapping APIs like Google Maps and OpenLayers.

The library uses Leaflet, an open-source javascript library for mobile-friendly interactive maps by CloudMade, to implement a collection of mapping Widgets which GWT projects can use to implement mapping capabilites on the client-side of a GWT application. The Leaflet API is a third-party javascript and is integrated with GWT as Java classes using JSNI and Type Overlays.

Features

Warning: This project is in flux. API, module structure and names can change at any time!

###Milestones###

  • v0.1 (Medio Sep 2012) - Core parts of Leaflet API exposed
  • v0.2 (Primo Nov 2012) - All relevant parts of Leaflet API exposed, start publishing snapshots (maven + jars)
  • v0.3 (Ultimo Dec 2012) - Widgets: geolocation (field), first official release (maven + jars).

###Core Module###

Dependency: Leaflet 0.4.5

Following parts of Leaflet API are implemented:

###Widget Module (GWT)###

  • MapWidget - GWT Widget displaying a Map instance (available from WindowBuilder Editor palette)

###Proj4 Module (GWT)###

Dependency: Proj4Leaflet master/74a5a8b170ff58e635cba139cfaa25cd4cd5d022 (git)

  • Proj4 - Custom (local) CRS factory plugin to Leaflet (Proj4Leaflet)

###Search Module (GWT)###

Dependency: leaflet-search master/3b717c6ff2bbd5ad19ba4f851c152f67ca62b97d (git)

###Label Module (GWT)###

Dependency: Leaflet.label master/3c13acff459c36a222e9fdefd718af95396a0a9f (git)

  • Leaflet label - Simple label plugin for Leaflet (Leaflet.label)

Example

Goto gwtl-example.appspot.com to see a running example of the GWT example project.

Development

This Git project structured as a Maven multi-gwt-module project setup, (see working with maven) and is developed using

Ensure that these are all installed and ready before you continue. To install from scratch, just

  1. Download and install Eclipse
  2. Download P2 software file import file and start Eclipse
  3. Open File -> Import -> "Install Software Items from File" wizard
  4. Enter path to p2f file downloaded in step 2
  5. Check "Contact all update sites during install to find required software"
  6. Press enter and follow the instructions.

When you are all done, just (linux)

  1. fork this repo on github
  2. clone the fork locally - git clone https://github.com/<username>/gwt-leaflet.git
  3. change directory to - cd gwt-leaflet/src
  4. and run the command - mvn package

which should automatically download some stuff for you and prepare the projects for import into Eclipse.

  1. Switch to Eclipse and select File -> Import...
  2. Select Maven -> Existing Maven Projects
  3. Select Browse ... -> gwt-leaflet/src
  4. Finish

which should import all projects into current workspace.

Reference

You find more information in the developer guide.

About

GWT library for Leaflet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.6%
  • Java 19.1%
  • CSS 2.9%
  • Other 0.4%