@pirireis/webglobeplugins 0.15.25 → 0.15.26
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 +5 -0
package/package.json
CHANGED
package/point-tracks/plugin.js
CHANGED
|
@@ -168,6 +168,11 @@ class PointTracksPlugin {
|
|
|
168
168
|
*/
|
|
169
169
|
deleteTrack(trackID) {
|
|
170
170
|
const pointList = this._tracksToPointsMap.get(trackID);
|
|
171
|
+
if (!pointList) {
|
|
172
|
+
console.warn(`Track with ID ${trackID} does not exist.`);
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
;
|
|
171
176
|
const points = Array.from(pointList);
|
|
172
177
|
const { _bufferOrchestrator, _bufferManagersMap } = this;
|
|
173
178
|
_bufferOrchestrator.deleteBulk(points.map((pointID) => keyMethod(trackID, pointID)), _bufferManagersMap);
|