diff --git a/package-lock.json b/package-lock.json
index 717f48da..0a32a403 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14,6 +14,7 @@
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@jiaminghi/data-view-react": "^1.2.5",
"@loadable/component": "^5.16.4",
+ "@pansy/react-amap": "^2.21.0",
"@react-spring/web": "^9.7.3",
"@react-three/drei": "^9.107.3",
"@react-three/fiber": "^8.16.8",
@@ -6056,6 +6057,46 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
+ "node_modules/@pansy/amap-api-loader": {
+ "version": "0.4.10",
+ "resolved": "https://registry.npmmirror.com/@pansy/amap-api-loader/-/amap-api-loader-0.4.10.tgz",
+ "integrity": "sha512-9NUsm9lUgZqY+Dpgo1db1UbU1/4GBFn/UCXjcAD2fN4/VbFcVpCz1t2U4PFYDNPZhBTbZvoS54uF+amW0kJprA==",
+ "dependencies": {
+ "@pansy/amap-types": "2.22.0"
+ }
+ },
+ "node_modules/@pansy/amap-types": {
+ "version": "2.22.0",
+ "resolved": "https://registry.npmmirror.com/@pansy/amap-types/-/amap-types-2.22.0.tgz",
+ "integrity": "sha512-NBDbB7aZLmOLowSbzdx0+4bWsY2gHx0vUa7mMS1zkcAj9xiZ3BGTrcWrTp2azIlaliezAUxtkvGRNaRVCoynDg=="
+ },
+ "node_modules/@pansy/react-amap": {
+ "version": "2.21.0",
+ "resolved": "https://registry.npmmirror.com/@pansy/react-amap/-/react-amap-2.21.0.tgz",
+ "integrity": "sha512-n8DZlV3EKJU3HUmh5VXIfgHnMOhS/Zr6fpt//+g/JqaMu1WlpwvZE/2OuZ3+Q5nnRE5XgpXrF7UBmS2V7zQ+uA==",
+ "dependencies": {
+ "@pansy/amap-api-loader": "0.4.10",
+ "@pansy/amap-types": "2.22.0",
+ "@pansy/react-amap-core": "1.3.14",
+ "@pansy/use-portal": "^0.2.2"
+ }
+ },
+ "node_modules/@pansy/react-amap-core": {
+ "version": "1.3.14",
+ "resolved": "https://registry.npmmirror.com/@pansy/react-amap-core/-/react-amap-core-1.3.14.tgz",
+ "integrity": "sha512-tQ4krVfa+lHJ5TGn0W7GWLwWH4NHyjkv0EA2An0MfpIrc4ABKX0EYCKimRnJ9WD9fgXxlZcESIJhiego4hbXoA==",
+ "dependencies": {
+ "@pansy/amap-types": "2.22.0"
+ }
+ },
+ "node_modules/@pansy/use-portal": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmmirror.com/@pansy/use-portal/-/use-portal-0.2.2.tgz",
+ "integrity": "sha512-UQjFI9lC43kyUbO9nFUHCSo0qK4228KQUww+4lYR5ySEVqtKsbBvq/4soKjj2O9otUVEopYpV9J03J7bpsMpKQ==",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
"node_modules/@pkgjs/parseargs": {
"version": "0.11.0",
"dev": true,
@@ -49811,6 +49852,44 @@
}
}
},
+ "@pansy/amap-api-loader": {
+ "version": "0.4.10",
+ "resolved": "https://registry.npmmirror.com/@pansy/amap-api-loader/-/amap-api-loader-0.4.10.tgz",
+ "integrity": "sha512-9NUsm9lUgZqY+Dpgo1db1UbU1/4GBFn/UCXjcAD2fN4/VbFcVpCz1t2U4PFYDNPZhBTbZvoS54uF+amW0kJprA==",
+ "requires": {
+ "@pansy/amap-types": "2.22.0"
+ }
+ },
+ "@pansy/amap-types": {
+ "version": "2.22.0",
+ "resolved": "https://registry.npmmirror.com/@pansy/amap-types/-/amap-types-2.22.0.tgz",
+ "integrity": "sha512-NBDbB7aZLmOLowSbzdx0+4bWsY2gHx0vUa7mMS1zkcAj9xiZ3BGTrcWrTp2azIlaliezAUxtkvGRNaRVCoynDg=="
+ },
+ "@pansy/react-amap": {
+ "version": "2.21.0",
+ "resolved": "https://registry.npmmirror.com/@pansy/react-amap/-/react-amap-2.21.0.tgz",
+ "integrity": "sha512-n8DZlV3EKJU3HUmh5VXIfgHnMOhS/Zr6fpt//+g/JqaMu1WlpwvZE/2OuZ3+Q5nnRE5XgpXrF7UBmS2V7zQ+uA==",
+ "requires": {
+ "@pansy/amap-api-loader": "0.4.10",
+ "@pansy/amap-types": "2.22.0",
+ "@pansy/react-amap-core": "1.3.14",
+ "@pansy/use-portal": "^0.2.2"
+ }
+ },
+ "@pansy/react-amap-core": {
+ "version": "1.3.14",
+ "resolved": "https://registry.npmmirror.com/@pansy/react-amap-core/-/react-amap-core-1.3.14.tgz",
+ "integrity": "sha512-tQ4krVfa+lHJ5TGn0W7GWLwWH4NHyjkv0EA2An0MfpIrc4ABKX0EYCKimRnJ9WD9fgXxlZcESIJhiego4hbXoA==",
+ "requires": {
+ "@pansy/amap-types": "2.22.0"
+ }
+ },
+ "@pansy/use-portal": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmmirror.com/@pansy/use-portal/-/use-portal-0.2.2.tgz",
+ "integrity": "sha512-UQjFI9lC43kyUbO9nFUHCSo0qK4228KQUww+4lYR5ySEVqtKsbBvq/4soKjj2O9otUVEopYpV9J03J7bpsMpKQ==",
+ "requires": {}
+ },
"@pkgjs/parseargs": {
"version": "0.11.0",
"dev": true,
diff --git a/package.json b/package.json
index 963bc6af..76aa287d 100644
--- a/package.json
+++ b/package.json
@@ -224,6 +224,7 @@
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@jiaminghi/data-view-react": "^1.2.5",
"@loadable/component": "^5.16.4",
+ "@pansy/react-amap": "^2.21.0",
"@react-spring/web": "^9.7.3",
"@react-three/drei": "^9.107.3",
"@react-three/fiber": "^8.16.8",
diff --git a/src/pages/layout/proSecNav/index.jsx b/src/pages/layout/proSecNav/index.jsx
index dae533fa..51760711 100644
--- a/src/pages/layout/proSecNav/index.jsx
+++ b/src/pages/layout/proSecNav/index.jsx
@@ -79,6 +79,7 @@ const ProSecNav = () => {
{ label: 'Mermaid', key: '/mermaid', icon: },
{ label: 'Dynamic', key: '/dynamic', icon: },
{ label: 'BigScreen', key: '/big-screen', icon: },
+ { label: 'ReactAmap', key: '/react-amap', icon: },
{
label: '技术栈',
key: '/sub-act',
diff --git a/src/pages/reactAmap/index.jsx b/src/pages/reactAmap/index.jsx
new file mode 100644
index 00000000..dd239fe7
--- /dev/null
+++ b/src/pages/reactAmap/index.jsx
@@ -0,0 +1,13 @@
+import React from 'react'
+import FixTabPanel from '@stateless/FixTabPanel'
+import { Map } from '@pansy/react-amap'
+
+const ReactAmap = () => (
+
+
+
+
+
+)
+
+export default ReactAmap
diff --git a/src/routers/index.jsx b/src/routers/index.jsx
index 8583cd1e..b7536a1f 100644
--- a/src/routers/index.jsx
+++ b/src/routers/index.jsx
@@ -36,6 +36,7 @@ const PrismRender = lazy(() => import('@pages/prism'))
// const Mermaid = lazy(() => import('@pages/mermaid'))
// const DynamicModal = lazy(() => import('@pages/dynamicModal'))
const BigScreen = lazy(() => import('@pages/bigScreen'))
+const ReactAmap = lazy(() => import('@pages/reactAmap'))
const Exception403 = lazy(() => import('@stateless/Exception/exception403'))
const NoMatch = lazy(() => import('@stateless/NoMatch'))
@@ -169,6 +170,14 @@ const rootRouter = [
auth: false,
element: lazyLoad(BigScreen),
},
+ {
+ index: false,
+ path: 'react-amap',
+ name: 'react-amap',
+ key: '/react-amap',
+ auth: false,
+ element: lazyLoad(ReactAmap),
+ },
{
index: false,
path: 'coupons',