更新时间:2023-02-02 11:14:27
您可以使用ol.proj.METERS_PER_UNIT
表获取以米为单位的半径:
You can use the ol.proj.METERS_PER_UNIT
table to get the radius in meters:
var units = map.getView().getProjection().getUnits();
var radiusM = circle.getRadius() * ol.proj.METERS_PER_UNIT[units];