From 60f3331ca9d5cfa4fcdf1e076a3d3059aebb17bb Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Wed, 25 Sep 2024 22:49:06 +0800 Subject: [PATCH] add geometry filter to js examples because of v4 mixed geometries. (#464) --- js/examples/maplibre.html | 1 + js/examples/maplibre_headers.html | 1 + 2 files changed, 2 insertions(+) diff --git a/js/examples/maplibre.html b/js/examples/maplibre.html index 8347231..2ea74c4 100644 --- a/js/examples/maplibre.html +++ b/js/examples/maplibre.html @@ -43,6 +43,7 @@ id: "water", source: "example_source", "source-layer": "water", + filter: ["==",["geometry-type"],"Polygon"], type: "fill", paint: { "fill-color": "#80b1d3", diff --git a/js/examples/maplibre_headers.html b/js/examples/maplibre_headers.html index 6252dd5..a889f6f 100644 --- a/js/examples/maplibre_headers.html +++ b/js/examples/maplibre_headers.html @@ -55,6 +55,7 @@ id: "water", source: "example_source", "source-layer": "water", + filter: ["==",["geometry-type"],"Polygon"], type: "fill", paint: { "fill-color": "#80b1d3",