如何在geojson中更改标记颜色

时间:2017-09-18 15:26:40

标签: json styles geojson

我想改变geojson中的标记颜色。但是,此代码无法按预期工作。

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [-2.5555, 53.6666]
      },
      "style": {
          "color": "red",
          "weight": 5,
          "opacity": 0.65
      },
      "properties": {}
    }
  ]
}

0 个答案:

没有答案