我正在尝试在LeafLet上构建一个由CircleMarkers构成的图层,但是我很难尝试给Radius属性一个正确的含义,因为它应该用像素表示。
我需要构建半径为500英尺的圆形标记,那么我如何表示,因为CircleMarker属性以像素为单位?
谢谢!
GeoJsonStyle nodeFenceStyle = new GeoJsonStyle();
nodeFenceStyle.weight = 2;
nodeFenceStyle.radius = *500feet*;
//nodeFenceStyle.opacity = 0.65
nodeFenceStyle.color = "#FFA500";
nodeFenceStyle.fillColor = nodeFenceStyle.color;
nodeFenceStyle.fillOpacity = 0.65;