@pirireis/webglobeplugins 0.15.34 → 0.15.35
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
|
@@ -145,7 +145,7 @@ class PointTracksPlugin {
|
|
|
145
145
|
*/
|
|
146
146
|
insertBulk(tracks) {
|
|
147
147
|
this._fillTracksToPointsMap(tracks);
|
|
148
|
-
const flattenedPoints = tracks.map(trackToFlatPoints, this._objectStoreExtraParametersFiltered).flat();
|
|
148
|
+
const flattenedPoints = tracks.map(track => trackToFlatPoints(track, this._objectStoreExtraParametersFiltered)).flat();
|
|
149
149
|
const currentLoad = this._bufferOrchestrator.length;
|
|
150
150
|
if (currentLoad + flattenedPoints.length >= 2147483647) {
|
|
151
151
|
throw new Error("Too many points, Point count cannot exceed 2147483647");
|