feat(foundry): render geozones as independent map layer
This commit is contained in:
@@ -10,8 +10,9 @@ const catalogStyles = await readFile(new URL("../apps/catalog/src/styles.css", i
|
||||
test("canonical moving-object profile is provider-neutral and internally consistent", () => {
|
||||
assert.equal(registry.schemaVersion, "nodedc.map-presentation-profiles/v1");
|
||||
const profiles = normalizeMapPresentationProfiles(registry.profiles);
|
||||
assert.equal(profiles.length, 1);
|
||||
const profile = profiles[0];
|
||||
assert.equal(profiles.length, 2);
|
||||
const profile = profiles.find((item) => item.id === "map.moving-object.operational.default");
|
||||
assert.ok(profile);
|
||||
assert.equal(profile.id, "map.moving-object.operational.default");
|
||||
assert.deepEqual(profile.semanticTypes, ["map.moving_object"]);
|
||||
assert.equal(profile.target.variant, "elevated-spike");
|
||||
@@ -37,6 +38,18 @@ test("canonical moving-object profile is provider-neutral and internally consist
|
||||
assert.equal(JSON.stringify(profile).includes("Неизвестно"), false);
|
||||
});
|
||||
|
||||
test("canonical zone profile renders provider-neutral surfaces", () => {
|
||||
const profiles = normalizeMapPresentationProfiles(registry.profiles);
|
||||
const profile = profiles.find((item) => item.id === "map.zone.operational.default");
|
||||
assert.ok(profile);
|
||||
assert.deepEqual(profile.semanticTypes, ["map.zone"]);
|
||||
assert.equal(profile.target.variant, "surface-fill");
|
||||
assert.equal(profile.label.mode, "attributes");
|
||||
assert.deepEqual(profile.facets.map((facet) => facet.field), ["geometry_kind", "source_kind"]);
|
||||
assert.equal(JSON.stringify(profile).toLowerCase().includes("gelios"), false);
|
||||
assert.equal(JSON.stringify(profile).includes("http"), false);
|
||||
});
|
||||
|
||||
test("fleet filter window is one compact vertical list without group rows or All", () => {
|
||||
assert.match(mapFixtureSource, /catalog-map-fixture__target-filter-list/);
|
||||
assert.doesNotMatch(mapFixtureSource, /catalog-map-fixture__target-profile/);
|
||||
|
||||
Reference in New Issue
Block a user