@panoramax/web-viewer 3.2.2-develop-ecfae3f0 → 3.2.2-develop-34e6d6f5

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": "@panoramax/web-viewer",
3
- "version": "3.2.2-develop-ecfae3f0",
3
+ "version": "3.2.2-develop-34e6d6f5",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
package/src/Viewer.js CHANGED
@@ -286,7 +286,9 @@ class Viewer extends CoreView {
286
286
  delete this._widgets;
287
287
  this._hash.destroy();
288
288
  delete this._hash;
289
- this.map.destroy();
289
+ if (this.map) {
290
+ this.map.destroy();
291
+ }
290
292
  delete this.map;
291
293
  delete this._mapFilters;
292
294
  this.psv.destroy();