在平面座標系3857 下 使用 ol.geom.Circle(center,radiu) 繪製的圓會比實際測量小一圈,
這種情況下需要指定地球參數來獲得準確的圓形:
ol.geom.Polygon.circular(sphere, center, radius, opt_n)
其中sphere 爲橢球半徑 4326 座標系的sphere 爲 ol.Sphere(6378137)
center 爲中心點經緯度座標
radius 爲半徑距離,單位米
opt_n 爲割圓步長默認32
let circle = new ol.geom.Polygon.circular(new ol.Sphere(6378137),[110.1,35.2],500,64)