From 6780cba975e553bf3298576c4c5e028b51a9b3b1 Mon Sep 17 00:00:00 2001 From: zak905 Date: Wed, 20 Jul 2016 14:54:52 +0200 Subject: [PATCH] README update + small module descriptor correction --- README.md | 25 +++++++------------ .../java/com/gwidgets/api/GwtyLeaflet.gwt.xml | 2 -- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 8a58592..3d4a98e 100644 --- a/README.md +++ b/README.md @@ -11,24 +11,8 @@ gwty-leaflet is wrapper for the famous maps javascript library [Leaflet](http:// gwty-leaflet 0.2 - ``` -the gwty-leaflet dependency depends on gwt-user, version 2.8-beta. So, in case you want to add gwt-user to your project, you can exclude it from the dependency: - - -```xml - - com.gwidgets - gwty-leaflet - 0.2 - - - com.google.gwt - gwt-user - - -``` Also, do not forget to include gwty-leaflet in your .gwt.xml module definition file: @@ -37,6 +21,15 @@ Also, do not forget to include gwty-leaflet in your .gwt.xml module definition f ``` +##Leaflet javascript files: + +As in any JsInterop wrapper, you need to refer to Js leaflet from your .html app file. You can either download the Js files from [Leaflet website](http://leafletjs.com/download.html), or refer to them directly using their cdn (there are performance implications off course!). + +```html + + +``` + ##Initializing objects diff --git a/src/main/java/com/gwidgets/api/GwtyLeaflet.gwt.xml b/src/main/java/com/gwidgets/api/GwtyLeaflet.gwt.xml index a75c4ad..64a3244 100644 --- a/src/main/java/com/gwidgets/api/GwtyLeaflet.gwt.xml +++ b/src/main/java/com/gwidgets/api/GwtyLeaflet.gwt.xml @@ -1,9 +1,7 @@ - -