leaflet concentric circles (angular 2)

喜欢而已 提交于 2020-03-05 04:08:06

问题


i need to draw to map 5 concentric circles, like a donut, with event handler on "mouseover" each polygon. i can't do it by circle() method, so i think do it by GeoJSON how can i do it? i have this, but this doesn't work try to learn this method to further implement

    let mp = {
  "type": "Feature",
  "geometry": {
    "type": "Point",
    "coordinates": [
      [
        [
          [43.30467224121094, 56.696589064251185],
        ],

      ]
    ]
  },
  "properties": {
    'radius': 10000,
    'style': {
      color: "black",
      opacity: 1,
      fillColor: "red",
      fillOpacity: 1
    },
  }
};

L.GeoJSON(mp, {
  style: function(feature) {
    return feature.properties.style
  }
}).addTo(this.MAP);

来源:https://stackoverflow.com/questions/49032739/leaflet-concentric-circles-angular-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!