如何以英尺为单位设置leaftlet CircleMarker半径?

时间:2018-02-13 18:52:26

标签: styles leaflet geojson marker

我正在尝试在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;

0 个答案:

没有答案