mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Fixed incorrect removal of airbases on map when changing layer
This commit is contained in:
@@ -458,7 +458,7 @@ module.exports = function (configLocation) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mission(req, res){
|
mission(req, res){
|
||||||
var ret = {mission: {theatre: "PersianGulf"}};
|
var ret = {mission: {theatre: "Nevada"}};
|
||||||
ret.time = Date.now();
|
ret.time = Date.now();
|
||||||
|
|
||||||
ret.mission.dateAndTime = {
|
ret.mission.dateAndTime = {
|
||||||
|
|||||||
@@ -321,7 +321,8 @@ export class Map extends L.Map {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setLayer(layerName: string) {
|
setLayer(layerName: string) {
|
||||||
this.eachLayer((layer) => this.removeLayer(layer))
|
if (this.#layer)
|
||||||
|
this.removeLayer(this.#layer);
|
||||||
|
|
||||||
let theatre = getApp().getMissionManager()?.getTheatre() ?? "Nevada";
|
let theatre = getApp().getMissionManager()?.getTheatre() ?? "Nevada";
|
||||||
|
|
||||||
|
|||||||
69
olympus.json
69
olympus.json
@@ -1,37 +1,36 @@
|
|||||||
{
|
{
|
||||||
"backend": {
|
"backend": {
|
||||||
"address": "localhost",
|
"address": "localhost",
|
||||||
"port": 4512
|
"port": 4512
|
||||||
},
|
},
|
||||||
"authentication": {
|
"authentication": {
|
||||||
"gameMasterPassword": "4b8823ed9e5c2392ab4a791913bb8ce41956ea32e308b760eefb97536746dd33",
|
"gameMasterPassword": "4b8823ed9e5c2392ab4a791913bb8ce41956ea32e308b760eefb97536746dd33",
|
||||||
"blueCommanderPassword": "b0ea4230c1558c5313165eda1bdb7fced008ca7f2ca6b823fb4d26292f309098",
|
"blueCommanderPassword": "b0ea4230c1558c5313165eda1bdb7fced008ca7f2ca6b823fb4d26292f309098",
|
||||||
"redCommanderPassword": "302bcbaf2a3fdcf175b689bf102d6cdf9328f68a13d4096101bba806482bfed9"
|
"redCommanderPassword": "302bcbaf2a3fdcf175b689bf102d6cdf9328f68a13d4096101bba806482bfed9"
|
||||||
},
|
},
|
||||||
"frontend": {
|
"frontend": {
|
||||||
"port": 3000,
|
"port": 3000,
|
||||||
"elevationProvider": {
|
"elevationProvider": {
|
||||||
"provider": "https://srtm.fasma.org/{lat}{lng}.SRTMGL3S.hgt.zip",
|
"provider": "https://srtm.fasma.org/{lat}{lng}.SRTMGL3S.hgt.zip",
|
||||||
"username": null,
|
"username": null,
|
||||||
"password": null
|
"password": null
|
||||||
},
|
},
|
||||||
"additionalMaps": {
|
"mapLayers": {
|
||||||
"TestMap": [
|
"ArcGIS Satellite": {
|
||||||
{
|
"urlTemplate": "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
|
||||||
"urlTemplate": "http://localhost:3000/maps/TestMap/{z}/{x}/{y}.png",
|
"minZoom": 1,
|
||||||
"minNativeZoom": 1,
|
"maxZoom": 19,
|
||||||
"maxNativeZoom": 13,
|
"attribution": "Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Mapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"
|
||||||
"minZoom": 1,
|
},
|
||||||
"maxZoom": 20
|
"OpenStreetMap Mapnik": {
|
||||||
},
|
"urlTemplate": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
|
||||||
{
|
"minZoom": 1,
|
||||||
"urlTemplate": "http://localhost:3000/maps/TestMap/{z}/{x}/{y}.png",
|
"maxZoom": 20,
|
||||||
"minNativeZoom": 14,
|
"attribution": "OpenStreetMap contributors"
|
||||||
"maxNativeZoom": 17,
|
}
|
||||||
"minZoom": 14,
|
},
|
||||||
"maxZoom": 20
|
"mapMirrors": {
|
||||||
}
|
"DCS Map (Refugees)": "https://refugees.dcsolympus.com/maps"
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user