Skip to content

Commit

Permalink
add geometry filter to js examples because of v4 mixed geometries. (#464
Browse files Browse the repository at this point in the history
)
  • Loading branch information
bdon authored Sep 25, 2024
1 parent eb23c33 commit 60f3331
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/examples/maplibre.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
id: "water",
source: "example_source",
"source-layer": "water",
filter: ["==",["geometry-type"],"Polygon"],
type: "fill",
paint: {
"fill-color": "#80b1d3",
Expand Down
1 change: 1 addition & 0 deletions js/examples/maplibre_headers.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
id: "water",
source: "example_source",
"source-layer": "water",
filter: ["==",["geometry-type"],"Polygon"],
type: "fill",
paint: {
"fill-color": "#80b1d3",
Expand Down

0 comments on commit 60f3331

Please sign in to comment.