根据属性值设置地图样式,表达式如下:
"line-color":[
"match",["get","color"],"null","#949494",["get","color"]
]
"text-color":[
"match",["get","color"],"null","hsl(0, 0%, 0%)",["get","color"]
],
根据属性值设置地图样式,表达式如下:
"line-color":[
"match",["get","color"],"null","#949494",["get","color"]
]
"text-color":[
"match",["get","color"],"null","hsl(0, 0%, 0%)",["get","color"]
],