@openglobus/og 0.20.0 → 0.20.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/lib/js/Globe.js CHANGED
@@ -260,7 +260,10 @@ class Globe {
260
260
  }
261
261
  destroy() {
262
262
  this.detach();
263
+ this.planet.layers.forEach(l => l.remove());
264
+ this.planet.destroy();
263
265
  this.renderer.destroy();
266
+ window[this._instanceID] = null;
264
267
  }
265
268
  }
266
269
  Globe.__counter__ = 0;
@@ -3,7 +3,7 @@ export class OpenStreetMap extends XYZ {
3
3
  constructor(name, options = {}) {
4
4
  super(name || "OpenStreetMap", {
5
5
  iconSrc: "https://tile.openstreetmap.org/8/138/95.png",
6
- url: "http://tile.openstreetmap.org/{z}/{x}/{y}.png",
6
+ url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
7
7
  attribution: 'Data @ OpenStreetMap contributors, ODbL',
8
8
  isBaseLayer: true,
9
9
  maxNativeZoom: 19,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openglobus/og",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "[openglobus](https://www.openglobus.org/) is a javascript/typescript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers, and 3D objects. It uses the WebGL technology, open source, and completely free.",
5
5
  "directories": {
6
6
  "example": "./sandbox"
@@ -44,8 +44,8 @@
44
44
  "@rollup/plugin-terser": "^0.4.4",
45
45
  "@rollup/plugin-typescript": "^11.1.6",
46
46
  "@types/jest": "^29.5.12",
47
- "@typescript-eslint/eslint-plugin": "^7.10.0",
48
- "@typescript-eslint/parser": "^7.10.0",
47
+ "@typescript-eslint/eslint-plugin": "^7.14.1",
48
+ "@typescript-eslint/parser": "^7.14.1",
49
49
  "clean-jsdoc-theme": "^4.3.0",
50
50
  "eslint": "^8.57.0",
51
51
  "jest": "^29.7.0",
@@ -53,15 +53,15 @@
53
53
  "jest-environment-jsdom": "^29.7.0",
54
54
  "jsdoc": "^4.0.3",
55
55
  "jsdoc-babel": "^0.5.0",
56
- "lint-staged": "^15.2.4",
56
+ "lint-staged": "^15.2.7",
57
57
  "local-web-server": "^5.3.3",
58
- "postcss": "^8.4.38",
59
- "prettier": "^3.2.5",
58
+ "postcss": "^8.4.39",
59
+ "prettier": "^3.3.2",
60
60
  "rollup": "^4.18.0",
61
61
  "rollup-plugin-copy": "^3.5.0",
62
62
  "rollup-plugin-postcss": "^4.0.2",
63
- "ts-jest": "^29.1.3",
64
- "typescript": "^5.4.5"
63
+ "ts-jest": "^29.1.5",
64
+ "typescript": "^5.5.2"
65
65
  },
66
66
  "lint-staged": {
67
67
  "*.{js,ts}": [