Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit 77c5d7b

Browse files
committed
readme update
1 parent dad9c5e commit 77c5d7b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
gwty-leaflet is wrapper for the famous maps javascript library [Leaflet](http://leafletjs.com/). gwty-leaflet is based on JsInterop and allows using Leaflet from your GWT application exactly the same way as from a javascript script with a slight advantage: static typing. It was partially generated automatically from Leaflet docs.
44

55

6-
##Dependency
6+
## Dependency
77

88

99
```xml
@@ -37,13 +37,13 @@ Also, do not forget to include gwty-leaflet in your .gwt.xml module definition f
3737
<inherits name='com.gwidgets.api.GwtyLeaflet' />
3838

3939
```
40-
##Versions
40+
## Versions
4141

42-
- 0.5-rc1: latest version, compatible with leaflet 1.0 and 1.0.1
42+
- 0.5: latest version, compatible with leaflet 1.0 and 1.0.1
4343
- 0.4: compatible with leaflet 0.7
4444

4545

46-
##Leaflet javascript files:
46+
## Leaflet javascript files:
4747

4848
As in any JsInterop wrapper, you need to refer to the Javascript files 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!).
4949

@@ -58,7 +58,7 @@ Starting from the version 0.5, a new feature has been added to allow adding leaf
5858
LeafletResources.whenReady(
5959
e ->
6060
{
61-
MapOptions options = new MapOptions.Builder(L.latLng(52.51, 13.40), 12, 12).dragging(false).build();
61+
MapOptions options = new MapOptions.Builder(L.latLng(52.51, 13.40), 12.0, 12.0).dragging(false).build();
6262
final Map map = L.map("map", options);
6363
GWT.log(options.getZoom()+"");
6464
L.tileLayer(MAP_URL, null).addTo(map);
@@ -68,7 +68,7 @@ LeafletResources.whenReady(
6868

6969
This will automatically inject the leaflet .js and .css, and execute the code inside when they are loaded.
7070

71-
##Initializing objects
71+
## Initializing objects
7272

7373
All objects initializations are done through the L class. gwty-leaflet provides all factory methods of Leaflet. For example:
7474

@@ -117,7 +117,7 @@ For more informations about the available options for each objects, and their ut
117117
To create a map in a div with an id="map", we can do something like:
118118
```java
119119

120-
L.map("map", new MapOptions.Builder().build()).setView(L.latLng(51.505, -0.09), 12, new ZoomPanOptions.Builder().build());
120+
L.map("map", new MapOptions.Builder().build()).setView(L.latLng(51.505, -0.09), 12.0, new ZoomPanOptions.Builder().build());
121121

122122
```
123123

@@ -382,8 +382,8 @@ baselayerchange, overlayadd, overlayremove, layeradd, layerremove, zoomlevelscha
382382

383383
## Javadoc :
384384

385-
version 0.5-rc1: https://gwidgets.github.io/gwty-leaflet/javadoc/0.5/doc/
386-
version 0.4: https://gwidgets.github.io/gwty-leaflet/javadoc/0.5/doc/
385+
- version 0.5: https://gwidgets.github.io/gwty-leaflet/javadoc/0.5/doc/
386+
- version 0.4: https://gwidgets.github.io/gwty-leaflet/javadoc/0.5/doc/
387387

388388
## GWT version:
389389

0 commit comments

Comments
 (0)