@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.15.25",
3
+ "version": "0.15.26",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -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);