@pirireis/webglobeplugins 0.8.1 → 0.8.2
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/package.json +1 -1
- package/point-tracks/plugin.js +1 -1
package/package.json
CHANGED
package/point-tracks/plugin.js
CHANGED
|
@@ -60,7 +60,7 @@ class PointTracksPlugin {
|
|
|
60
60
|
[
|
|
61
61
|
["pos3D", {
|
|
62
62
|
bufferManager: new BufferManager(gl, 3, { bufferType, initialCapacity }),
|
|
63
|
-
adaptor: (item) => new Float32Array(wgs84ToCartesian3d(item.long, item.lat, item.height))
|
|
63
|
+
adaptor: (item) => new Float32Array(wgs84ToCartesian3d(item.long, item.lat, item.height / 1000)) // height is in meters
|
|
64
64
|
}],
|
|
65
65
|
["pos2D", {
|
|
66
66
|
bufferManager: new BufferManager(gl, 2, { bufferType, initialCapacity }),
|