Skip to content

Commit d87fab7

Browse files
paodbjavier-godoy
authored andcommitted
fix: set marker slot in default constructor to ensure visibility
Close #153
1 parent b78b57e commit d87fab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMapMarker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class GoogleMapMarker extends Component {
5353
public GoogleMapMarker() {
5454
id = idCounter;
5555
idCounter++;
56+
this.getElement().setAttribute("slot", "markers");
5657
}
5758

5859
/**
@@ -67,7 +68,6 @@ public GoogleMapMarker(String caption, LatLon position, boolean draggable) {
6768
this.setCaption(caption);
6869
this.setPosition(position);
6970
this.setDraggable(draggable);
70-
this.getElement().setAttribute("slot", "markers");
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)