From 942cec6571a5d574660e343cdc81e2985b1f7dd4 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Fri, 16 Dec 2022 12:37:59 +0100 Subject: [PATCH] Fix style-classes not being applied by the builder --- src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java | 1 + src/main/java/de/bluecolored/bluemap/api/markers/POIMarker.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java b/src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java index 8b6a806..8e4c0e3 100644 --- a/src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java +++ b/src/main/java/de/bluecolored/bluemap/api/markers/HtmlMarker.java @@ -232,6 +232,7 @@ public HtmlMarker build() { checkNotNull(html, "html") ); if (anchor != null) marker.setAnchor(anchor); + marker.setStyleClasses(classes); return build(marker); } diff --git a/src/main/java/de/bluecolored/bluemap/api/markers/POIMarker.java b/src/main/java/de/bluecolored/bluemap/api/markers/POIMarker.java index a35c84e..4e7311b 100644 --- a/src/main/java/de/bluecolored/bluemap/api/markers/POIMarker.java +++ b/src/main/java/de/bluecolored/bluemap/api/markers/POIMarker.java @@ -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); }