Skip to content

Commit

Permalink
v6.0.1 fix(Rectangle): ignore error when map unmounted. (#326) e0af081
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 2, 2024
1 parent fb690db commit a4401c0
Show file tree
Hide file tree
Showing 324 changed files with 523 additions and 523 deletions.
30 changes: 15 additions & 15 deletions amap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
exports["@uiw/react-amap"] = factory(require("react"), require("react-dom"));
else
root["@uiw/react-amap"] = factory(root["React"], root["ReactDOM"]);
})(self, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
})(self, (__WEBPACK_EXTERNAL_MODULE__741__, __WEBPACK_EXTERNAL_MODULE__20__) => {
return /******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({

/***/ 684:
/***/ 368:
/***/ (function(module) {

(function(m,p){ true?module.exports=p():0})(this,function(){function m(a){var b=[];a.AMapUI&&b.push(p(a.AMapUI));a.Loca&&b.push(r(a.Loca));return Promise.all(b)}function p(a){return new Promise(function(h,c){var f=[];if(a.plugins)for(var e=0;e<a.plugins.length;e+=1)-1==d.AMapUI.plugins.indexOf(a.plugins[e])&&f.push(a.plugins[e]);if(g.AMapUI===b.failed)c("\u524d\u6b21\u8bf7\u6c42 AMapUI \u5931\u8d25");
Expand All @@ -30,7 +30,7 @@ Loca:b.notload};n={AMap:[],AMapUI:[],Loca:[]}}}})

/***/ }),

/***/ 837:
/***/ 108:
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {

var __webpack_unused_export__;
Expand All @@ -43,35 +43,35 @@ var __webpack_unused_export__;
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var f=__webpack_require__(787),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
var f=__webpack_require__(741),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}__webpack_unused_export__=l;exports.jsx=q;exports.jsxs=q;


/***/ }),

/***/ 322:
/***/ 0:
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {



if (true) {
module.exports = __webpack_require__(837);
module.exports = __webpack_require__(108);
} else {}


/***/ }),

/***/ 787:
/***/ 741:
/***/ ((module) => {

module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
module.exports = __WEBPACK_EXTERNAL_MODULE__741__;

/***/ }),

/***/ 156:
/***/ 20:
/***/ ((module) => {

module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
module.exports = __WEBPACK_EXTERNAL_MODULE__20__;

/***/ })

Expand Down Expand Up @@ -234,12 +234,12 @@ function _objectWithoutPropertiesLoose(source, excluded) {
return target;
}
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(741);
var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
// EXTERNAL MODULE: ../../node_modules/@amap/amap-jsapi-loader/dist/index.js
var dist = __webpack_require__(684);
var dist = __webpack_require__(368);
// EXTERNAL MODULE: ../../node_modules/react/jsx-runtime.js
var jsx_runtime = __webpack_require__(322);
var jsx_runtime = __webpack_require__(0);
;// CONCATENATED MODULE: ../api-loader/esm/index.js

var _excluded = ["children"];
Expand Down Expand Up @@ -304,7 +304,7 @@ function _extends() {
return _extends.apply(this, arguments);
}
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(156);
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(20);
;// CONCATENATED MODULE: ../utils/esm/usePortal.js


Expand Down Expand Up @@ -2192,8 +2192,8 @@ var useRectangle = function useRectangle(props) {
// 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
map && map.removeLayer(instance);
}
setRectangle(undefined);
}
setRectangle(undefined);
};
}
}, [map]);
Expand Down
2 changes: 1 addition & 1 deletion amap.min.js

Large diffs are not rendered by default.

410 changes: 205 additions & 205 deletions asset-manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>React AMap - 高德地图 React 组件</title><meta name="keywords" content="react,component,amap,高德地图,地图,高德"/><meta name="description" content="这是一个基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。"/><link href="favicon.ico" rel="shortcut icon"><script defer="defer" src="./static/js/react-vendor.447ce5b0.js"></script><script defer="defer" src="./static/js/9759.d380b75b.js"></script><script defer="defer" src="./static/js/main.80e23f5d.js"></script><link href="./static/css/main.bcb671be.css" rel="stylesheet"></head><body><img src="logo.svg" style="display:none" alt="React amap logo - 高德地图 React 组件"/><div style="display:block" id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>React AMap - 高德地图 React 组件</title><meta name="keywords" content="react,component,amap,高德地图,地图,高德"/><meta name="description" content="这是一个基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。"/><link href="favicon.ico" rel="shortcut icon"><script defer="defer" src="./static/js/react-vendor.25b3cd36.js"></script><script defer="defer" src="./static/js/6728.ae38497c.js"></script><script defer="defer" src="./static/js/main.f312fe38.js"></script><link href="./static/css/main.bcb671be.css" rel="stylesheet"></head><body><img src="logo.svg" style="display:none" alt="React amap logo - 高德地图 React 组件"/><div style="display:block" id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/2141.4f00b736.chunk.css

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/2256.e1dde663.chunk.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/2456.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/2456.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/2488.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/2488.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/2496.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/2496.e1dde663.chunk.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/2720.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/2720.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/2896.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/2896.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/2925.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/2925.4f00b736.chunk.css.map

This file was deleted.

1 change: 0 additions & 1 deletion static/css/297.8be993ad.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/3180.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/3180.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/3188.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/3188.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/3258.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/3258.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/3464.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/3464.e1dde663.chunk.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/3691.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/3691.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/4308.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/4308.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/4340.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/4340.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/4709.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/4709.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/5052.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/5052.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/5315.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/5315.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/5470.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/5470.4f00b736.chunk.css.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/5656.b0443c48.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/5704.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/5704.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/5950.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/5950.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/6033.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6033.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/6296.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/6296.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/6303.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6303.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/6400.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/6400.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/6480.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6480.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/6491.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6491.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/6500.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/6500.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/6524.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6524.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/6548.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6548.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/6731.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/6731.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/6928.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/6928.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/7100.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/7100.e1dde663.chunk.css.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/7405.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/7405.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/7660.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/7660.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/8126.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/8126.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/8512.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/8512.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/css/88.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/88.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/9195.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/9195.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/9324.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/9324.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/9522.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/9522.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/9541.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/9541.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/css/956.e1dde663.chunk.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/css/956.e1dde663.chunk.css.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions static/css/9655.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/9655.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/9912.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/9912.4f00b736.chunk.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions static/css/9996.4f00b736.chunk.css

This file was deleted.

1 change: 0 additions & 1 deletion static/css/9996.4f00b736.chunk.css.map

This file was deleted.

2 changes: 2 additions & 0 deletions static/js/1000.83665cb9.chunk.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions static/js/1000.83665cb9.chunk.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions static/js/108.a0f73991.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/js/108.a0f73991.chunk.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit a4401c0

Please sign in to comment.