From 81188bb24d20f23ff4b7cff37bb17ee7d1b24bd8 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 21 Dec 2022 17:41:36 +0100 Subject: Fix layout of locale markers. --- play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 29bf0d9..ca5433d 100644 --- a/play.js +++ b/play.js @@ -1517,8 +1517,8 @@ function build_map() { // Locale Markers e = ui.locale_markers[ix] = document.createElement("div") e.className = "locale_markers " + locale.type + " " + region - x = xc - 196/2 - y = y - 8 + x = locale_xy[ix][0] - 196/2 + y = locale_xy[ix][1] + 36 e.style.top = y + "px" e.style.left = x + "px" e.style.width = 196 + "px" -- cgit v1.2.3