Retrieve value of global showlabel
config. Fixes #6
This commit is contained in:
parent
d82107c037
commit
64058ed66f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user