Skip to content

Commit

Permalink
v5.0.16 fix(Polygon): fix unmount issue. (#333) d61ca8d
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 21, 2023
1 parent 9c1ff64 commit 35d0e0f
Show file tree
Hide file tree
Showing 134 changed files with 175 additions and 176 deletions.
3 changes: 1 addition & 2 deletions amap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1835,9 +1835,8 @@ var usePolygon = function usePolygon(props) {
// // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API
// map && map.removeLayer(instance);
// }
setPolygon(undefined);
}

setPolygon(undefined);
};
}, [map, polygon]);
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
Expand Down
2 changes: 1 addition & 1 deletion amap.min.js

Large diffs are not rendered by default.

136 changes: 68 additions & 68 deletions asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/react-amap/static/css/main.bcb671be.css",
"main.js": "/react-amap/static/js/main.6b185c35.js",
"main.js": "/react-amap/static/js/main.caef4e2f.js",
"static/css/159.4f00b736.chunk.css": "/react-amap/static/css/159.4f00b736.chunk.css",
"static/js/159.6bbc60a7.chunk.js": "/react-amap/static/js/159.6bbc60a7.chunk.js",
"static/css/5950.4f00b736.chunk.css": "/react-amap/static/css/5950.4f00b736.chunk.css",
Expand Down Expand Up @@ -64,48 +64,48 @@
"static/js/3258.6403f32e.chunk.js": "/react-amap/static/js/3258.6403f32e.chunk.js",
"static/css/6033.4f00b736.chunk.css": "/react-amap/static/css/6033.4f00b736.chunk.css",
"static/js/6033.9c943f3c.chunk.js": "/react-amap/static/js/6033.9c943f3c.chunk.js",
"static/js/4702.f3fdef4c.chunk.js": "/react-amap/static/js/4702.f3fdef4c.chunk.js",
"static/js/4702.997923ca.chunk.js": "/react-amap/static/js/4702.997923ca.chunk.js",
"static/js/837.660bfa2b.chunk.js": "/react-amap/static/js/837.660bfa2b.chunk.js",
"static/js/3727.50ca84d7.chunk.js": "/react-amap/static/js/3727.50ca84d7.chunk.js",
"static/js/2156.3489dd44.chunk.js": "/react-amap/static/js/2156.3489dd44.chunk.js",
"static/js/5828.caf9ad20.chunk.js": "/react-amap/static/js/5828.caf9ad20.chunk.js",
"static/js/5531.72a6859e.chunk.js": "/react-amap/static/js/5531.72a6859e.chunk.js",
"static/js/9345.133c6bf3.chunk.js": "/react-amap/static/js/9345.133c6bf3.chunk.js",
"static/js/7359.cf32c62d.chunk.js": "/react-amap/static/js/7359.cf32c62d.chunk.js",
"static/js/1259.354f41bd.chunk.js": "/react-amap/static/js/1259.354f41bd.chunk.js",
"static/js/9603.f0c14af0.chunk.js": "/react-amap/static/js/9603.f0c14af0.chunk.js",
"static/js/6220.e8bc58d6.chunk.js": "/react-amap/static/js/6220.e8bc58d6.chunk.js",
"static/js/2528.0fbf4d49.chunk.js": "/react-amap/static/js/2528.0fbf4d49.chunk.js",
"static/js/6090.a2c776f8.chunk.js": "/react-amap/static/js/6090.a2c776f8.chunk.js",
"static/js/882.7861efd7.chunk.js": "/react-amap/static/js/882.7861efd7.chunk.js",
"static/js/2196.0023052d.chunk.js": "/react-amap/static/js/2196.0023052d.chunk.js",
"static/js/3559.8b94d75a.chunk.js": "/react-amap/static/js/3559.8b94d75a.chunk.js",
"static/js/1285.3442a796.chunk.js": "/react-amap/static/js/1285.3442a796.chunk.js",
"static/js/9973.fad40062.chunk.js": "/react-amap/static/js/9973.fad40062.chunk.js",
"static/js/2673.423d022c.chunk.js": "/react-amap/static/js/2673.423d022c.chunk.js",
"static/js/3025.5ae22c7a.chunk.js": "/react-amap/static/js/3025.5ae22c7a.chunk.js",
"static/js/4930.6bc8010b.chunk.js": "/react-amap/static/js/4930.6bc8010b.chunk.js",
"static/js/5409.5d4f7cc3.chunk.js": "/react-amap/static/js/5409.5d4f7cc3.chunk.js",
"static/js/96.c76b3417.chunk.js": "/react-amap/static/js/96.c76b3417.chunk.js",
"static/js/4753.6805e4b1.chunk.js": "/react-amap/static/js/4753.6805e4b1.chunk.js",
"static/js/2166.199643d0.chunk.js": "/react-amap/static/js/2166.199643d0.chunk.js",
"static/js/643.db91302e.chunk.js": "/react-amap/static/js/643.db91302e.chunk.js",
"static/js/2577.9dcb776e.chunk.js": "/react-amap/static/js/2577.9dcb776e.chunk.js",
"static/js/5516.1925acdf.chunk.js": "/react-amap/static/js/5516.1925acdf.chunk.js",
"static/js/4290.b47d8b35.chunk.js": "/react-amap/static/js/4290.b47d8b35.chunk.js",
"static/js/9467.9233d298.chunk.js": "/react-amap/static/js/9467.9233d298.chunk.js",
"static/js/3727.2fc0afa1.chunk.js": "/react-amap/static/js/3727.2fc0afa1.chunk.js",
"static/js/2156.8f777de7.chunk.js": "/react-amap/static/js/2156.8f777de7.chunk.js",
"static/js/5828.82087d93.chunk.js": "/react-amap/static/js/5828.82087d93.chunk.js",
"static/js/5531.eb9861bc.chunk.js": "/react-amap/static/js/5531.eb9861bc.chunk.js",
"static/js/9345.e73902e6.chunk.js": "/react-amap/static/js/9345.e73902e6.chunk.js",
"static/js/7359.b0cff2b9.chunk.js": "/react-amap/static/js/7359.b0cff2b9.chunk.js",
"static/js/1259.4376a8d0.chunk.js": "/react-amap/static/js/1259.4376a8d0.chunk.js",
"static/js/9603.47424e95.chunk.js": "/react-amap/static/js/9603.47424e95.chunk.js",
"static/js/6220.7589356d.chunk.js": "/react-amap/static/js/6220.7589356d.chunk.js",
"static/js/2528.a2cc7560.chunk.js": "/react-amap/static/js/2528.a2cc7560.chunk.js",
"static/js/6090.48408b51.chunk.js": "/react-amap/static/js/6090.48408b51.chunk.js",
"static/js/882.5c84727a.chunk.js": "/react-amap/static/js/882.5c84727a.chunk.js",
"static/js/2196.35e30966.chunk.js": "/react-amap/static/js/2196.35e30966.chunk.js",
"static/js/3559.05e43785.chunk.js": "/react-amap/static/js/3559.05e43785.chunk.js",
"static/js/1285.70b74f85.chunk.js": "/react-amap/static/js/1285.70b74f85.chunk.js",
"static/js/9973.1d0d2677.chunk.js": "/react-amap/static/js/9973.1d0d2677.chunk.js",
"static/js/2673.3598cf96.chunk.js": "/react-amap/static/js/2673.3598cf96.chunk.js",
"static/js/3025.d2daed29.chunk.js": "/react-amap/static/js/3025.d2daed29.chunk.js",
"static/js/4930.529d29aa.chunk.js": "/react-amap/static/js/4930.529d29aa.chunk.js",
"static/js/5409.f8b7a84e.chunk.js": "/react-amap/static/js/5409.f8b7a84e.chunk.js",
"static/js/96.48d8383e.chunk.js": "/react-amap/static/js/96.48d8383e.chunk.js",
"static/js/4753.ec14ebde.chunk.js": "/react-amap/static/js/4753.ec14ebde.chunk.js",
"static/js/2166.75cb9a1d.chunk.js": "/react-amap/static/js/2166.75cb9a1d.chunk.js",
"static/js/643.56c1c2c0.chunk.js": "/react-amap/static/js/643.56c1c2c0.chunk.js",
"static/js/2577.bc8c19c1.chunk.js": "/react-amap/static/js/2577.bc8c19c1.chunk.js",
"static/js/5516.f24f38fa.chunk.js": "/react-amap/static/js/5516.f24f38fa.chunk.js",
"static/js/4290.3b61806d.chunk.js": "/react-amap/static/js/4290.3b61806d.chunk.js",
"static/js/9467.8aa7ac2f.chunk.js": "/react-amap/static/js/9467.8aa7ac2f.chunk.js",
"static/js/2097.25f37e7f.chunk.js": "/react-amap/static/js/2097.25f37e7f.chunk.js",
"refractor-prismjs-vendor.js": "/react-amap/static/js/refractor-prismjs-vendor.653ee587.chunk.js",
"parse5-vendor.js": "/react-amap/static/js/parse5-vendor.ffd5b4fb.chunk.js",
"micromark-vendor.js": "/react-amap/static/js/micromark-vendor.73df6cf1.chunk.js",
"react-vendor.js": "/react-amap/static/js/react-vendor.69b94a96.js",
"static/js/739.01c97513.chunk.js": "/react-amap/static/js/739.01c97513.chunk.js",
"static/js/5933.9009b32c.js": "/react-amap/static/js/5933.9009b32c.js",
"static/js/5775.b9c3ffc4.chunk.js": "/react-amap/static/js/5775.b9c3ffc4.chunk.js",
"static/js/739.ecc78f6e.chunk.js": "/react-amap/static/js/739.ecc78f6e.chunk.js",
"static/js/5933.7d12d5ab.js": "/react-amap/static/js/5933.7d12d5ab.js",
"static/js/5775.4ce294d7.chunk.js": "/react-amap/static/js/5775.4ce294d7.chunk.js",
"static/media/logo.svg": "/react-amap/static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg",
"index.html": "/react-amap/index.html",
"main.bcb671be.css.map": "/react-amap/static/css/main.bcb671be.css.map",
"main.6b185c35.js.map": "/react-amap/static/js/main.6b185c35.js.map",
"main.caef4e2f.js.map": "/react-amap/static/js/main.caef4e2f.js.map",
"159.4f00b736.chunk.css.map": "/react-amap/static/css/159.4f00b736.chunk.css.map",
"159.6bbc60a7.chunk.js.map": "/react-amap/static/js/159.6bbc60a7.chunk.js.map",
"5950.4f00b736.chunk.css.map": "/react-amap/static/css/5950.4f00b736.chunk.css.map",
Expand Down Expand Up @@ -168,49 +168,49 @@
"3258.6403f32e.chunk.js.map": "/react-amap/static/js/3258.6403f32e.chunk.js.map",
"6033.4f00b736.chunk.css.map": "/react-amap/static/css/6033.4f00b736.chunk.css.map",
"6033.9c943f3c.chunk.js.map": "/react-amap/static/js/6033.9c943f3c.chunk.js.map",
"4702.f3fdef4c.chunk.js.map": "/react-amap/static/js/4702.f3fdef4c.chunk.js.map",
"4702.997923ca.chunk.js.map": "/react-amap/static/js/4702.997923ca.chunk.js.map",
"837.660bfa2b.chunk.js.map": "/react-amap/static/js/837.660bfa2b.chunk.js.map",
"3727.50ca84d7.chunk.js.map": "/react-amap/static/js/3727.50ca84d7.chunk.js.map",
"2156.3489dd44.chunk.js.map": "/react-amap/static/js/2156.3489dd44.chunk.js.map",
"5828.caf9ad20.chunk.js.map": "/react-amap/static/js/5828.caf9ad20.chunk.js.map",
"5531.72a6859e.chunk.js.map": "/react-amap/static/js/5531.72a6859e.chunk.js.map",
"9345.133c6bf3.chunk.js.map": "/react-amap/static/js/9345.133c6bf3.chunk.js.map",
"7359.cf32c62d.chunk.js.map": "/react-amap/static/js/7359.cf32c62d.chunk.js.map",
"1259.354f41bd.chunk.js.map": "/react-amap/static/js/1259.354f41bd.chunk.js.map",
"9603.f0c14af0.chunk.js.map": "/react-amap/static/js/9603.f0c14af0.chunk.js.map",
"6220.e8bc58d6.chunk.js.map": "/react-amap/static/js/6220.e8bc58d6.chunk.js.map",
"2528.0fbf4d49.chunk.js.map": "/react-amap/static/js/2528.0fbf4d49.chunk.js.map",
"6090.a2c776f8.chunk.js.map": "/react-amap/static/js/6090.a2c776f8.chunk.js.map",
"882.7861efd7.chunk.js.map": "/react-amap/static/js/882.7861efd7.chunk.js.map",
"2196.0023052d.chunk.js.map": "/react-amap/static/js/2196.0023052d.chunk.js.map",
"3559.8b94d75a.chunk.js.map": "/react-amap/static/js/3559.8b94d75a.chunk.js.map",
"1285.3442a796.chunk.js.map": "/react-amap/static/js/1285.3442a796.chunk.js.map",
"9973.fad40062.chunk.js.map": "/react-amap/static/js/9973.fad40062.chunk.js.map",
"2673.423d022c.chunk.js.map": "/react-amap/static/js/2673.423d022c.chunk.js.map",
"3025.5ae22c7a.chunk.js.map": "/react-amap/static/js/3025.5ae22c7a.chunk.js.map",
"4930.6bc8010b.chunk.js.map": "/react-amap/static/js/4930.6bc8010b.chunk.js.map",
"5409.5d4f7cc3.chunk.js.map": "/react-amap/static/js/5409.5d4f7cc3.chunk.js.map",
"96.c76b3417.chunk.js.map": "/react-amap/static/js/96.c76b3417.chunk.js.map",
"4753.6805e4b1.chunk.js.map": "/react-amap/static/js/4753.6805e4b1.chunk.js.map",
"2166.199643d0.chunk.js.map": "/react-amap/static/js/2166.199643d0.chunk.js.map",
"643.db91302e.chunk.js.map": "/react-amap/static/js/643.db91302e.chunk.js.map",
"2577.9dcb776e.chunk.js.map": "/react-amap/static/js/2577.9dcb776e.chunk.js.map",
"5516.1925acdf.chunk.js.map": "/react-amap/static/js/5516.1925acdf.chunk.js.map",
"4290.b47d8b35.chunk.js.map": "/react-amap/static/js/4290.b47d8b35.chunk.js.map",
"9467.9233d298.chunk.js.map": "/react-amap/static/js/9467.9233d298.chunk.js.map",
"3727.2fc0afa1.chunk.js.map": "/react-amap/static/js/3727.2fc0afa1.chunk.js.map",
"2156.8f777de7.chunk.js.map": "/react-amap/static/js/2156.8f777de7.chunk.js.map",
"5828.82087d93.chunk.js.map": "/react-amap/static/js/5828.82087d93.chunk.js.map",
"5531.eb9861bc.chunk.js.map": "/react-amap/static/js/5531.eb9861bc.chunk.js.map",
"9345.e73902e6.chunk.js.map": "/react-amap/static/js/9345.e73902e6.chunk.js.map",
"7359.b0cff2b9.chunk.js.map": "/react-amap/static/js/7359.b0cff2b9.chunk.js.map",
"1259.4376a8d0.chunk.js.map": "/react-amap/static/js/1259.4376a8d0.chunk.js.map",
"9603.47424e95.chunk.js.map": "/react-amap/static/js/9603.47424e95.chunk.js.map",
"6220.7589356d.chunk.js.map": "/react-amap/static/js/6220.7589356d.chunk.js.map",
"2528.a2cc7560.chunk.js.map": "/react-amap/static/js/2528.a2cc7560.chunk.js.map",
"6090.48408b51.chunk.js.map": "/react-amap/static/js/6090.48408b51.chunk.js.map",
"882.5c84727a.chunk.js.map": "/react-amap/static/js/882.5c84727a.chunk.js.map",
"2196.35e30966.chunk.js.map": "/react-amap/static/js/2196.35e30966.chunk.js.map",
"3559.05e43785.chunk.js.map": "/react-amap/static/js/3559.05e43785.chunk.js.map",
"1285.70b74f85.chunk.js.map": "/react-amap/static/js/1285.70b74f85.chunk.js.map",
"9973.1d0d2677.chunk.js.map": "/react-amap/static/js/9973.1d0d2677.chunk.js.map",
"2673.3598cf96.chunk.js.map": "/react-amap/static/js/2673.3598cf96.chunk.js.map",
"3025.d2daed29.chunk.js.map": "/react-amap/static/js/3025.d2daed29.chunk.js.map",
"4930.529d29aa.chunk.js.map": "/react-amap/static/js/4930.529d29aa.chunk.js.map",
"5409.f8b7a84e.chunk.js.map": "/react-amap/static/js/5409.f8b7a84e.chunk.js.map",
"96.48d8383e.chunk.js.map": "/react-amap/static/js/96.48d8383e.chunk.js.map",
"4753.ec14ebde.chunk.js.map": "/react-amap/static/js/4753.ec14ebde.chunk.js.map",
"2166.75cb9a1d.chunk.js.map": "/react-amap/static/js/2166.75cb9a1d.chunk.js.map",
"643.56c1c2c0.chunk.js.map": "/react-amap/static/js/643.56c1c2c0.chunk.js.map",
"2577.bc8c19c1.chunk.js.map": "/react-amap/static/js/2577.bc8c19c1.chunk.js.map",
"5516.f24f38fa.chunk.js.map": "/react-amap/static/js/5516.f24f38fa.chunk.js.map",
"4290.3b61806d.chunk.js.map": "/react-amap/static/js/4290.3b61806d.chunk.js.map",
"9467.8aa7ac2f.chunk.js.map": "/react-amap/static/js/9467.8aa7ac2f.chunk.js.map",
"2097.25f37e7f.chunk.js.map": "/react-amap/static/js/2097.25f37e7f.chunk.js.map",
"refractor-prismjs-vendor.653ee587.chunk.js.map": "/react-amap/static/js/refractor-prismjs-vendor.653ee587.chunk.js.map",
"parse5-vendor.ffd5b4fb.chunk.js.map": "/react-amap/static/js/parse5-vendor.ffd5b4fb.chunk.js.map",
"micromark-vendor.73df6cf1.chunk.js.map": "/react-amap/static/js/micromark-vendor.73df6cf1.chunk.js.map",
"react-vendor.69b94a96.js.map": "/react-amap/static/js/react-vendor.69b94a96.js.map",
"739.01c97513.chunk.js.map": "/react-amap/static/js/739.01c97513.chunk.js.map",
"5933.9009b32c.js.map": "/react-amap/static/js/5933.9009b32c.js.map",
"5775.b9c3ffc4.chunk.js.map": "/react-amap/static/js/5775.b9c3ffc4.chunk.js.map"
"739.ecc78f6e.chunk.js.map": "/react-amap/static/js/739.ecc78f6e.chunk.js.map",
"5933.7d12d5ab.js.map": "/react-amap/static/js/5933.7d12d5ab.js.map",
"5775.4ce294d7.chunk.js.map": "/react-amap/static/js/5775.4ce294d7.chunk.js.map"
},
"entrypoints": [
"static/js/react-vendor.69b94a96.js",
"static/js/5933.9009b32c.js",
"static/js/5933.7d12d5ab.js",
"static/css/main.bcb671be.css",
"static/js/main.6b185c35.js"
"static/js/main.caef4e2f.js"
]
}
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.69b94a96.js"></script><script defer="defer" src="./static/js/5933.9009b32c.js"></script><script defer="defer" src="./static/js/main.6b185c35.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.69b94a96.js"></script><script defer="defer" src="./static/js/5933.7d12d5ab.js"></script><script defer="defer" src="./static/js/main.caef4e2f.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>
Loading

0 comments on commit 35d0e0f

Please sign in to comment.