File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,13 @@ public class LeafletView extends VerticalLayout
64
64
65
65
public LeafletView ()
66
66
{
67
+ // Add an Id to the current view so that we can later find it in JS and do a callback
67
68
this .setId (ID );
68
69
70
+ // Create the registry which allows reusing components and invoking methods
69
71
this .reg = new LDefaultComponentManagementRegistry (this );
70
72
73
+ // Create and add the MapContainer (which will contain the map) to the UI
71
74
final MapContainer mapContainer = new MapContainer (this .reg );
72
75
mapContainer .setSizeFull ();
73
76
this .add (mapContainer );
@@ -103,6 +106,7 @@ public LeafletView()
103
106
This demo shows you different markers,<br> popups, polygons and other stuff
104
107
</div>
105
108
""" )
109
+ // Set the icon size to unlimited otherwise the div collapses
106
110
.withIconSize (new LPoint (this .reg , -1 , -1 )));
107
111
final LMarker markerInfo = new LMarker (
108
112
this .reg ,
You can’t perform that action at this time.
0 commit comments