-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into update-from-template-merged
- Loading branch information
Showing
114 changed files
with
8,722 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: Leaflet | ||
open_collective: leafletjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: No Response | ||
|
||
on: | ||
workflow_dispatch: | ||
issue_comment: | ||
types: [created] | ||
schedule: | ||
- cron: '5 5 * * *' | ||
|
||
jobs: | ||
noResponse: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
days-before-issue-stale: 7 | ||
days-before-issue-close: 3 | ||
stale-issue-label: "stale" | ||
only-labels: "waiting-for-response" | ||
labels-to-remove-when-unstale: "waiting-for-response" | ||
stale-issue-message: "This issue will be closed soon because there has been no further activity." | ||
days-before-pr-stale: -1 | ||
days-before-pr-close: -1 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
## 4.3.0 | ||
* Updated to Vaadin 24.4 | ||
* Deduplicated ``tLMapZoomPanOptions`` | ||
|
||
## 4.2.1 | ||
* Handle ``LEvented#off`` in the same way as ``LEvented#on`` | ||
* Fix incorrect formatting leading to JS error | ||
* Updated dependencies | ||
|
||
## 4.2.0 | ||
* Fixed some invalid built JavaScript commands #330 | ||
* Add basic support for CRS #333 | ||
* Added a few new showcase demos | ||
* Updated dependencies | ||
|
||
## 4.1.1 | ||
* ⚠️ GroupId changed from ``com.xdev-software`` to ``software.xdev`` | ||
* Updated dependencies | ||
|
||
## 4.1.0 | ||
* Provide a workaround that fixes a problem where certain methods didn't work instantly after the map was created #305 | ||
* Moved some container specific methods to ``MapContainer`` | ||
|
||
## 4.0.1 | ||
* Added shortcut method ``invokeSelfReturn`` #282 | ||
* Updated dependencies | ||
|
||
## 4.0.0 | ||
⚠️<i>This release contains breaking changes</i> | ||
|
||
* The complete API got reworked and now has the [same structure as Leaflet](https://leafletjs.com/reference.html). | ||
* Added lots of new Leaflet APIs - currently around 90% of the Leaflet API are implemented. These include the most useful bits: | ||
* GeoLocation | ||
* A lot of new methods for Map | ||
* Tooltips & Popups | ||
* Image, Video and SVG-Overlays | ||
* Rectangles | ||
* Controls for Scale, Layers, ... | ||
* and much more | ||
* Abstracted the elements similar to how this is done inside Leaflet itself so that they can easily be extended | ||
* 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). | ||
* Event listeners can still be registered but this needs to be done manually. A example is available in the demo. | ||
* All Leaflet elements are now tracked on the client and on the server and can therefore be modified/reused (using ``LComponentManagementRegistry``). | ||
* Before it was only possible to create an element and then send it to the client | ||
* However keep in mind when creating a lot of elements that you may have to free up memory on the client (manually) | ||
* Integrated default Leaflet resources | ||
|
||
## 3.0.2 | ||
* Added support for Polyline #266 (thanks to @blitzdose) | ||
|
||
## 3.0.1 | ||
* Fixed ``divIcon`` being displayed incorrectly [due to a default ``iconSize`` of ``12px``](https://github.com/Leaflet/Leaflet/issues/4238) #246 | ||
* Updated dependencies | ||
* Updated leaflet to [``1.9.4``](https://github.com/Leaflet/Leaflet/blob/b6b56f6e707142c177fad2f67827a5007e56736a/CHANGELOG.md#194-2023-05-18) #247 | ||
|
||
## 3.0.0 | ||
⚠️<i>This release contains breaking changes</i> | ||
|
||
* Adds support for Vaadin 24+, drops support for Vaadin 23<br/> | ||
<i>If you are still using Vaadin 23, use the ``2.x`` versions.</i> | ||
* Requires Java 17+ | ||
|
||
## 2.0.4 | ||
* Added method ``centerAndZoom`` in ``LMap`` | ||
* Fixed a problem where an invalid ``iconSize`` was transferred to leaflet which caused a client side exception (#199) | ||
* Updated various dependencies | ||
|
||
## 2.0.3 | ||
* Updated dependencies | ||
* Fixed problem with setting lon/lan in LMarker | ||
* Added constructors for LMap | ||
|
||
## 2.0.2 | ||
* Updated dependencies | ||
|
||
## 2.0.1 | ||
* Updated dependencies | ||
* Vaadin 23.2 | ||
|
||
## 2.0.0 | ||
⚠️<i>This release contains breaking changes</i> | ||
|
||
* Update to Vaadin 23 | ||
* Removed deprecated polymer-connector - replaced by ``executeJs`` | ||
* Fixed a problem where the map was not rendered/aligned correctly | ||
* Don't load anything from remote servers that are not under control of the user | ||
* Shrunk the jar | ||
* Removed default leafletmap tile layer; has to be set manually due to usage policy | ||
* Updated dependency versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
107 changes: 107 additions & 0 deletions
107
...maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/DemoView.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
package software.xdev.vaadin.maps.leaflet.flow; | ||
|
||
import java.util.List; | ||
|
||
import com.vaadin.flow.component.AttachEvent; | ||
import com.vaadin.flow.component.Composite; | ||
import com.vaadin.flow.component.grid.Grid; | ||
import com.vaadin.flow.component.grid.GridVariant; | ||
import com.vaadin.flow.component.html.Anchor; | ||
import com.vaadin.flow.component.html.Span; | ||
import com.vaadin.flow.component.orderedlayout.VerticalLayout; | ||
import com.vaadin.flow.data.renderer.ComponentRenderer; | ||
import com.vaadin.flow.router.PageTitle; | ||
import com.vaadin.flow.router.Route; | ||
|
||
import software.xdev.vaadin.maps.leaflet.flow.demo.ComplexDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.EventDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.FreeingUpResourceBenchmarkDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.InitialResizeDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.MinimalisticDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.MultiLayerWithPyramidDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.NotOfThisEarthDemo; | ||
import software.xdev.vaadin.maps.leaflet.flow.demo.WatermarkControlDemo; | ||
|
||
|
||
@PageTitle("Leaflet + Vaadin demos") | ||
@Route("") | ||
public class DemoView extends Composite<VerticalLayout> | ||
{ | ||
private final Grid<Example> grExamples = new Grid<>(); | ||
|
||
public DemoView() | ||
{ | ||
this.grExamples | ||
.addColumn(new ComponentRenderer<>(example -> { | ||
final Anchor anchor = new Anchor(example.route(), example.name()); | ||
|
||
final Span spDesc = new Span(example.desc()); | ||
spDesc.getStyle().set("font-size", "90%"); | ||
spDesc.getStyle().set("white-space", "pre"); | ||
|
||
final VerticalLayout vl = new VerticalLayout(anchor, spDesc); | ||
vl.setSpacing(false); | ||
return vl; | ||
})) | ||
.setHeader("Available demos"); | ||
|
||
this.grExamples.setSizeFull(); | ||
this.grExamples.addThemeVariants(GridVariant.LUMO_COMPACT, GridVariant.LUMO_NO_BORDER); | ||
|
||
this.getContent().add(this.grExamples); | ||
this.getContent().setHeightFull(); | ||
} | ||
|
||
@Override | ||
protected void onAttach(final AttachEvent attachEvent) | ||
{ | ||
this.grExamples.setItems(List.of( | ||
new Example( | ||
MinimalisticDemo.NAV, | ||
"Minimalistic", | ||
"Showcasing the simplest form of using the API" | ||
), | ||
new Example( | ||
InitialResizeDemo.NAV, | ||
"Initial resize", | ||
"Some map methods - when called instantly after the map is created - will not work correctly." | ||
+ " This example shows how to workaround this restriction." | ||
), | ||
new Example( | ||
ComplexDemo.NAV, | ||
"Complex", | ||
"A complex example with various leaflet components and methods" | ||
), | ||
new Example( | ||
EventDemo.NAV, | ||
"Event", | ||
"A showcase how events can work" | ||
), | ||
new Example( | ||
NotOfThisEarthDemo.NAV, | ||
"Not of this earth", | ||
"Displays a map that is not from this earth" | ||
), | ||
new Example( | ||
WatermarkControlDemo.NAV, | ||
"Watermark-Control", | ||
"Creates a custom control interface" | ||
), | ||
new Example( | ||
MultiLayerWithPyramidDemo.NAV, | ||
"Multi-Layer", | ||
"using Pyramids ▲ and more...\n" | ||
+ "Showcases a selection of different layers and how they can be displayed on a map" | ||
), | ||
new Example( | ||
FreeingUpResourceBenchmarkDemo.NAV, | ||
"Freeing up resources Benchmark", | ||
"Benchmark for showcasing how resources a freed up when handling huge amounts of components" | ||
) | ||
)); | ||
} | ||
|
||
record Example(String route, String name, String desc) | ||
{ | ||
} | ||
} |
Oops, something went wrong.