@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.
@@ -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.GetDist3D(item.long, item.lat, item.endLong, item.endLat);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.8.13",
3
+ "version": "0.8.14",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"