From 64058ed66f6687548d0e97e21178b82bda621a19 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 26 Jan 2021 13:11:48 +0000 Subject: [PATCH] Retrieve value of global `showlabel` config. Fixes #6 --- src/api.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/api.ts b/src/api.ts index b85d680..4c8fa66 100644 --- a/src/api.ts +++ b/src/api.ts @@ -134,6 +134,13 @@ function buildComponents(response: any): DynmapComponentConfig { const type = component.type || "unknown"; switch(type) { + case "markers": + components.markers = { + showLabels: component.showlabel || false, + } + + break; + case "playermarkers": components.playerMarkers = { hideByDefault: component.hidebydefault || false,