当我使用draw插件在传单地图上手动绘制/编辑圆时,即使我具有以下设置,其半径应以 miles < / strong>。
我在做什么错?我该怎么做才能使半径显示为英里?
map.addControl(new L.Control.Draw({
position: 'topright',
edit: {
featureGroup: drawnItems,
circle: {
metric: true,
feet: false
}
},
draw: {
circle: {
metric: true,
feet: false
}
}
}));
答案 0 :(得分:0)
您需要设置指标:错误和英尺:错误
map.addControl(new L.Control.Draw({
position: 'topright',
edit: {
featureGroup: drawnItems,
circle: {
metric: false,
feet: false
}
},
draw: {
circle: {
metric: false,
feet: false
}
}
}));