Fix style-classes not being applied by the builder

This commit is contained in:
Lukas Rieger (Blue) 2022-12-16 12:37:59 +01:00
parent 51d04e8135
commit 942cec6571
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
2 changed files with 2 additions and 0 deletions

View File

@ -232,6 +232,7 @@ public HtmlMarker build() {
checkNotNull(html, "html")
);
if (anchor != null) marker.setAnchor(anchor);
marker.setStyleClasses(classes);
return build(marker);
}

View File

@ -271,6 +271,7 @@ public POIMarker build() {
if (detail != null) marker.setDetail(detail);
if (icon != null) marker.setIcon(icon, anchor);
else if (anchor != null) marker.setAnchor(anchor);
marker.setStyleClasses(classes);
return build(marker);
}