mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
add geometry filter to js examples because of v4 mixed geometries. (#464)
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
id: "water",
|
id: "water",
|
||||||
source: "example_source",
|
source: "example_source",
|
||||||
"source-layer": "water",
|
"source-layer": "water",
|
||||||
|
filter: ["==",["geometry-type"],"Polygon"],
|
||||||
type: "fill",
|
type: "fill",
|
||||||
paint: {
|
paint: {
|
||||||
"fill-color": "#80b1d3",
|
"fill-color": "#80b1d3",
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
id: "water",
|
id: "water",
|
||||||
source: "example_source",
|
source: "example_source",
|
||||||
"source-layer": "water",
|
"source-layer": "water",
|
||||||
|
filter: ["==",["geometry-type"],"Polygon"],
|
||||||
type: "fill",
|
type: "fill",
|
||||||
paint: {
|
paint: {
|
||||||
"fill-color": "#80b1d3",
|
"fill-color": "#80b1d3",
|
||||||
|
|||||||
Reference in New Issue
Block a user