Cleanup map properties
This commit is contained in:
parent
f2bfbf732a
commit
acd3e8a443
@ -84,7 +84,6 @@ function buildWorlds(response: any): Array<DynmapWorld> {
|
||||
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<DynmapWorld> {
|
||||
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,
|
||||
|
14
src/dynmap.d.ts
vendored
14
src/dynmap.d.ts
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user