mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Merge branch 'main' of https://github.com/Pax1601/DCSOlympus
This commit is contained in:
@@ -458,7 +458,7 @@ module.exports = function (configLocation) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mission(req, res){
|
mission(req, res){
|
||||||
var ret = {mission: {theatre: "Afghanistan"}};
|
var ret = {mission: {theatre: "Caucasus"}};
|
||||||
ret.time = Date.now();
|
ret.time = Date.now();
|
||||||
|
|
||||||
ret.mission.dateAndTime = {
|
ret.mission.dateAndTime = {
|
||||||
|
|||||||
@@ -343,6 +343,11 @@ export class Map extends L.Map {
|
|||||||
} else if (Object.keys(this.#mapMirrors).includes(layerName) ) {
|
} else if (Object.keys(this.#mapMirrors).includes(layerName) ) {
|
||||||
let layers: L.TileLayer[] = [];
|
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 */
|
/* Load the configuration file */
|
||||||
const mirror = this.#mapMirrors[layerName as any];
|
const mirror = this.#mapMirrors[layerName as any];
|
||||||
const request = new Request(mirror + "/config.json");
|
const request = new Request(mirror + "/config.json");
|
||||||
|
|||||||
Reference in New Issue
Block a user