implements HasSize, HasStyle, H
public MapContainer(final LComponentManagementRegistry reg)
{
- this(reg, null);
+ this(reg, (LMapOptions)null);
+ }
+
+ public MapContainer(
+ final LComponentManagementRegistry reg,
+ final LMapOptions options)
+ {
+ this(reg, options, null);
+ }
+
+ /**
+ * @param afterInitialResize This is called after the map was initially resized/is ready.
+ *
+ * This is ONLY required when calling certain methods like e.g.
+ * {@link LMap#fitBounds(LLatLngBounds)} instantly after the map is created.
+ *
+ * For performance reasons it's highly recommended to only use this when required.
+ */
+ public MapContainer(
+ final LComponentManagementRegistry reg,
+ final Consumer
afterInitialResize)
+ {
+ this(reg, null, afterInitialResize);
}
/**
@@ -62,13 +85,14 @@ public MapContainer(final LComponentManagementRegistry reg)
*/
public MapContainer(
final LComponentManagementRegistry reg,
+ final LMapOptions options,
final Consumer afterInitialResize)
{
this.afterInitialResize = afterInitialResize;
this.getContent().setSizeFull();
this.fixZIndex();
- this.lMap = new LMap(reg, this.getContent());
+ this.lMap = new LMap(reg, this.getContent(), options);
this.fixInitialSizeAfterCreation();
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/base/LEvented.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/base/LEvented.java
index 54b0583a..dd156a03 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/base/LEvented.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/base/LEvented.java
@@ -16,6 +16,9 @@
package software.xdev.vaadin.maps.leaflet.base;
/**
+ * @apiNote
+ * Data integrity when retrieving client side data can't be assured.
+ * Use at your own risk!
* @see Leaflet docs
*/
public interface LEvented> extends LComponent
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControl.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControl.java
index 3e06fc58..128b099e 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControl.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControl.java
@@ -52,4 +52,21 @@ public S addTo(final LMap map)
this.invokeSelf(".addTo(" + map.clientComponentJsAccessor() + ")");
return this.self();
}
+
+ /**
+ * The possible values of position
+ *
+ * @see Leaflet docs
+ */
+ public static final class Positions
+ {
+ public static final String TOP_LEFT = "topleft";
+ public static final String TOP_RIGHT = "topright";
+ public static final String BOTTOM_LEFT = "bottomleft";
+ public static final String BOTTOM_RIGHT = "bottomright";
+
+ private Positions()
+ {
+ }
+ }
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControlLayers.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControlLayers.java
index 6d303cc8..cea1c9c5 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControlLayers.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/controls/LControlLayers.java
@@ -36,9 +36,9 @@ public LControlLayers(
final LControlLayersOptions options)
{
super(compReg, "L.control.layers("
- + (baselayers != null ? convertLayerMapToString(baselayers) : "")
+ + (baselayers != null ? convertLayerMapToString(baselayers) : "{}")
+ "," + (overlays != null ? convertLayerMapToString(overlays) : "{}")
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/crs/LCRS.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/crs/LCRS.java
new file mode 100644
index 00000000..57d1d372
--- /dev/null
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/crs/LCRS.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2019 XDEV Software (https://xdev.software)
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package software.xdev.vaadin.maps.leaflet.crs;
+
+import software.xdev.vaadin.maps.leaflet.base.RawString;
+
+
+/**
+ * @apiNote CRS can't be constructed
+ * @see Leaflet docs
+ */
+public final class LCRS
+{
+ public static final class Defined
+ {
+ public static final RawString EARTH = new RawString("L.CRS.Earth");
+
+ public static final RawString EPSG3395 = new RawString("L.CRS.EPSG3395");
+ public static final RawString EPSG3857 = new RawString("L.CRS.EPSG3857");
+ public static final RawString EPSG4326 = new RawString("L.CRS.EPSG4326");
+ public static final RawString BASE = new RawString("L.CRS.Base");
+ public static final RawString SIMPLE = new RawString("L.CRS.Simple");
+
+ private Defined()
+ {
+ }
+ }
+
+ private LCRS()
+ {
+ }
+}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayer.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayer.java
index a0e14df1..84f62493 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayer.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/LLayer.java
@@ -112,7 +112,7 @@ public S removeFrom(final LLayerGroup layerGroup)
public S bindPopup(final String content, final LPopupOptions options)
{
this.invokeSelf(
- ".bindPopup($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")",
+ ".bindPopup($0" + this.componentRegistry().writeOptionsOptionalNextParameter(options) + ")",
content);
return this.self();
}
@@ -187,7 +187,7 @@ public S closePopup()
public S bindTooltip(final String content, final LTooltipOptions options)
{
this.invokeSelf(
- ".bindTooltip($0, " + this.componentRegistry().writeOptionsOptionalParameter(options) + ")",
+ ".bindTooltip($0" + this.componentRegistry().writeOptionsOptionalNextParameter(options) + ")",
content);
return this.self();
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LImageOverlay.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LImageOverlay.java
index 30e10688..ceeb1a6f 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LImageOverlay.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LImageOverlay.java
@@ -44,10 +44,11 @@ public LImageOverlay(
final LLatLngBounds bounds,
final LImageOverlayOptions options)
{
- super(compReg,
+ super(
+ compReg,
"L.imageOverlay($0, "
- + bounds.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options) + ")",
+ + bounds.clientComponentJsAccessor()
+ + compReg.writeOptionsOptionalNextParameter(options) + ")",
imageUrl);
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LTileLayer.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LTileLayer.java
index fc65ac79..0dcb8300 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LTileLayer.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LTileLayer.java
@@ -44,7 +44,7 @@ public LTileLayer(
final String urlTemplate,
final LTileLayerOptions options)
{
- super(compReg, "L.tileLayer($0" + compReg.writeOptionsOptionalParameter(options) + ")", urlTemplate);
+ super(compReg, "L.tileLayer($0" + compReg.writeOptionsOptionalNextParameter(options) + ")", urlTemplate);
}
public LTileLayer(
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LVideoOverlay.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LVideoOverlay.java
index d63ea38a..d4182c51 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LVideoOverlay.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/raster/LVideoOverlay.java
@@ -33,7 +33,7 @@ public LVideoOverlay(
super(compReg,
"L.videoOverlay($0, "
+ bounds.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")",
video);
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LMarker.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LMarker.java
index 21f16387..ef6e972b 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LMarker.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LMarker.java
@@ -45,7 +45,7 @@ public LMarker(
compReg,
"L.marker("
+ compReg.clientComponentJsAccessor(latLng)
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LPopup.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LPopup.java
index fce72413..de041f63 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LPopup.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LPopup.java
@@ -52,7 +52,7 @@ public LPopup(
{
super(compReg, "L.popup("
+ latLng.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LTooltip.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LTooltip.java
index 0821f053..c325f021 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LTooltip.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/ui/LTooltip.java
@@ -52,7 +52,7 @@ public LTooltip(
{
super(compReg, "L.tooltip("
+ latLng.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircle.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircle.java
index 0a6cf896..1a55c0fb 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircle.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircle.java
@@ -31,7 +31,7 @@ public LCircle(
{
super(compReg, "L.circle("
+ latLng.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircleMarker.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircleMarker.java
index 5de8fc71..18bb5055 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircleMarker.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LCircleMarker.java
@@ -31,7 +31,7 @@ public LCircleMarker(
{
super(compReg, "L.circleMarker("
+ latLng.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LPolyline.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LPolyline.java
index 92fc8633..23b0f76a 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LPolyline.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LPolyline.java
@@ -45,7 +45,7 @@ protected LPolyline(
{
super(compReg, constructorMethod + "("
+ convertMultiLatLngs(latLngs)
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LRectangle.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LRectangle.java
index 1d28bae5..0e8de935 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LRectangle.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LRectangle.java
@@ -31,7 +31,7 @@ public LRectangle(
{
super(compReg, "L.rectangle("
+ bounds.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")");
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LSVGOverlay.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LSVGOverlay.java
index 2f863052..804f83db 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LSVGOverlay.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/layer/vector/LSVGOverlay.java
@@ -35,7 +35,7 @@ public LSVGOverlay(
super(compReg,
"L.svgOverlay($0, "
+ bounds.clientComponentJsAccessor()
- + compReg.writeOptionsOptionalParameter(options)
+ + compReg.writeOptionsOptionalNextParameter(options)
+ ")",
svg);
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMap.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMap.java
index dd6cff8c..cda90aee 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMap.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMap.java
@@ -49,7 +49,7 @@ public LMap(
final String id,
final LMapOptions options)
{
- super(compReg, "L.map($0" + compReg.writeOptionsOptionalParameter(options) + ")", id);
+ super(compReg, "L.map($0" + compReg.writeOptionsOptionalNextParameter(options) + ")", id);
}
public LMap(
@@ -197,7 +197,7 @@ public LMap setView(final LLatLng center, final int zoom, final LMapZoomPanOptio
this.invokeSelf(".setView("
+ center.clientComponentJsAccessor()
+ "," + zoom
- + this.componentRegistry().writeOptionsOptionalParameter(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -217,7 +217,7 @@ public LMap zoomIn(final Integer delta, final LMapZoomOptions options)
{
this.invokeSelf(".zoomIn("
+ (delta != null ? delta : "")
- + this.componentRegistry().writeOptionsOptionalParameter(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -245,7 +245,7 @@ public LMap zoomOut(final Integer delta, final LMapZoomOptions options)
{
this.invokeSelf(".zoomOut("
+ (delta != null ? delta : "")
- + this.componentRegistry().writeOptionsOptionalParameter(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -275,7 +275,7 @@ public LMap setZoomAround(final LLatLng latLng, final int zoom, final LMapZoomOp
".setZoomAround("
+ latLng.clientComponentJsAccessor()
+ ",$0"
- + this.componentRegistry().writeOptionsOptionalParameter(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")",
zoom);
return this.self();
@@ -298,7 +298,7 @@ public LMap setZoomAround(final LPoint point, final int zoom, final LMapZoomOpti
".setZoomAround("
+ point.clientComponentJsAccessor()
+ ",$0"
- + this.componentRegistry().writeOptionsOptionalParameter(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")",
zoom);
return this.self();
@@ -320,7 +320,7 @@ public LMap fitBounds(final LLatLngBounds bounds, final LMapFitBoundOptions opti
this.invokeSelf(
".fitBounds("
+ bounds.clientComponentJsAccessor()
- + this.componentRegistry().writeOptionsOptionalParameter(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -404,7 +404,7 @@ public LMap flyTo(final LLatLng latLng, final Integer zoom, final LMapZoomPanOpt
".flyTo("
+ latLng.clientComponentJsAccessor()
+ (zoom != null ? "," + zoom : "")
- + this.componentRegistry().writeOptions(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -433,7 +433,7 @@ public LMap flyToBounds(final LLatLngBounds bounds, final LMapZoomPanOptions opt
this.invokeSelf(
".flyToBounds("
+ bounds.clientComponentJsAccessor()
- + this.componentRegistry().writeOptions(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -484,7 +484,7 @@ public LMap panInsideBounds(final LLatLngBounds bounds, final LMapPanOptions opt
this.invokeSelf(
".panInsideBounds("
+ bounds.clientComponentJsAccessor()
- + this.componentRegistry().writeOptions(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
@@ -505,7 +505,7 @@ public LMap panInside(final LLatLng latLng, final LMapPanOptions options)
this.invokeSelf(
".panInside("
+ latLng.clientComponentJsAccessor()
- + this.componentRegistry().writeOptions(options)
+ + this.componentRegistry().writeOptionsOptionalNextParameter(options)
+ ")");
return this.self();
}
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMapOptions.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMapOptions.java
index 1d7614bf..f80983e9 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMapOptions.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/map/LMapOptions.java
@@ -59,7 +59,8 @@ public class LMapOptions implements LComponentOptions
// Boolean|String
private Object touchZoom;
private Boolean bounceAtZoomLimits;
- // CRS is currently not implemented - the default used one should be sufficient
+
+ private Object crs;
private LLatLng center;
private Integer zoom;
private Integer minZoom;
@@ -473,6 +474,22 @@ public LMapOptions withBounceAtZoomLimits(final Boolean bounceAtZoomLimits)
return this.self();
}
+ public Object getCrs()
+ {
+ return this.crs;
+ }
+
+ public void setCrs(final Object crs)
+ {
+ this.crs = crs;
+ }
+
+ public LMapOptions withCrs(final Object crs)
+ {
+ this.setCrs(crs);
+ return this.self();
+ }
+
public LLatLng getCenter()
{
return this.center;
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LComponentManagementRegistry.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LComponentManagementRegistry.java
index a69d5e0e..3070df03 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LComponentManagementRegistry.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LComponentManagementRegistry.java
@@ -36,7 +36,7 @@
public interface LComponentManagementRegistry
{
// region Write Options
- String writeOptionsOptionalParameter(final LComponentOptions> options);
+ String writeOptionsOptionalNextParameter(final LComponentOptions> options);
String writeOptions(final LComponentOptions> options);
diff --git a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LDefaultComponentManagementRegistry.java b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LDefaultComponentManagementRegistry.java
index 49d7f63f..ab9d464e 100644
--- a/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LDefaultComponentManagementRegistry.java
+++ b/vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/registry/LDefaultComponentManagementRegistry.java
@@ -76,7 +76,7 @@ public LDefaultComponentManagementRegistry(final HasComponents parent, final Obj
}
@Override
- public String writeOptionsOptionalParameter(final LComponentOptions> options)
+ public String writeOptionsOptionalNextParameter(final LComponentOptions> options)
{
return options == null ? "" : (", " + this.writeOptionsOrEmptyObject(options));
}