You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by le...@apache.org on 2023/06/15 11:16:06 UTC

[incubator-baremaps] 02/04: Hide hidden buildings

This is an automated email from the ASF dual-hosted git repository.

leonardcs pushed a commit to branch 695-display-natural=wood-layer-on-top-of-leisure=park-layer
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git

commit cf138cb8704847892be19d71e80de32a6a9f70a1
Author: Leonard <le...@gmail.com>
AuthorDate: Thu Jun 15 13:04:05 2023 +0200

    Hide hidden buildings
---
 basemap/layers/building/shape.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/basemap/layers/building/shape.js b/basemap/layers/building/shape.js
index ceea6ff2..4b81539a 100644
--- a/basemap/layers/building/shape.js
+++ b/basemap/layers/building/shape.js
@@ -14,6 +14,7 @@ export default {
     type: 'fill',
     source: 'baremaps',
     'source-layer': 'building',
+    filter: ['!=', ['get', 'building'], 'no'],
     layout: {
         visibility: 'visible',
     },