suerprisePlus
2024-06-21 fde8e3bedaf5f883f38c3a0ec33d3c6a8748d1c9
1
2
3
4
5
6
7
8
9
10
11
12
13
import * as turf from "@turf/turf";
const mapConfig = {
  flyToImageryLayer(res) {
    earthCtrl.userScene.flyTo(res);
  },
  setPointToCrical(lon, lat, distance) {
    const radius = distance ? distance : 100;
    var point = turf.point([lon, lat]);
    var buffered = turf.buffer(point, radius, { units: "miles", steps: 64 });
    return buffered;
  }
};
export default mapConfig;