Closed Aklakan closed 8 months ago
Using com.xdev-software:vaadin-maps-leaflet-flow:4.1.0.
com.xdev-software:vaadin-maps-leaflet-flow:4.1.0
The following snippet creates an invalid JavaScript payload:
LMapZoomPanOptions opts = new LMapZoomPanOptions(); opts.setDuration(1.0); map.flyToBounds(bounds, opts);
The reason is, that several produced strings such as in LMap#435 lack the , when options are present.
,
For example, I get the incorrect payload:
document.getElementById('lComponentRegistry1').lComponents.get(1).flyToBounds( document.getElementById('lComponentRegistry1').lComponents.get(31){"duration":1.0})
The correct payload would be ...get(31), {"duration":1.0})
...get(31), {"duration":1.0})
Thank you for the issue.
This was indeed incorrect. I also found some other methods that build invalid Javascript.
The fix will be shipped with the next release
Using
com.xdev-software:vaadin-maps-leaflet-flow:4.1.0
.The following snippet creates an invalid JavaScript payload:
The reason is, that several produced strings such as in LMap#435 lack the
,
when options are present.For example, I get the incorrect payload:
The correct payload would be
...get(31), {"duration":1.0})