Skip to content

Commit

Permalink
fixed the indoor filters not being up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 4, 2024
1 parent 95cfebf commit 8069901
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions webclient/app/composables/indoorLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const indoorLayers: LayerSpecification[] = [
id: "indoor-areas",
type: "fill",
source: "indoor",
filter: ["==", "indoor", "area"],
filter: ["==", ["get", "indoor"], "area"],
paint: {
"fill-color": "#ff0084",
"fill-outline-color": "#000",
Expand All @@ -17,7 +17,7 @@ export const indoorLayers: LayerSpecification[] = [
id: "indoor-corridors",
type: "fill",
source: "indoor",
filter: ["==", "indoor", "corridor"],
filter: ["==", ["get", "indoor"], "corridor"],
paint: {
"fill-color": "#8dd1fc",
"fill-opacity": 0.5,
Expand All @@ -29,7 +29,7 @@ export const indoorLayers: LayerSpecification[] = [
id: "indoor-rooms",
type: "fill",
source: "indoor",
filter: ["==", "indoor", "room"],
filter: ["==", ["get", "indoor"], "room"],
paint: {
"fill-color": "#e0e0e0",
"fill-opacity": 0.5,
Expand All @@ -38,7 +38,7 @@ export const indoorLayers: LayerSpecification[] = [
},
},
{
filter: ["==", "indoor", "wall"],
filter: ["==", ["get", "indoor"], "wall"],
id: "indoor-walls",
type: "fill",
source: "indoor",
Expand All @@ -51,7 +51,7 @@ export const indoorLayers: LayerSpecification[] = [
id: "indoor-doors",
type: "fill",
source: "indoor",
filter: ["==", "indoor", "door"],
filter: ["==", ["get", "indoor"], "door"],
paint: {
"fill-color": "#00ffcc",
"fill-opacity": 0.5,
Expand All @@ -61,7 +61,7 @@ export const indoorLayers: LayerSpecification[] = [
id: "indoor-roomnames",
type: "symbol",
source: "indoor",
filter: ["==", "indoor", "area"],
filter: ["==", ["get", "indoor"], "area"],
layout: {
"text-field":
"eval(" +
Expand All @@ -81,7 +81,7 @@ export const indoorLayers: LayerSpecification[] = [
id: "indoor-areanames",
type: "symbol",
source: "indoor",
filter: ["==", "indoor", "area"],
filter: ["==", ["get", "indoor"], "area"],
layout: {
"text-field":
"eval(" +
Expand Down

0 comments on commit 8069901

Please sign in to comment.