Skip to content

Commit

Permalink
Merge pull request #1019 from ZeLonewolf/zlw-differentiate-park-class
Browse files Browse the repository at this point in the history
Omit indigenous lands from park rendering
  • Loading branch information
ZeLonewolf authored Dec 23, 2023
2 parents 2a585eb + 9642b23 commit e3fd735
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layer/park.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
import * as Label from "../constants/label.js";
import * as Color from "../constants/color.js";

const parkLayerFilter = ["!=", ["get", "class"], "aboriginal_lands"];

export const fill = {
id: "protected-area_fill",
filter: parkLayerFilter,
type: "fill",
paint: {
"fill-color": Color.parkFill,
Expand All @@ -15,6 +18,7 @@ export const fill = {

export const outline = {
id: "protected-area_outline",
filter: parkLayerFilter,
type: "line",
paint: {
"line-color": Color.parkOutline,
Expand All @@ -27,7 +31,7 @@ export const outline = {
export const label = {
id: "protected-area_label",
type: "symbol",
filter: ["has", "rank"],
filter: ["all", ["has", "rank"], parkLayerFilter],
paint: {
"text-color": Color.parkLabel,
"text-halo-blur": 1,
Expand Down

0 comments on commit e3fd735

Please sign in to comment.