是否可以从功能部件中获取字符串值?现在是一个数字值... 字符串值的使用例如是colorstring ...
[“ get”,“ attributeName”]为每个功能获取数字属性值
是否可以从功能部件中获取字符串值?现在是一个数字值... 字符串值的使用例如是colorstring ...
[“ get”,“ attributeName”]为每个功能获取数字属性值
在数字运算中只能使用数字值,但是[“ get”,“ attributeName”]应该返回一个字符串作为字符串值
例如在此示例https://openlayers.org/en/latest/examples/webgl-points-layer.html
如果您编辑
"symbol": {
"symbolType": "circle","size": [
"interpolate",[
"linear"
],[
"get","population"
],40000,8,2000000,28
],
到
"symbol": {
"symbolType": "circle","size": [
"match","country"
],"br",
巴西所有城市的圈子将是8号,其他地方的圈子将是28号。