You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/bug_report.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ body:
15
15
attributes:
16
16
label: "Checklist"
17
17
options:
18
-
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/template-placeholder/releases/latest)"
18
+
- label: "I am able to reproduce the bug with the [latest version](https://github.com/xdev-software/vaadin-maps-leaflet-flow/releases/latest)"
19
19
required: true
20
-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
20
+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/vaadin-maps-leaflet-flow/issues) or [closed](https://github.com/xdev-software/vaadin-maps-leaflet-flow/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
21
21
required: true
22
22
- label: "I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise."
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/enhancement.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ body:
13
13
attributes:
14
14
label: "Checklist"
15
15
options:
16
-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16
+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/vaadin-maps-leaflet-flow/issues) or [closed](https://github.com/xdev-software/vaadin-maps-leaflet-flow/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
17
17
required: true
18
18
- label: "I have taken the time to fill in all the required details. I understand that the feature request will be dismissed otherwise."
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/question.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ body:
12
12
attributes:
13
13
label: "Checklist"
14
14
options:
15
-
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/template-placeholder/issues) or [closed](https://github.com/xdev-software/template-placeholder/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
15
+
- label: "I made sure that there are *no existing issues* - [open](https://github.com/xdev-software/vaadin-maps-leaflet-flow/issues) or [closed](https://github.com/xdev-software/vaadin-maps-leaflet-flow/issues?q=is%3Aissue+is%3Aclosed) - which I could contribute my information to."
16
16
required: true
17
17
- label: "I have taken the time to fill in all the required details. I understand that the question will be dismissed otherwise."
* Changed all occurrences of ``Integer`` and ``Double`` to ``Number`` for improved compatibility with Leaflet's API
3
+
* Updated OpenStreetMap's Tile-Server address to ``tile.openstreetmap.org``[openstreetmap/operations#737](https://github.com/openstreetmap/operations/issues/737)
4
+
5
+
## 4.5.0
6
+
* Added support for [WMS](https://leafletjs.com/reference.html#tilelayer-wms)#486
7
+
* Updated dependencies
8
+
9
+
## 4.4.0
10
+
* Added support for [GeoJSON](https://leafletjs.com/reference.html#geojson) and [FeatureGroup](https://leafletjs.com/reference.html#featuregroup)#438
11
+
* Add "draggable" property to LMarkerOptions #413 (thanks to @ChristianHoesel)
12
+
13
+
## 4.3.0
14
+
* Updated to Vaadin 24.4
15
+
* Deduplicated ``tLMapZoomPanOptions``
16
+
17
+
## 4.2.1
18
+
* Handle ``LEvented#off`` in the same way as ``LEvented#on``
19
+
* Fix incorrect formatting leading to JS error
20
+
* Updated dependencies
21
+
22
+
## 4.2.0
23
+
* Fixed some invalid built JavaScript commands #330
24
+
* Add basic support for CRS #333
25
+
* Added a few new showcase demos
26
+
* Updated dependencies
27
+
28
+
## 4.1.1
29
+
* ⚠️ GroupId changed from ``com.xdev-software`` to ``software.xdev``
30
+
* Updated dependencies
31
+
32
+
## 4.1.0
33
+
* Provide a workaround that fixes a problem where certain methods didn't work instantly after the map was created #305
34
+
* Moved some container specific methods to ``MapContainer``
35
+
36
+
## 4.0.1
37
+
* Added shortcut method ``invokeSelfReturn``#282
38
+
* Updated dependencies
39
+
40
+
## 4.0.0
41
+
⚠️<i>This release contains breaking changes</i>
42
+
43
+
* The complete API got reworked and now has the [same structure as Leaflet](https://leafletjs.com/reference.html).
44
+
* Added lots of new Leaflet APIs - currently around 90% of the Leaflet API are implemented. These include the most useful bits:
45
+
* GeoLocation
46
+
* A lot of new methods for Map
47
+
* Tooltips & Popups
48
+
* Image, Video and SVG-Overlays
49
+
* Rectangles
50
+
* Controls for Scale, Layers, ...
51
+
* and much more
52
+
* Abstracted the elements similar to how this is done inside Leaflet itself so that they can easily be extended
53
+
* The API only supports sending instructions to the client. Retrieving client side data is not supported as data integrity can't be guaranteed (client-side data can be modified by users).
54
+
* Event listeners can still be registered but this needs to be done manually. A example is available in the demo.
55
+
* All Leaflet elements are now tracked on the client and on the server and can therefore be modified/reused (using ``LComponentManagementRegistry``).
56
+
* Before it was only possible to create an element and then send it to the client
57
+
* However keep in mind when creating a lot of elements that you may have to free up memory on the client (manually)
58
+
* Integrated default Leaflet resources
59
+
60
+
## 3.0.2
61
+
* Added support for Polyline #266 (thanks to @blitzdose)
62
+
63
+
## 3.0.1
64
+
* Fixed ``divIcon`` being displayed incorrectly [due to a default ``iconSize`` of ``12px``](https://github.com/Leaflet/Leaflet/issues/4238)#246
65
+
* Updated dependencies
66
+
* Updated leaflet to [``1.9.4``](https://github.com/Leaflet/Leaflet/blob/b6b56f6e707142c177fad2f67827a5007e56736a/CHANGELOG.md#194-2023-05-18)#247
67
+
68
+
## 3.0.0
69
+
⚠️<i>This release contains breaking changes</i>
70
+
71
+
* Adds support for Vaadin 24+, drops support for Vaadin 23<br/>
72
+
<i>If you are still using Vaadin 23, use the ``2.x`` versions.</i>
73
+
* Requires Java 17+
74
+
75
+
## 2.0.4
76
+
* Added method ``centerAndZoom`` in ``LMap``
77
+
* Fixed a problem where an invalid ``iconSize`` was transferred to leaflet which caused a client side exception (#199)
78
+
* Updated various dependencies
79
+
80
+
## 2.0.3
81
+
* Updated dependencies
82
+
* Fixed problem with setting lon/lan in LMarker
83
+
* Added constructors for LMap
84
+
85
+
## 2.0.2
86
+
* Updated dependencies
87
+
88
+
## 2.0.1
89
+
* Updated dependencies
90
+
* Vaadin 23.2
91
+
92
+
## 2.0.0
93
+
⚠️<i>This release contains breaking changes</i>
94
+
95
+
* Update to Vaadin 23
96
+
* Removed deprecated polymer-connector - replaced by ``executeJs``
97
+
* Fixed a problem where the map was not rendered/aligned correctly
98
+
* Don't load anything from remote servers that are not under control of the user
99
+
* Shrunk the jar
100
+
* Removed default leafletmap tile layer; has to be set manually due to usage policy
* Consider doing a [test-deployment](https://github.com/xdev-software/template-placeholder/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
53
+
* Consider doing a [test-deployment](https://github.com/xdev-software/vaadin-maps-leaflet-flow/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
54
54
* Check the [changelog](CHANGELOG.md)
55
55
56
56
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes
[](https://vaadin.com/directory/component/template-placeholder)
[](https://vaadin.com/directory/component/leafletmap-for-vaadin)
A Vaadin Flow Java API for [Leaflet](https://leafletjs.com/)
9
9
10
10

11
11
12
+
## Usage
13
+
14
+
This API wraps the Leaflet API in a Vaadin friendly way.<br/>It uses a similar structure (classes, methods) as the [Leaflet JavaScript API](https://leafletjs.com/reference.html).
15
+
16
+
To get started it's recommended to have a look at the [demo](./vaadin-maps-leaflet-flow-demo), notably the [minimalistic example](./vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/MinimalisticDemo.java).
17
+
18
+
> [!NOTE]
19
+
> **The API only supports sending instructions to the client**<br/>
20
+
> Due to data integrity retrieving client-side data (that can be modified by users) is not supported.
21
+
>
22
+
> Event listeners can still be registered but this needs to be done manually. An example is available [in the demo](./vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/EventDemo.java).
23
+
>
24
+
> <details><summary>The following code snippet is a simplification of an even more <ahref="./vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/ComplexDemo.java#L251">complex example</a> which sends (unvalidated!) client side data back to the server (click to expand)</summary>
>LOG.info("Map clicked - lat: {}, lng: {}", lat, lng);
33
+
> }
34
+
> ```
35
+
></details>
12
36
13
37
## Installation
14
-
[Installation guide for the latest release](https://github.com/xdev-software/template-placeholder/releases/latest#Installation)
38
+
[Installation guide of the latest release](https://github.com/xdev-software/vaadin-maps-leaflet-flow/releases/latest#Installation)
39
+
40
+
#### Static resources
41
+
Please note that Leaflet uses a few default icons for various components (e.g. Markers).<br/>
42
+
These are also shipped with the library and can be found inside [``META-INF/resources``](./vaadin-maps-leaflet-flow/src/main/resources/META-INF/resources/).<br/>
43
+
You might have to fine tune your security configuration to allow these.
44
+
45
+
#### Compatibility with Vaadin
46
+
|Vaadin version | vaadin-maps-leaflet-flow version |
47
+
|---|---|
48
+
|Vaadin24+ (latest) | ``3+`` |
15
49
16
50
### Spring-Boot
17
51
*You may have to include ``software/xdev`` inside [``vaadin.allowed-packages``](https://vaadin.com/docs/latest/integrations/spring/configuration#configure-the-scanning-of-packages)
18
52
19
53
## Run the Demo
20
54
*Checkout the repo
21
-
* Run ``mvn install && mvn -f template-placeholder-demo spring-boot:run``
@@ -34,4 +68,4 @@ If you need support as soon as possible and you can't wait for any pull request,
34
68
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
35
69
36
70
## Dependencies and Licenses
37
-
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/template-placeholder/dependencies)
71
+
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/vaadin-maps-leaflet-flow/dependencies)
0 commit comments