From f36e84ddf5ceccf54edc4e7a5c35522ae3bab810 Mon Sep 17 00:00:00 2001 From: Adam <897017+aSemy@users.noreply.github.com> Date: Sun, 24 Apr 2022 18:55:47 +0200 Subject: [PATCH] webmap: use Ints for player lat/lng --- .../src/main/kotlin/dev/adamko/kafkatorio/webmap/state.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state.kt b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state.kt index 050e966..9ff75ab 100644 --- a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state.kt +++ b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/state.kt @@ -155,7 +155,10 @@ class PlayerState( options.color = playerColour options.fillColor = playerColour - setTooltipContent("${playerDetails.name} [${playerDetails.latLng}]") + val lat = playerDetails.latLng.lat.toInt() + val lng = playerDetails.latLng.lng.toInt() + + setTooltipContent("${playerDetails.name} [$lat, $lng]") setLatLng(playerDetails.latLng) }