Mapbox样式过滤器:未设置属性

问题描述 投票:0回答:1

我不确定我是否只是盲人,但是。在Mapbox中,您可以过滤数据集。所以我要显示的是给定类的所有行,这些行的某些属性未设置。我看到ExistsIsIs Not的选项。但是没有Does not exist,对吗?有没有定义的方法?还是在事先导出数据集时需要这样做?

enter image description here

mapbox mapbox-gl
1个回答
0
投票

您将需要将表达式包装在logical negation operator中:

["!",{{your expression here}}]

在Mapbox Studio中,创建过滤器后,您可以从用户界面编辑器切换到窗格底部的JSON编辑器:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.