@maptalks/3dtiles 0.12.0 → 0.12.1

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/3dtiles v0.12.0
2
+ * @maptalks/3dtiles v0.12.1
3
3
  * LICENSE : UNLICENSED
4
4
  * (c) 2016-2022 maptalks.com
5
5
  */
@@ -3538,6 +3538,7 @@
3538
3538
  requestImage({url: t}, e) {
3539
3539
  const n = new Image;
3540
3540
  n.onload = () => {
3541
+ if (!this.isActive()) return;
3541
3542
  if (!Bt) return void e(new Error("There is no canvas to draw image!"));
3542
3543
  const t = function(t) {
3543
3544
  if (Ct(t.width) && Ct(t.height)) return t;
@@ -5928,5 +5929,5 @@
5928
5929
  t.Geo3DTransform = re, Object.defineProperty(t, "t", {
5929
5930
  value: !0
5930
5931
  });
5931
- })), i.Map.VERSION, o.GroupGLLayer.VERSION, "undefined" != typeof console && console.log("@maptalks/3dtiles v0.12.0");
5932
+ })), i.Map.VERSION, o.GroupGLLayer.VERSION, "undefined" != typeof console && console.log("@maptalks/3dtiles v0.12.1");
5932
5933
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptalks/3dtiles",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "3d tiles layer for maptalks",
5
5
  "main": "dist/maptalks.3dtiles.js",
6
6
  "module": "dist/maptalks.3dtiles.es.js",