WebGL从功能部件获取字符串值

是否可以从功能部件中获取字符串值?现在是一个数字值... 字符串值的使用例如是colorstring ...

[“ get”,“ attributeName”]为每个功能获取数字属性值

catheone 回答:WebGL从功能部件获取字符串值

在数字运算中只能使用数字值,但是[“ 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号。

本文链接:https://www.f2er.com/3066005.html

大家都在问