From a8595a97d85eb9dcb162ab1e3a720f4a9e73fd92 Mon Sep 17 00:00:00 2001 From: Davide Passoni Date: Tue, 23 Jul 2024 09:57:01 +0200 Subject: [PATCH] Added default background arcgis layer --- frontend/server/demo.js | 2 +- frontend/website/src/map/map.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/server/demo.js b/frontend/server/demo.js index f5b437f3..f817125b 100644 --- a/frontend/server/demo.js +++ b/frontend/server/demo.js @@ -458,7 +458,7 @@ module.exports = function (configLocation) { }; mission(req, res){ - var ret = {mission: {theatre: "Afghanistan"}}; + var ret = {mission: {theatre: "Caucasus"}}; ret.time = Date.now(); ret.mission.dateAndTime = { diff --git a/frontend/website/src/map/map.ts b/frontend/website/src/map/map.ts index e9022422..35c240e8 100644 --- a/frontend/website/src/map/map.ts +++ b/frontend/website/src/map/map.ts @@ -343,6 +343,11 @@ export class Map extends L.Map { } else if (Object.keys(this.#mapMirrors).includes(layerName) ) { let layers: L.TileLayer[] = []; + layers.push(new L.TileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", { + minZoom: 1, + maxZoom: 19, + })) + /* Load the configuration file */ const mirror = this.#mapMirrors[layerName as any]; const request = new Request(mirror + "/config.json");