From acd3e8a443965021eeef99bb39a24ec300615266 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 20 May 2021 15:12:23 +0100 Subject: [PATCH] Cleanup map properties --- src/api.ts | 2 -- src/dynmap.d.ts | 14 ++++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/api.ts b/src/api.ts index 34ecab8..cd1c8ca 100644 --- a/src/api.ts +++ b/src/api.ts @@ -84,7 +84,6 @@ function buildWorlds(response: any): Array { background: map.background || '#000000', backgroundDay: map.backgroundday || '#000000', backgroundNight: map.backgroundnight || '#000000', - compassView: map.compassview || 'S', icon: map.icon || undefined, imageFormat: map['image-format'] || 'png', name: map.name || '(Unnamed map)', @@ -92,7 +91,6 @@ function buildWorlds(response: any): Array { prefix: map.prefix || '', protected: map.protected || false, title: map.title || '', - type: map.type || 'HDMapType', mapToWorld: map.maptoworld || [0, 0, 0, 0, 0, 0, 0, 0, 0], worldToMap: map.worldtomap || [0, 0, 0, 0, 0, 0, 0, 0, 0], nativeZoomLevels: map.mapzoomout || 1, diff --git a/src/dynmap.d.ts b/src/dynmap.d.ts index c206185..31f1064 100644 --- a/src/dynmap.d.ts +++ b/src/dynmap.d.ts @@ -119,18 +119,16 @@ interface DynmapWorld { interface DynmapWorldMap { world: DynmapWorld; - background: string; - backgroundDay: string; - backgroundNight: string; - compassView: string; - icon: string; - imageFormat: string; name: string; + icon: string; + title: string; + background: string; nightAndDay: boolean; + backgroundDay?: string; + backgroundNight?: string; + imageFormat: string; prefix: string; protected: boolean; - title: string; - type: string; mapToWorld: [number, number, number, number, number, number, number, number, number]; worldToMap: [number, number, number, number, number, number, number, number, number]; nativeZoomLevels: number;