Skip to content

Commit 6ba9ec0

Browse files
committed
Added more docs
1 parent ec519f2 commit 6ba9ec0

File tree

1 file changed

+4
-0
lines changed
  • vaadin-maps-leaflet-flow-demo/src/main/java/software/xdev/vaadin/maps/leaflet/flow/demo

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,13 @@ public class LeafletView extends VerticalLayout
6464

6565
public LeafletView()
6666
{
67+
// Add an Id to the current view so that we can later find it in JS and do a callback
6768
this.setId(ID);
6869

70+
// Create the registry which allows reusing components and invoking methods
6971
this.reg = new LDefaultComponentManagementRegistry(this);
7072

73+
// Create and add the MapContainer (which will contain the map) to the UI
7174
final MapContainer mapContainer = new MapContainer(this.reg);
7275
mapContainer.setSizeFull();
7376
this.add(mapContainer);
@@ -103,6 +106,7 @@ public LeafletView()
103106
This demo shows you different markers,<br> popups, polygons and other stuff
104107
</div>
105108
""")
109+
// Set the icon size to unlimited otherwise the div collapses
106110
.withIconSize(new LPoint(this.reg, -1, -1)));
107111
final LMarker markerInfo = new LMarker(
108112
this.reg,

0 commit comments

Comments
 (0)