diff --git a/src/api.ts b/src/api.ts index cb0ac76..ec4e88c 100644 --- a/src/api.ts +++ b/src/api.ts @@ -29,13 +29,11 @@ import { DynmapTileUpdate, DynmapUpdate, DynmapUpdateResponse, - DynmapUpdates, - DynmapWorld, - DynmapWorldMap + DynmapUpdates } from "@/dynmap"; import {useStore} from "@/store"; import ChatError from "@/errors/ChatError"; -import {LiveAtlasMessageConfig} from "@/index"; +import {LiveAtlasMessageConfig, LiveAtlasWorld} from "@/index"; const titleColours = /ยง[0-9a-f]/ig; @@ -103,8 +101,8 @@ function buildMessagesConfig(response: any): LiveAtlasMessageConfig { } } -function buildWorlds(response: any): Array { - const worlds: Map = new Map(); +function buildWorlds(response: any): Array { + const worlds: Map = new Map(); //Get all the worlds first so we can handle append_to_world properly (response.worlds || []).forEach((world: any) => { diff --git a/src/components/Map.vue b/src/components/Map.vue index 04f8df6..b912431 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -44,11 +44,12 @@ import LinkControl from "@/components/map/control/LinkControl.vue"; import ChatControl from "@/components/map/control/ChatControl.vue"; import LogoControl from "@/components/map/control/LogoControl.vue"; import {MutationTypes} from "@/store/mutation-types"; -import {Coordinate, DynmapPlayer} from "@/dynmap"; +import {DynmapPlayer} from "@/dynmap"; import {ActionTypes} from "@/store/action-types"; import DynmapMap from "@/leaflet/DynmapMap"; import {LoadingControl} from "@/leaflet/control/LoadingControl"; import MapContextMenu from "@/components/map/MapContextMenu.vue"; +import {Coordinate} from "@/index"; export default defineComponent({ components: { @@ -324,4 +325,4 @@ export default defineComponent({ } } } - \ No newline at end of file + diff --git a/src/components/map/layer/MapLayer.vue b/src/components/map/layer/MapLayer.vue index 4af542c..17b05ed 100644 --- a/src/components/map/layer/MapLayer.vue +++ b/src/components/map/layer/MapLayer.vue @@ -16,13 +16,13 @@