Skip to content

Commit

Permalink
README update + small module descriptor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
zak905 committed Jul 20, 2016
1 parent c898d6b commit 6780cba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
25 changes: 9 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,8 @@ gwty-leaflet is wrapper for the famous maps javascript library [Leaflet](http://
<artifactId>gwty-leaflet</artifactId>
<version>0.2</version>
</dependency>

```

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
<dependency>
<groupId>com.gwidgets</groupId>
<artifactId>gwty-leaflet</artifactId>
<version>0.2</version>
<exclusions>
<exclusion>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
</exclusion>
</dependency>
```

Also, do not forget to include gwty-leaflet in your .gwt.xml module definition file:

Expand All @@ -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
<link rel="stylesheet" href="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.css" />
<script src="https://npmcdn.com/leaflet@1.0.0-rc.2/dist/leaflet.js"></script>
```


##Initializing objects

Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/gwidgets/api/GwtyLeaflet.gwt.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='GwtyLeaflet'>
<inherits name='com.google.gwt.user.User' />
<entry-point class='com.gwidgets.api.client.GwtyLeaflet' />

<source path='client' />
<source path='leaflet' />

</module>

0 comments on commit 6780cba

Please sign in to comment.