Skip to content

Commit 9971b1a

Browse files
committed
fix: set the slot attribute to GoogleMapPoly
This avoids polys not being shown when created after map initialization. Close #152
1 parent 229373b commit 9971b1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public GoogleMapPoly(List<GoogleMapPoint> points) {
5757
setFillColor(DEFAULT_FILL_COLOR);
5858
setFillOpacity(DEFAULT_FILL_OPACITY);
5959
setPoints(points);
60+
getElement().setAttribute("slot", "objects");
6061
}
6162

6263
public void setFillOpacity(double opacity) {

0 commit comments

Comments
 (0)