如何在MAPBOX数据表达中使用过滤器设置圆形彩色?
想要使用MAPBOX-GL-JS在地图上显示不同的彩色圆圈。
当前,可以使用以下方式显示不同的颜色
'circle-color': [
"case",
[">=", ["get", 'count'], 12],
"#000000",
"#ffffff"
]
,但需要执行多个滤镜以进行单个颜色。
需要类似的内容:
[">=", ["get", 'count'], 120], && ["<=", ["get", 'count'], 200],
如果以上结果为true
显示红色圆圈。
Want to show different colored circles on the map using mapbox-gl-js.
Currently it is possible to show different colors using:
'circle-color': [
"case",
[">=", ["get", 'count'], 12],
"#000000",
"#ffffff"
]
, but need to perform multiple filter to be performed for single color.
need something like:
[">=", ["get", 'count'], 120], && ["<=", ["get", 'count'], 200],
and if above results to true
show red color circle.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要
all
表达式:You want the
all
expression: