diff --git a/Common/src/main/kotlin/journeymap_webmap/service/webmap/kotlin/routes/polygons.kt b/Common/src/main/kotlin/journeymap_webmap/service/webmap/kotlin/routes/polygons.kt index a5509c8..8388dae 100644 --- a/Common/src/main/kotlin/journeymap_webmap/service/webmap/kotlin/routes/polygons.kt +++ b/Common/src/main/kotlin/journeymap_webmap/service/webmap/kotlin/routes/polygons.kt @@ -36,6 +36,11 @@ internal fun polygonsGet(ctx: io.javalin.http.Context) { val polygon = step.overlay as PolygonOverlay val points = mutableListOf>() + val label = polygon.label + var fontColor = polygon?.textProperties?.color + if(fontColor == null) { + fontColor = RGB.BLACK_RGB + } polygon.outerArea.points.forEach { point -> points.add( @@ -82,7 +87,8 @@ internal fun polygonsGet(ctx: io.javalin.http.Context) "texturePositionY" to polygon.shapeProperties.texturePositionY, "textureScaleX" to polygon.shapeProperties.textureScaleX, "textureScaleY" to polygon.shapeProperties.textureScaleY, - + "fontColor" to RGB.toHexString(fontColor), + "label" to label, "holes" to holes, "points" to points ) diff --git a/doc/changelog.html b/doc/changelog.html index 24541c7..21dfca1 100644 --- a/doc/changelog.html +++ b/doc/changelog.html @@ -23,5 +23,5 @@

JourneyMap WebMap ${version} for Minecraft ${mcversion}

New in ${version}