mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
inspector: only apply mask settings to fill layer [#49]
This commit is contained in:
@@ -180,7 +180,7 @@ const vectorStyle = async (file: PMTiles): Promise<any> => {
|
||||
}
|
||||
|
||||
for (let layer of layers) {
|
||||
if (layer["source-layer"] == "mask") {
|
||||
if (layer["source-layer"] === "mask" && layer['type'] === 'fill') {
|
||||
layer.paint["fill-color"] = "black";
|
||||
layer.paint["fill-opacity"] = 0.8;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user