Skip to content

Commit 52f5ad5

Browse files
committed
Fixed some invalid built JavaScript commands
Fixes #330
1 parent ffb40f9 commit 52f5ad5

File tree

20 files changed

+37
-33
lines changed

20 files changed

+37
-33
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.2.0
2+
* Fixed some invalid built JavaScript commands #330
3+
14
## 4.1.1
25
* ⚠️ GroupId changed from ``com.xdev-software`` to ``software.xdev``
36
* Updated dependencies

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.xdev</groupId>
88
<artifactId>vaadin-maps-leaflet-flow-root</artifactId>
9-
<version>4.1.2-SNAPSHOT</version>
9+
<version>4.2.0-SNAPSHOT</version>
1010
<packaging>pom</packaging>
1111

1212
<organization>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.xdev</groupId>
88
<artifactId>vaadin-maps-leaflet-flow-demo</artifactId>
9-
<version>4.1.2-SNAPSHOT</version>
9+
<version>4.2.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<inceptionYear>2019</inceptionYear>

vaadin-maps-leaflet-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>software.xdev</groupId>
88
<artifactId>vaadin-maps-leaflet-flow</artifactId>
9-
<version>4.1.2-SNAPSHOT</version>
9+
<version>4.2.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>LeafletMap for Vaadin</name>

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControlLayers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public LControlLayers(
3636
final LControlLayersOptions options)
3737
{
3838
super(compReg, "L.control.layers("
39-
+ (baselayers != null ? convertLayerMapToString(baselayers) : "")
39+
+ (baselayers != null ? convertLayerMapToString(baselayers) : "{}")
4040
+ "," + (overlays != null ? convertLayerMapToString(overlays) : "{}")
41-
+ compReg.writeOptionsOptionalParameter(options)
41+
+ compReg.writeOptionsOptionalNextParameter(options)
4242
+ ")");
4343
}
4444

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public S removeFrom(final LLayerGroup layerGroup)
112112
public S bindPopup(final String content, final LPopupOptions options)
113113
{
114114
this.invokeSelf(
115-
".bindPopup($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")",
115+
".bindPopup($0" + this.componentRegistry().writeOptionsOptionalNextParameter(options) + ")",
116116
content);
117117
return this.self();
118118
}
@@ -187,7 +187,7 @@ public S closePopup()
187187
public S bindTooltip(final String content, final LTooltipOptions options)
188188
{
189189
this.invokeSelf(
190-
".bindTooltip($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")",
190+
".bindTooltip($0" + this.componentRegistry().writeOptionsOptionalNextParameter(options) + ")",
191191
content);
192192
return this.self();
193193
}

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LImageOverlay.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ public LImageOverlay(
4444
final LLatLngBounds bounds,
4545
final LImageOverlayOptions options)
4646
{
47-
super(compReg,
47+
super(
48+
compReg,
4849
"L.imageOverlay($0, "
49-
+ bounds.clientComponentJsAccessor()
50-
+ compReg.writeOptionsOptionalParameter(options) + ")",
50+
+ bounds.clientComponentJsAccessor()
51+
+ compReg.writeOptionsOptionalNextParameter(options) + ")",
5152
imageUrl);
5253
}
5354

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LTileLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public LTileLayer(
4444
final String urlTemplate,
4545
final LTileLayerOptions options)
4646
{
47-
super(compReg, "L.tileLayer($0" + compReg.writeOptionsOptionalParameter(options) + ")", urlTemplate);
47+
super(compReg, "L.tileLayer($0" + compReg.writeOptionsOptionalNextParameter(options) + ")", urlTemplate);
4848
}
4949

5050
public LTileLayer(

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LVideoOverlay.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public LVideoOverlay(
3333
super(compReg,
3434
"L.videoOverlay($0, "
3535
+ bounds.clientComponentJsAccessor()
36-
+ compReg.writeOptionsOptionalParameter(options)
36+
+ compReg.writeOptionsOptionalNextParameter(options)
3737
+ ")",
3838
video);
3939
}

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LMarker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public LMarker(
4545
compReg,
4646
"L.marker("
4747
+ compReg.clientComponentJsAccessor(latLng)
48-
+ compReg.writeOptionsOptionalParameter(options)
48+
+ compReg.writeOptionsOptionalNextParameter(options)
4949
+ ")");
5050
}
5151

0 commit comments

Comments
 (0)