feat(map): adopt DC Default scene
This commit is contained in:
@@ -22,19 +22,60 @@ after(async () => {
|
||||
|
||||
function serverDocument(overrides = {}) {
|
||||
return {
|
||||
schema_version: "missioncore.map-view/v1",
|
||||
schema_version: "missioncore.map-view/v2",
|
||||
revision: 0,
|
||||
view: {
|
||||
camera: null,
|
||||
camera: {
|
||||
longitude: 37.618423,
|
||||
latitude: 55.751244,
|
||||
height: 40000,
|
||||
heading: 0,
|
||||
pitch: -51.56620156177409,
|
||||
roll: 0,
|
||||
},
|
||||
visual_settings: {
|
||||
atmosphere_enabled: true,
|
||||
lighting_enabled: true,
|
||||
atmosphere_enabled: false,
|
||||
atmosphere_hue: 0,
|
||||
atmosphere_saturation: 0,
|
||||
atmosphere_brightness: 0,
|
||||
fog_enabled: true,
|
||||
fog_density: 2,
|
||||
sun_enabled: true,
|
||||
sun_hour: 12,
|
||||
sun_intensity: 200,
|
||||
shadows_enabled: true,
|
||||
monochrome_enabled: false,
|
||||
monochrome_color: "#15151b",
|
||||
imagery_brightness: 118,
|
||||
imagery_contrast: 102,
|
||||
imagery_saturation: 0,
|
||||
imagery_gamma: 57,
|
||||
imagery_hue: 13,
|
||||
imagery_alpha: 27,
|
||||
globe_color: "#15151b",
|
||||
background_color: "#08090d",
|
||||
terrain_exaggeration: 1,
|
||||
buildings_maximum_screen_space_error: 16,
|
||||
buildings_color: "#a27aff",
|
||||
buildings_opacity: 1,
|
||||
buildings_maximum_screen_space_error: 4,
|
||||
grid_lod_enabled: true,
|
||||
grid_height_meters: 500,
|
||||
grid_lod_1_max_height_km: 10,
|
||||
grid_lod_1_step_km: 1,
|
||||
grid_lod_2_max_height_km: 50,
|
||||
grid_lod_2_step_km: 5,
|
||||
grid_lod_3_step_km: 25,
|
||||
grid_radius_km: 40,
|
||||
grid_line_width: 4,
|
||||
grid_color: "#f5f5f5",
|
||||
grid_opacity: 12,
|
||||
grid_dots_enabled: true,
|
||||
grid_dots_size: 7,
|
||||
grid_dots_color: "#ffffff",
|
||||
grid_dots_opacity: 58,
|
||||
camera_animation_enabled: true,
|
||||
},
|
||||
map_height: 720,
|
||||
map_height: 694,
|
||||
inspector_open_sections: [],
|
||||
cache_intent: {
|
||||
enabled: true,
|
||||
@@ -45,7 +86,7 @@ function serverDocument(overrides = {}) {
|
||||
imagery: true,
|
||||
terrain: true,
|
||||
buildings: true,
|
||||
grid: false,
|
||||
grid: true,
|
||||
targets: true,
|
||||
},
|
||||
},
|
||||
@@ -53,9 +94,12 @@ function serverDocument(overrides = {}) {
|
||||
};
|
||||
}
|
||||
|
||||
test("map view starts without a fabricated global camera or subject", () => {
|
||||
test("map view starts from the canonical Foundry camera without a fabricated subject", () => {
|
||||
const document = mapView.defaultMapViewDocument();
|
||||
assert.equal(document.view.camera, null);
|
||||
assert.equal(document.view.camera.longitude, 37.618423);
|
||||
assert.equal(document.view.camera.latitude, 55.751244);
|
||||
assert.equal(document.view.visualSettings.imagerySaturation, 0);
|
||||
assert.equal(document.view.visualSettings.gridDotsOpacity, 58);
|
||||
assert.equal(document.view.selectedSubjectId, null);
|
||||
assert.equal(document.view.cacheIntent.enabled, true);
|
||||
assert.equal(document.view.cacheIntent.noOverwrite, true);
|
||||
|
||||
Reference in New Issue
Block a user