Retrieve value of global showlabel config. Fixes #6

This commit is contained in:
James Lyne 2021-01-26 13:11:48 +00:00
parent d82107c037
commit 64058ed66f

View File

@ -134,6 +134,13 @@ function buildComponents(response: any): DynmapComponentConfig {
const type = component.type || "unknown"; const type = component.type || "unknown";
switch(type) { switch(type) {
case "markers":
components.markers = {
showLabels: component.showlabel || false,
}
break;
case "playermarkers": case "playermarkers":
components.playerMarkers = { components.playerMarkers = {
hideByDefault: component.hidebydefault || false, hideByDefault: component.hidebydefault || false,