Skip to content

Commit 4566160

Browse files
aleksprogergithub-actions[bot]
authored andcommitted
Allow to detect active building for landmarks testing (internal-7570)
GitOrigin-RevId: cf4b3c2e7c7c73e116c154a58c09b9ceb476cec6
1 parent 67b17a7 commit 4566160

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

debug/indoor/indoor_style.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ const indoorLayers = [{
1212
"type": "clip",
1313
"id": "clip-area",
1414
"source": "indoor-source",
15-
"source-layer": "indoor_floor_metadata",
15+
"source-layer": "indoor_structure",
1616
"minzoom": 15.0,
17-
"filter": [
18-
"all",
19-
["==", ["get", "type"], "floor"],
20-
isSelectedFloorBase(),
21-
],
17+
"filter": isSelectedFloorBase(),
2218
"layout": {
2319
"clip-layer-types": ["model", "symbol"]
2420
}

src/render/indoor_parser.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ function parseData(
5353
const feature = sourceLayer.feature(index);
5454

5555
if (isValidBuildingFeature(feature)) {
56-
const {id: buildingId, center} = parseBuilding(feature);
57-
upsertBuilding(buildings, buildingId, center);
56+
const {id, center} = parseBuilding(feature);
57+
upsertBuilding(buildings, id, center);
58+
newActiveFloors.add(id);
5859
continue;
5960
}
6061

0 commit comments

Comments
 (0)