diff --git a/ts/RailroadMap.ts b/ts/RailroadMap.ts index b0006be..bed0a24 100644 --- a/ts/RailroadMap.ts +++ b/ts/RailroadMap.ts @@ -153,6 +153,9 @@ export class RailroadMap { this.svg = new Svg() .addClass('map-svg') .addTo(element); + if (this.railroad.settings.gameLevelName) { + this.layerVisibility.background = false; + } this.layers = this.createLayers(); this.render(); this.panZoom = this.initPanZoom(); diff --git a/ts/util.ts b/ts/util.ts index 340eec1..9349d6e 100644 --- a/ts/util.ts +++ b/ts/util.ts @@ -63,7 +63,7 @@ export function textToString(value: GvasText): GvasString { } else { // Simple text if (0 === value.length) { - console.log(`Warning: GvasText contains zero-length string array, converting to null`); + // console.log(`Warning: GvasText contains zero-length string array, converting to null`); return null; } if (1 !== value.length) throw new Error('Expected single entry in simple GvasText');