Skip to content

Commit 1380638

Browse files
authored
Merge pull request #269 from xdev-software/develop
Release 3.0.2
2 parents 74ffbb8 + 83dec93 commit 1380638

File tree

13 files changed

+539
-46
lines changed

13 files changed

+539
-46
lines changed

.github/workflows/checkBuild.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
distribution: [temurin]
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929

3030
- name: Set up JDK
3131
uses: actions/setup-java@v3

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
check_code: # Validates the code
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020

2121
- name: Set up JDK
2222
uses: actions/setup-java@v3
@@ -52,7 +52,7 @@ jobs:
5252
outputs:
5353
upload_url: ${{ steps.create_release.outputs.upload_url }}
5454
steps:
55-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
5656

5757
- name: Configure Git
5858
run: |
@@ -111,7 +111,7 @@ jobs:
111111
runs-on: ubuntu-latest
112112
needs: [prepare_release]
113113
steps:
114-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
115115

116116
- name: Init Git and pull
117117
run: |
@@ -143,7 +143,7 @@ jobs:
143143
runs-on: ubuntu-latest
144144
needs: [prepare_release]
145145
steps:
146-
- uses: actions/checkout@v3
146+
- uses: actions/checkout@v4
147147

148148
- name: Init Git and pull
149149
run: |
@@ -197,7 +197,7 @@ jobs:
197197
runs-on: ubuntu-latest
198198
needs: [publish_central]
199199
steps:
200-
- uses: actions/checkout@v3
200+
- uses: actions/checkout@v4
201201

202202
- name: Init Git and pull
203203
run: |

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# Dependabot PRs have no access to secrets (SONAR_TOKEN) -> Ignore them
2727
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'dependabot/') }}
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
3232

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
publish_central: # Publish the code to central
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up JDK OSSRH
1616
uses: actions/setup-java@v3

.github/workflows/update-from-template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
with:
3131
# Required because otherwise there are always changes detected when executing diff/rev-list
3232
fetch-depth: 0

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.2
2+
* Added support for Polyline #266 (thanks to @blitzdose)
3+
14
## 3.0.1
25
* Fixed ``divIcon`` being displayed incorrectly [due to a default ``iconSize`` of ``12px``](https://github.com/Leaflet/Leaflet/issues/4238) #246
36
* Updated dependencies

CONTRIBUTING.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
## Contributing
22

3-
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request in the repositories, and anything that you build and share using our components.
3+
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request and anything that you build and share using our components.
44

5-
### Get in touch with the team
5+
### Communication channels
6+
* Communication is primarily done using issues.
7+
* If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support).
8+
* As a last resort measure or on otherwise important matter you may also [contact us directly](https://xdev.software/en/about-us/contact).
69

7-
Twitter: https://twitter.com/xdevsoftware
8-
<br/>
9-
10+
### Ways to help
11+
* **Report bugs**<br/>Create an issue or send a pull request
12+
* **Send pull requests**<br/>If you want to contribute code, check out the development instructions below.
13+
* However when contributing new features, please first discuss the change you wish to make via issue with the owners of this repository before making a change. Otherwise your work might be rejected and your effort was pointless.
1014

11-
### Some ways to help:
12-
13-
- **Report bugs**: File issues on GitHub.
14-
- **Send pull requests**: If you want to contribute code, check out the development instructions below.
15-
16-
We encourage you to read the [contribution instructions by GitHub](https://guides.github.com/activities/contributing-to-open-source/#contributing) also.
15+
We also encourage you to read the [contribution instructions by GitHub](https://docs.github.com/en/get-started/quickstart/contributing-to-projects).
1716

1817
## Developing
1918

@@ -26,7 +25,7 @@ You should have the following things installed:
2625
### Recommended setup
2726
* Install ``IntelliJ`` (Community Edition is sufficient)
2827
* Install the following plugins:
29-
* [Save Actions](https://plugins.jetbrains.com/plugin/7642-save-actions) - Provides save actions, like running the formatter or adding ``final`` to fields
28+
* [Save Actions](https://plugins.jetbrains.com/plugin/22113) - Provides save actions, like running the formatter or adding ``final`` to fields
3029
* [SonarLint](https://plugins.jetbrains.com/plugin/7973-sonarlint) - CodeStyle/CodeAnalysis
3130
* [Checkstyle-IDEA](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) - CodeStyle/CodeAnalysis
3231
* Import the project

vaadin-maps-leaflet-flow-demo/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
<mainClass>software.xdev.vaadin.Application</mainClass>
2727

2828
<!-- Dependency-Versions -->
29-
<vaadin.version>24.1.2</vaadin.version>
29+
<vaadin.version>24.1.8</vaadin.version>
3030

31-
<org.springframework.boot.version>3.1.1</org.springframework.boot.version>
31+
<org.springframework.boot.version>3.1.3</org.springframework.boot.version>
3232
</properties>
3333

3434
<dependencyManagement>

vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo/LeafletView.java

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import software.xdev.vaadin.maps.leaflet.flow.data.LMarker;
2323
import software.xdev.vaadin.maps.leaflet.flow.data.LPoint;
2424
import software.xdev.vaadin.maps.leaflet.flow.data.LPolygon;
25+
import software.xdev.vaadin.maps.leaflet.flow.data.LPolyline;
2526
import software.xdev.vaadin.maps.leaflet.flow.data.LTileLayer;
2627

2728

@@ -36,16 +37,17 @@ public class LeafletView extends VerticalLayout
3637
private final Button btnLunch = new Button("Where do XDEV employees go for lunch?");
3738
private LMap map;
3839

39-
private LMarker markerZob;
40-
private LMarker markerRathaus;
40+
private final LMarker markerZob = new LMarker(49.673470, 12.160108, "ZoB");
41+
private final LMarker markerRathaus = new LMarker(49.675519, 12.163868, "L-22556");
4142

42-
private LCircle circleRange;
43-
private LMarker markerPizza;
44-
private LMarker markerKebab;
45-
private LMarker markerAsia;
46-
private LMarker markerGreek;
47-
private LMarker markerBakery;
48-
private LMarker markerLeberkaese;
43+
private final LCircle circleRange = new LCircle(49.675126, 12.160733, 450);
44+
private final LMarker markerPizza = new LMarker(49.674413, 12.160925);
45+
private final LMarker markerKebab = new LMarker(49.673026, 12.156278);
46+
private final LMarker markerAsia = new LMarker(49.675039, 12.162127);
47+
private final LMarker markerGreek = new LMarker(49.675126, 12.161899);
48+
private final LMarker markerBakery = new LMarker(49.674806, 12.160249);
49+
private final LMarker markerSchnitzel = new LMarker(49.673800, 12.160113);
50+
private final LMarker markerBratwurst = new LMarker(49.674907, 12.161937);
4951

5052
public LeafletView()
5153
{
@@ -89,7 +91,8 @@ private void btnLunchClick(final ClickEvent<Button> event)
8991
this.markerAsia,
9092
this.markerGreek,
9193
this.markerBakery,
92-
this.markerLeberkaese);
94+
this.markerSchnitzel,
95+
this.markerBratwurst);
9396

9497
this.map.setViewPoint(new LCenter(49.675126, 12.160733, this.viewLunch ? 16 : 17));
9598
this.map.removeLComponents(this.viewLunch ? normalComponents : lunchComponents);
@@ -100,7 +103,6 @@ private void btnLunchClick(final ClickEvent<Button> event)
100103

101104
private void initMapComponents()
102105
{
103-
this.markerZob = new LMarker(49.673470, 12.160108, "ZoB");
104106
this.markerZob.setPopup("Central bus station");
105107

106108
final LMarker markerXDev = new LMarker(49.675806677512824, 12.160990185846394);
@@ -142,32 +144,33 @@ private void initMapComponents()
142144
new LPoint(49.675306, 12.158499)));
143145
polygonNoc.setFill(true);
144146
polygonNoc.setFillColor("#3366ff");
145-
polygonNoc.setFillOpacity(0.8);
147+
polygonNoc.setFillOpacity(0.5);
146148
polygonNoc.setStroke(false);
147149
polygonNoc.setPopup("NOC-Nordoberpfalz Center");
148150

149-
this.markerRathaus = new LMarker(49.675519, 12.163868, "L-22556");
150-
this.markerRathaus.setPopup("Old Town Hall");
151+
final LPolyline polylineRouteZOB = new LPolyline(List.of(
152+
new LPoint(49.673800, 12.160113),
153+
new LPoint(49.67391927694611, 12.160769132769188),
154+
new LPoint(49.67567078571473, 12.160428926167304)
155+
));
156+
polylineRouteZOB.setStrokeOpacity(0.5);
157+
polylineRouteZOB.setPopup("Route to ZOB");
151158

152-
this.circleRange = new LCircle(49.675126, 12.160733, 450);
159+
this.markerRathaus.setPopup("Old Town Hall");
153160

154-
this.markerPizza = new LMarker(49.674413, 12.160925);
155161
this.markerPizza.setPopup("Pizza!");
156162

157-
this.markerKebab = new LMarker(49.673026, 12.156278);
158163
this.markerKebab.setPopup("Kebab!");
159164

160-
this.markerAsia = new LMarker(49.675039, 12.162127);
161165
this.markerAsia.setPopup("Asian Food");
162166

163-
this.markerGreek = new LMarker(49.675126, 12.161899);
164167
this.markerGreek.setPopup("Greek Food");
165168

166-
this.markerBakery = new LMarker(49.674806, 12.160249);
167169
this.markerBakery.setPopup("Fresh baked stuff");
168170

169-
this.markerLeberkaese = new LMarker(49.673800, 12.160113);
170-
this.markerLeberkaese.setPopup("Fast food like Leberkäsesemmeln");
171+
this.markerSchnitzel.setPopup("Fast food like Schnitzel");
172+
173+
this.markerBratwurst.setPopup("Bratwurst");
171174

172175
this.map = new LMap(49.675126, 12.160733, 17);
173176
this.map.setTileLayer(LTileLayer.DEFAULT_OPENSTREETMAP_TILE);
@@ -181,6 +184,7 @@ private void initMapComponents()
181184
markerInfo,
182185
this.markerZob,
183186
polygonNoc,
187+
polylineRouteZOB,
184188
this.markerRathaus);
185189
}
186190
}

vaadin-maps-leaflet-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5050

5151
<!-- Dependency-Versions -->
52-
<vaadin.version>24.1.2</vaadin.version>
52+
<vaadin.version>24.1.8</vaadin.version>
5353
</properties>
5454

5555
<dependencyManagement>

0 commit comments

Comments
 (0)