@pirireis/webglobeplugins 0.8.13 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bearing-line/plugin.js +1 -1
- package/package.json +1 -1
package/bearing-line/plugin.js
CHANGED
|
@@ -266,7 +266,7 @@ export default class BearingLinePlugin {
|
|
|
266
266
|
const endLat = radian(item.endLat)
|
|
267
267
|
const endLong = radian(item.endLong)
|
|
268
268
|
const altitude = (item.altitude ?? 0) / 1000;
|
|
269
|
-
const bigRadius = item.bigRadius ?? globe.Math.
|
|
269
|
+
const bigRadius = item.bigRadius ?? globe.Math.GetDist2D(item.long, item.lat, item.endLong, item.endLat);
|
|
270
270
|
const radius = item.radius !== undefined ? item.radius : bigRadius * 0.2;
|
|
271
271
|
const { long: bearingLong, lat: bearingLat } = globe.Math.FindPointByPolar(item.long, item.lat, bigRadius, item.bearingAngle)
|
|
272
272
|
const startAngle2d = calculateStartAngle(long, lat, endLong, endLat);
|