From 9b090c5cdc3b02f6bb261606300f2c42e8716e62 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Thu, 3 Aug 2023 18:46:43 +0000 Subject: [PATCH] v5.0.9 released v5.0.9 (#324) b829e56c90fca6e1c9e854e5773b31ad08ee5a0b --- amap.js | 18 ++++++++---------- amap.min.js | 2 +- asset-manifest.json | 14 +++++++------- index.html | 2 +- ...106727c.chunk.js => 4702.f6787a44.chunk.js} | 4 ++-- ...chunk.js.map => 4702.f6787a44.chunk.js.map} | 2 +- static/js/5775.4a5d7cbf.chunk.js | 2 -- static/js/5775.4a5d7cbf.chunk.js.map | 1 - static/js/5775.b3985d06.chunk.js | 2 ++ static/js/5775.b3985d06.chunk.js.map | 1 + .../js/{main.6dd73f8f.js => main.bbd0dd67.js} | 4 ++-- ...in.6dd73f8f.js.map => main.bbd0dd67.js.map} | 2 +- 12 files changed, 26 insertions(+), 28 deletions(-) rename static/js/{4702.3106727c.chunk.js => 4702.f6787a44.chunk.js} (99%) rename static/js/{4702.3106727c.chunk.js.map => 4702.f6787a44.chunk.js.map} (97%) delete mode 100644 static/js/5775.4a5d7cbf.chunk.js delete mode 100644 static/js/5775.4a5d7cbf.chunk.js.map create mode 100644 static/js/5775.b3985d06.chunk.js create mode 100644 static/js/5775.b3985d06.chunk.js.map rename static/js/{main.6dd73f8f.js => main.bbd0dd67.js} (98%) rename static/js/{main.6dd73f8f.js.map => main.bbd0dd67.js.map} (99%) diff --git a/amap.js b/amap.js index 919730166..f30c703f5 100644 --- a/amap.js +++ b/amap.js @@ -466,8 +466,7 @@ function useEventProperties(instance, props, eventName, type) { instance.off(eName, eventHandle); } }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [instance, props[eventName]]); + }, [instance, eventHandle]); }); } @@ -496,18 +495,17 @@ function useSettingProperties(instance, props, propsName) { propsName.forEach(name => { var eName = "set" + name; var vName = "" + name.charAt(0).toLowerCase() + name.slice(1); - // eslint-disable-next-line react-hooks/rules-of-hooks - var [state, setState] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props[vName]); + var eventHandle = props[vName]; + var [state, setState] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(eventHandle); // eslint-disable-next-line react-hooks/rules-of-hooks (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => { - if (instance && props[vName] !== undefined) { - if (props[vName] !== state && instance[eName] && typeof instance[eName] === 'function') { - instance[eName](props[vName]); - setState(props[vName]); + if (instance && eventHandle !== undefined) { + if (eventHandle !== state && instance[eName] && typeof instance[eName] === 'function') { + instance[eName](eventHandle); + setState(eventHandle); } } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [instance, props[vName]]); + }, [instance, eventHandle]); }); } ;// CONCATENATED MODULE: ../auto-complete/esm/useAutoComplete.js diff --git a/amap.min.js b/amap.min.js index a273dca94..c92db2426 100644 --- a/amap.min.js +++ b/amap.min.js @@ -1,2 +1,2 @@ /*! For license information please see amap.min.js.LICENSE.txt */ -!function(e,o){"object"===typeof exports&&"object"===typeof module?module.exports=o(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],o):"object"===typeof exports?exports["@uiw/react-amap"]=o(require("react"),require("react-dom")):e["@uiw/react-amap"]=o(e.React,e.ReactDOM)}(self,((e,o)=>(()=>{"use strict";var n={828:function(e){e.exports=function(){function e(e){var a=[];return e.AMapUI&&a.push(o(e.AMapUI)),e.Loca&&a.push(n(e.Loca)),Promise.all(a)}function o(e){return new Promise((function(o,n){var t=[];if(e.plugins)for(var s=0;s{var a=n(787),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,o,n){var a,r={},u=null,c=null;for(a in void 0!==n&&(u=""+n),void 0!==o.key&&(u=""+o.key),void 0!==o.ref&&(c=o.ref),o)i.call(o,a)&&!s.hasOwnProperty(a)&&(r[a]=o[a]);if(e&&e.defaultProps)for(a in o=e.defaultProps)void 0===r[a]&&(r[a]=o[a]);return{$$typeof:t,type:e,key:u,ref:c,props:r,_owner:l.current}}o.jsx=u,o.jsxs=u},310:(e,o,n)=>{e.exports=n(31)},787:o=>{o.exports=e},156:e=>{e.exports=o}},a={};function t(e){var o=a[e];if(void 0!==o)return o.exports;var r=a[e]={exports:{}};return n[e].call(r.exports,r,r.exports,t),r.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{function e(e,o){if(null==e)return{};var n,a,t={},r=Object.keys(e);for(a=0;a=0||(t[n]=e[n]);return t}t.r(r),t.d(r,{APILoader:()=>s,AutoComplete:()=>h,BezierCurve:()=>x,Circle:()=>O,CircleMarker:()=>D,Context:()=>g,ContextMenu:()=>j,ControlBarControl:()=>N,Ellipse:()=>F,Geolocation:()=>q,HawkEyeControl:()=>$,InfoWindow:()=>X,LabelMarker:()=>ce,Map:()=>b,MapTypeControl:()=>ne,Marker:()=>se,MassMarks:()=>ve,MouseTool:()=>ke,MouseToolDrawType:()=>Ce,PolyEditor:()=>he,Polygon:()=>me,PolygonEditor:()=>Ae,Polyline:()=>ge,PolylineEditor:()=>we,Provider:()=>I,Rectangle:()=>Te,ScaleControl:()=>Oe,Text:()=>De,TileLayer:()=>re,TileLayerType:()=>te,ToolBarControl:()=>ze,Weather:()=>je,initialState:()=>E,reducer:()=>y,requireCss:()=>xe,requireScript:()=>Le,useAutoComplete:()=>A,useBezierCurve:()=>S,useCircle:()=>R,useCircleMarker:()=>U,useContextMenu:()=>z,useControlBarControl:()=>B,useEllipse:()=>Z,useEventProperties:()=>M,useGeolocation:()=>Y,useHawkEyeControl:()=>J,useInfoWindow:()=>Q,useMap:()=>C,useMapContext:()=>w,useMapTypeControl:()=>oe,useMarker:()=>le,useMassMarks:()=>de,usePolygon:()=>Me,usePolyline:()=>ye,usePortal:()=>p,usePrevious:()=>f,useRectangle:()=>be,useScaleControl:()=>Re,useSetStatus:()=>d,useSettingProperties:()=>m,useText:()=>Ue,useTileLayer:()=>ae,useToolBarControl:()=>He,useVisiable:()=>v,useWeather:()=>_e});var o=t(787),n=t.n(o),a=t(828),i=t(310),l=["children"],s=n=>{var{children:t}=n,r=e(n,l),[s,u]=(0,o.useState)(!1),[c,p]=(0,o.useState)();return(0,o.useEffect)((()=>{var e=r.akey||r.akay||"",o=r.plugins||(r.plugin?r.plugin.split(","):[]);(0,a.load)({key:e,plugins:o,version:r.version||"2.0",AMapUI:r.AMapUI,Loca:r.Loca}).then((()=>{p(void 0),u(!0)})).catch((e=>{p(e)}))}),[r.akey,r.akay]),c?(0,i.jsx)("div",{style:{color:"red"},children:c.message}):s?(0,i.jsx)(o.Fragment,{children:t}):null};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var o=1;o{var[e]=n().useState((()=>document.createElement("div"))),[a,t]=(0,o.useState)({render:()=>null,remove:()=>null}),r=n().useCallback((e=>({render:o=>{var{children:n}=o;return n?(0,c.createPortal)(n,e):null},remove:e=>{e&&(0,c.unmountComponentAtNode)(e)}})),[]);return(0,o.useEffect)((()=>{e&&a.remove();var o=r(e);return t(o),()=>{o.remove(e)}}),[e]),{Portal:a.render,container:e}};function d(e,n,a){void 0===n&&(n={}),void 0===a&&(a=[]),a.forEach((a=>{var t=a,[r,i]=(0,o.useState)(n[t]);(0,o.useEffect)((()=>{if(e&&void 0!==n[t]&&n[t]!==r){var o=e.getStatus();e.setStatus(u({},o,{[t]:n[t]})),i(n[t])}}),[e,n[t]])}))}function v(e,n){var[a,t]=(0,o.useState)(n);(0,o.useEffect)((()=>{e&&void 0!==n&&(n?e.show&&e.show():e.hide&&e.hide(),n!==a&&t(n))}),[e,n])}function f(e){var n=(0,o.useRef)();return(0,o.useEffect)((()=>{n.current=e})),n.current}function M(e,n,a,t){void 0===n&&(n={}),void 0===a&&(a=[]),a.forEach((a=>{var t=a,r=n[t];(0,o.useEffect)((()=>{if(e){var o=a.toLocaleLowerCase().replace(/^on/,"");return r&&o&&e.on(o,r),()=>{o&&r&&e.off(o,r)}}}),[e,n[t]])}))}function m(e,n,a){void 0===e&&(e={}),void 0===n&&(n={}),void 0===a&&(a=[]),a.forEach((a=>{var t="set"+a,r=""+a.charAt(0).toLowerCase()+a.slice(1),[i,l]=(0,o.useState)(n[r]);(0,o.useEffect)((()=>{e&&void 0!==n[r]&&n[r]!==i&&e[t]&&"function"===typeof e[t]&&(e[t](n[r]),l(n[r]))}),[e,n[r]])}))}var A=function(e){void 0===e&&(e={});var[n,a]=(0,o.useState)();return(0,o.useEffect)((()=>{var o;if(AMap&&!n)return AMap.v?AMap.plugin(["AMap.Autocomplete"],(()=>{o=new AMap.Autocomplete(e),a(o)})):AMap.plugin(["AMap.AutoComplete"],(()=>{o=new AMap.AutoComplete(e),a(o)})),()=>{o&&a(void 0)}}),[]),m(n,e,["Type","City","CityLimit"]),M(n,e,["onChoose","onSelect"]),{autoComplete:n,setAutoComplete:a}},h=n().forwardRef(((e,n)=>{var{autoComplete:a}=A(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{autoComplete:a}))),null}));var E={map:void 0,AMap:void 0,container:void 0},y=(e,o)=>u({},e,o),g=n().createContext({state:E,dispatch:()=>null});function w(){var{state:e,dispatch:n}=(0,o.useContext)(g);return u({},e,{state:e,dispatch:n})}var C=function(e){void 0===e&&(e={});var n=u({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),[a,t]=(0,o.useState)(),[r,i]=(0,o.useState)(e.zoom||15),[l,s]=(0,o.useState)(e.container),{dispatch:c}=(0,o.useContext)(g);return(0,o.useEffect)((()=>{if(l&&!a&&AMap){l.className=l.className+" react-amap-wapper";var e=new AMap.Map(l,u({zoom:r},n));t(e)}return()=>{a&&(a.clearInfoWindow(),a.clearLimitBounds(),a.clearMap(),a.destroy(),t(void 0))}}),[l,a]),(0,o.useEffect)((()=>(a&&l&&c({map:a,container:l,AMap:AMap}),()=>{c({map:void 0,container:void 0,AMap:void 0})})),[a,l]),(0,o.useMemo)((()=>{a&&"number"===typeof e.zoom&&r!==e.zoom&&e.zoom>=2&&e.zoom<=20&&(i(e.zoom),a.setZoom(e.zoom))}),[r,e.zoom]),(0,o.useMemo)((()=>{e.center&&a&&a.setCenter(e.center)}),[a,e.center]),d(a,e,["dragEnable","zoomEnable","jogEnable","pitchEnable","rotateEnable","animateEnable","keyboardEnable"]),m(a,e,["Zoom","LabelzIndex","Layers","City","Bounds","LimitBounds","Lang","Rotation","DefaultCursor","MapStyle","Features","DefaultLayer","Pitch"]),M(a,e,["onMouseMove","onZoomChange","onMapMove","onMouseWheel","onZoomStart","onMouseOver","onMouseOut","onDblClick","onClick","onZoomEnd","onMoveEnd","onMouseUp","onMouseDown","onRightClick","onMoveStart","onDragStart","onDragging","onDragEnd","onHotspotOut","onHotspotOver","onTouchStart","onComplete","onHotspotClick","onTouchMove","onTouchEnd","onResize"]),{map:a,setMap:t,zoom:r,setZoom:i,container:l,setContainer:s}},k=["className","children"],I=e=>{var[n,a]=(0,o.useReducer)(y,E);return(0,i.jsx)(g.Provider,{value:u({},n,{state:n,dispatch:a}),children:e.children})},b=(0,o.forwardRef)(((n,a)=>{var{className:t,children:r}=n,l=e(n,k),s=window.AMap,[c,p]=(0,o.useReducer)(y,E),d=(0,o.useRef)(null),{setContainer:v,container:f,map:M}=C(u({container:l.container||d.current},l));(0,o.useEffect)((()=>v(d.current)),[d.current]),(0,o.useImperativeHandle)(a,(()=>u({},l,{map:M,AMap:s,container:l.container||d.current})),[M]);var m=o.Children.toArray(r);return(0,o.useEffect)((()=>{M&&p({map:M,container:d.current,AMap:s})}),[M]),(0,i.jsxs)(g.Provider,{value:u({},c,{state:c,dispatch:p}),children:[!l.container&&(0,i.jsx)("div",{ref:d,className:t,style:u({fontSize:1,width:"100%",height:"100%"},l.style)}),s&&M&&"function"===typeof r&&r({AMap:s,map:M,container:f}),s&&M&&m.map(((e,n)=>(0,o.isValidElement)(e)?"string"===typeof e?(0,o.cloneElement)((0,i.jsx)(o.Fragment,{children:e}),{key:n}):e.type&&"string"===typeof e.type?(0,o.cloneElement)(e,{key:n}):(0,o.cloneElement)(e,u({},e.props,{AMap:s,map:M,container:f,key:n})):null))]})})),T=["visiable"],S=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,T),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.BezierCurve(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Options","Path","ExtData","ExtData"]),M(i,n,["onHide","onShow","onDblClick","onMouseOver","onMouseUp","onMouseDown","onclick","onTouchEnd","onTouchMove","onTouchStart","onRightClick","onMouseOut"]),{bezierCurve:i,setBezierCurve:l}},x=n().forwardRef(((e,n)=>{var{bezierCurve:a}=S(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{bezierCurve:a}))),null})),L=["visiable"],R=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,L),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Circle(u({},t));r.add(e),l(e)}return()=>{l((e=>{e&&r&&r.remove(e)}))}}),[r]),v(i,a),m(i,n,["Center","Raius","Options","ExtData"]),M(i,n,["onHide","onShow","onRightClick","onClick","onTouchEnd","onDblClick","onTouchMove","onTouchStart","onMouseOut","onMouseOver","onMouseUp","onMouseDown"]),{circle:i,setCircle:l}},O=n().forwardRef(((e,n)=>{var{circle:a}=R(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{circle:a}))),null})),P=["visiable"],U=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,P),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.CircleMarker(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Center","Raius","zIndex","Bubble","Cursor","StrokeColor","StrokeOpacity","StrokeWeight","FillColor","FillOpacity","Draggable","ExtData"]),M(i,n,["onHide","onShow","onMouseover","onTouchend","onClick","onTouchmove","onRightclick","onMouseup","onMouseout","onTouchstart","onMousedown","onDblclick"]),{circleMarker:i,setCircleMarker:l}},D=n().forwardRef(((e,n)=>{var{circleMarker:a}=U(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{circleMarker:a}))),null})),H=["position"],z=function(n){void 0===n&&(n={});var{position:a}=n,t=e(n,H),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.ContextMenu(u({},t));l(e);var o=o=>e.open(r,a||o.lnglat);return r.on("rightclick",o),()=>{e&&(e.close(),r.off("rightclick",o),l(void 0))}}}),[r]),M(i,n,["onOpen","onClose"]),{contextMenu:i,setContextMenu:l}},_=function(){};var j=n().forwardRef(((e,a)=>{var{contextMenu:t}=z(e);(0,o.useImperativeHandle)(a,(()=>u({},e,{contextMenu:t})));var r=n().Children.toArray(e.children);return(0,i.jsx)(o.Fragment,{children:AMap&&t&&r.map(((o,a)=>n().isValidElement(o)?n().cloneElement(o,u({},o.props,{AMap:AMap,map:e.map,contextMenu:t,key:a})):null))})}));function B(e){void 0===e&&(e={});var{position:n,visiable:a,offset:t}=e,[r,i]=(0,o.useState)(),{map:l}=w();return(0,o.useEffect)((()=>{var e;if(l&&!r)return l.plugin(["AMap.ControlBar","AMap.HawkEye"],(()=>{e=new AMap.ControlBar({offset:t,position:n}),l.addControl(e),i(e)})),()=>{e&&l.removeControl(e)}}),[l]),v(r,a),{controlBarControl:r,setControlBarControl:i}}j.Item=function(e){void 0===e&&(e={});var{text:n="",onClick:a=_}=e;return(0,o.useEffect)((()=>(e.contextMenu&&e.contextMenu.addItem(n,a,1),()=>{e.contextMenu&&e.contextMenu.removeItem(n,a)})),[e.contextMenu,e.text,e.onClick]),null};var N=n().forwardRef(((e,n)=>{var{controlBarControl:a}=B(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{controlBarControl:a})),[a]),null})),W=["visiable"],Z=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,W),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Ellipse(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Center","Radius","Options","ExtData"]),M(i,n,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{ellipse:i,setEllipse:l}},F=n().forwardRef(((e,n)=>{var{ellipse:a}=Z(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{ellipse:a}))),null})),G=["type","onComplete","onError"],Y=function(n){void 0===n&&(n={});var{type:a="position",onComplete:t,onError:r}=n,i=e(n,G),[l,s]=(0,o.useState)(),{map:c}=w();function p(e,o){"complete"===e&&t?t(o):r&&r(o)}return(0,o.useEffect)((()=>{var e;if(AMap&&!l)return AMap.plugin(["AMap.Geolocation"],(()=>{e=new AMap.Geolocation(u({},i)),s(e)})),()=>{e&&s(void 0)}}),[AMap]),(0,o.useMemo)((()=>{if(/^(position|cityInfo)$/.test(a)){var e="position"===a?"getCurrentPosition":"getCityInfo";l&&c?(l[e](p),c.addControl(l)):l&&l[e](p)}}),[l]),{geolocation:l,setGeolocation:s}},q=n().forwardRef(((e,n)=>{var{geolocation:a}=Y(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{geolocation:a}))),null})),V=["offset","visiable"];function J(n){void 0===n&&(n={});var[a,t]=(0,o.useState)(),{offset:r,visiable:i}=n,l=e(n,V),{map:s}=w();return(0,o.useEffect)((()=>{var e;if(s&&!a)return s.plugin(["AMap.HawkEye"],(()=>{e=new AMap.HawkEye(u({offset:r},l)),s.addControl(e),t(e)})),()=>{e&&s&&(s&&s.removeControl(e),t(void 0))}}),[s]),v(a,i),{hawkEyeControl:a,setHawkEyeControl:t}}var $=n().forwardRef(((e,n)=>{var{hawkEyeControl:a}=J(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{hawkEyeControl:a})),[a]),null})),K=["visiable","position"],Q=function(n){void 0===n&&(n={});var{visiable:a,position:t}=n,r=e(n,K),{map:i}=w(),[l,s]=(0,o.useState)(a),[c,d]=(0,o.useState)(),{container:v,Portal:f}=p();return(0,o.useEffect)((()=>{if(AMap&&i&&!c){var e=i.getCenter();n.children&&(r.content=v);var o=new AMap.InfoWindow(u({},r,{position:t||e}));return d(o),l&&o.open(i,t||e),()=>{o&&(i&&i.remove(o),d(void 0))}}}),[i]),(0,o.useEffect)((()=>{c&&c.setContent(n.children?v:r.content||"")}),[n.children,v,r.content,c]),(0,o.useMemo)((()=>{if(l!==a&&c&&i)if(s(a),a){var e=i.getCenter();c.open(i,t||e)}else c.close()}),[a,c]),(0,o.useEffect)((()=>{if(i&&c&&a){var e=i.getCenter();c.open(i,t||e)}}),[t]),m(c,n,["Content","Anchor","Size"]),M(c,n,["onOpen","onClose","onChange"]),{isOpen:l,setIsOpen:s,infoWindow:c,setInfoWindow:d,InfoWindowPortal:f}},X=n().forwardRef(((e,n)=>{var{infoWindow:a,InfoWindowPortal:t}=Q(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{infoWindow:a}))),(0,i.jsx)(t,{children:e.children})})),ee=["visiable","defaultType"];function oe(n){void 0===n&&(n={});var[a,t]=(0,o.useState)(),{visiable:r,defaultType:i=0}=n,l=e(n,ee),{map:s}=w();return(0,o.useEffect)((()=>{var e;if(s&&!a)return s.plugin(["AMap.MapType"],(()=>{e=new AMap.MapType(u({defaultType:i},l)),s.addControl(e),t(e)})),()=>{e&&s.removeControl(e)}}),[s]),v(a,r),{mapTypeControl:a,setMapTypeControl:t}}var ne=n().forwardRef(((e,n)=>{var{mapTypeControl:a}=oe(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{mapTypeControl:a})),[a]),null}));function ae(e){void 0===e&&(e={});var[n,a]=(0,o.useState)(),{visiable:t,type:r,options:i}=e,{map:l}=w();return(0,o.useEffect)((()=>{if(l){var o=null;if(r)switch(r){case te.ROADNET:o=new AMap.TileLayer.RoadNet({});break;case te.SATELLITE:o=new AMap.TileLayer.Satellite({});break;case te.TRAFFIC:o=new AMap.TileLayer.Traffic({})}return i&&(o=new AMap.TileLayer(i)),o&&(l.add(o),e.onAdded&&e.onAdded(),a(o)),()=>{o&&(AMap.v?l&&l.remove(o):l&&l.removeLayer(o),a(null),e.onRemoved&&e.onRemoved())}}}),[l,r,i]),v(n,t),{tileLayer:n,setTileLayer:a}}var te=function(e){return e.SATELLITE="satellite",e.TRAFFIC="traffic",e.ROADNET="roadnet",e}({}),re=n().forwardRef(((e,n)=>{var{tileLayer:a}=ae(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{tileLayer:a})),[a]),null})),ie=["visiable","children"],le=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,ie),{map:r}=w(),[i,l]=(0,o.useState)(),{container:s,Portal:c}=p();return(0,o.useEffect)((()=>{if(!i&&r){n.children&&(t.content=s);var e=new AMap.Marker(u({},t));r.add(e),l(e)}return()=>{i&&(i.setMap(null),l(void 0))}}),[r,i]),v(i,a),m(i,n,["Path","Anchor","Offset","Animation","Clickable","Position","Angle","Label","zIndex","Icon","Draggable","Cursor","Content","Map","Title","Top","Shadow","Shape","ExtData"]),M(i,n,["onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragging","onDragEnd","onMoving","onMoveEnd","onMoveAlong","onTouchStart","onTouchMove","onTouchEnd"]),{marker:i,setMarker:l,MarkerPortal:c}},se=(0,o.forwardRef)(((e,n)=>{var{marker:a,MarkerPortal:t}=le(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{marker:a})),[a]),(0,i.jsx)(t,{children:e.children})})),ue=["visiable","children","text","icon"],ce=(0,o.forwardRef)(((n,a)=>{var{labelMarker:t}=function(n){void 0===n&&(n={});var{visiable:a,text:t,icon:r}=n,i=e(n,ue),{map:l,AMap:s}=w(),[c,p]=(0,o.useState)();return(0,o.useEffect)((()=>{if(!c&&l){var e,o=t;t||(o={content:"",direction:"right",offset:[-20,-5],style:{fontSize:12,fillColor:"#22886f",strokeColor:"#fff",strokeWidth:2}});var n=r;n||(n={image:"http://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png",size:[19,32],anchor:"center"});var a,d=new s.LabelMarker(u({style:n,icon:n,text:o},i));p(d),0===(null==s||null==(e=s.v)?void 0:e.indexOf("1.4"))&&(l.labelMarkersLayer?a=l.labelMarkersLayer:(l.labelMarkersLayer=a=new s.LabelsLayer({zooms:[3,20],zIndex:101,collision:!0,animation:!0}),l.add(a)),a.add(d)),l.add(d)}return()=>{var e,o;c&&(0===(null==s||null==(e=s.v)?void 0:e.indexOf("1.4"))&&(null==l||null==(o=l.labelMarkersLayer)||o.remove(c)),p(void 0))}}),[c,l]),v(c,a),m(c,n,["Name","Position","Zooms","Opacity","zIndex","Rank","Text","Icon","ExtData","Top"]),M(c,n,["onMousedown","onMouseup","onTouchstart","onTouchmove","onTouchend","onClick","onMousemove","onMouseover","onMouseout"]),{labelMarker:c,setLabelMarker:p}}(n);return(0,o.useImperativeHandle)(a,(()=>u({},n,{labelMarker:t})),[t]),null})),pe=["visiable"],de=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,pe),{map:r}=w(),{opacity:i=1,zIndex:l=1111,style:s,data:u}=t||{},[c,p]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!c){var e=s;e||(e=[{url:"https://webapi.amap.com/images/mass/mass0.png",anchor:new AMap.Pixel(6,6),size:new AMap.Size(11,11),zIndex:3},{url:"https://webapi.amap.com/images/mass/mass1.png",anchor:new AMap.Pixel(4,4),size:new AMap.Size(7,7),zIndex:2},{url:"https://webapi.amap.com/images/mass/mass2.png",anchor:new AMap.Pixel(3,3),size:new AMap.Size(5,5),zIndex:1}]);var o=new AMap.MassMarks(u||[],{opacity:i,zIndex:l,style:e});return p(o),o.setMap(r),()=>{o&&(o.clear(),p(void 0))}}}),[r]),v(c,a),m(c,n,["Map","Data","Style","Opacity","zIndex","Zooms"]),M(c,n,["onClick","onDblClick","onMouseMove","onMouseOut","onMouseUp","onMouseDown","onMouseOver","onTouchStart","onTouchEnd"]),{massMarks:c,setMassMarks:p}},ve=n().forwardRef(((e,n)=>{var{massMarks:a}=de(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{massMarks:a})),[a,e]),null})),fe=["visiable"],Me=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,fe),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Polygon(u({},t));return r.add(e),l(e),()=>{if(e)try{r&&r.remove(e)}catch(o){}l(void 0)}}}),[r]),(0,o.useEffect)((()=>{i&&i.setOptions(t)}),[i,t]),v(i,a),m(i,n,["Path","Options","Map","ExtData","Draggable"]),M(i,n,["onClick","onDblClick","onRightClick","onHide","onShow","onMouseDown","onMouseUp","onMouseOver","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onTouchStart","onTouchMove","onTouchEnd"]),{polygon:i,setPolygon:l}},me=(0,o.forwardRef)(((e,n)=>{var{children:a}=e,{polygon:t}=Me(e);if((0,o.useImperativeHandle)(n,(()=>u({},e,{polygon:t})),[t]),a&&(0,o.isValidElement)(a)&&t){var r={polygon:t,polyElement:t};return(0,o.cloneElement)(a,u({},e,r))}return null})),Ae=(0,o.forwardRef)(((e,n)=>{var{active:a,polygon:t}=e,{map:r}=w(),[i,l]=(0,o.useState)(!0),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{polyEditor:s}))),(0,o.useEffect)((()=>{if(t&&r&&!s&&AMap&&AMap.PolygonEditor){var e=new AMap.PolygonEditor(r,t);t.on("hide",(()=>l(!1))),t.on("show",(()=>l(!0))),c(e)}}),[t]),(0,o.useEffect)((()=>{s&&(i&&!a?(s.close(),e.onEnd&&e.onEnd({target:e.polygon})):i&&a?(s.open(),e.onAdd&&e.onAdd({target:e.polygon})):!i&&a&&(s.close(),e.onEnd&&e.onEnd({target:e.polygon})))}),[a,i]),M(s,e,["onEnd","onAddnode","onRemovenode","onAdjust","onMove","onAdd"]),null})),he=(0,o.forwardRef)(((e,n)=>{var{active:a,polyElement:t}=e,{map:r}=w(),[i,l]=(0,o.useState)(!0),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{polyEditor:s}))),(0,o.useEffect)((()=>{if(t&&r&&!s&&AMap&&AMap.PolyEditor){var e=new AMap.PolyEditor(r,t);t.on("hide",(()=>l(!1))),t.on("show",(()=>l(!0))),c(e)}}),[t]),(0,o.useEffect)((()=>{s&&(i&&!a?(s.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})):i&&a?s.open():!i&&a&&(s.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})))}),[a,i]),M(s,e,["onEnd","onAddnode","onAdjust","onRemovenode"]),null})),Ee=["visiable"];function ye(n){void 0===n&&(n={});var[a,t]=(0,o.useState)(),{visiable:r}=n,i=e(n,Ee),{map:l}=w();return(0,o.useEffect)((()=>{if(l&&!a){var e=new AMap.Polyline(i);return l.add(e),t(e),()=>{e&&(AMap.v?l&&l.remove(e):l&&l.removeLayer(e),t(void 0))}}}),[l]),(0,o.useEffect)((()=>{a&&a.setOptions(i)}),[a,i]),v(a,r),m(a,n,["Path","Options","Map","ExtData","Draggable"]),M(a,n,["onHide","onShow","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onRightClick","onDblClick","onMouseDown","onClick","onMouseOver","onTouchEnd","onTouchMove","onTouchStart","onMouseUp"]),{polyline:a,setPolyline:t}}var ge=n().forwardRef(((e,n)=>{var{children:a}=e,{polyline:t}=ye(e);if((0,o.useImperativeHandle)(n,(()=>u({},e,{polyline:t})),[t]),a&&(0,o.isValidElement)(a)&&t){var r={polyElement:t,polyline:t};return(0,o.cloneElement)(a,u({},e,r))}return null})),we=(0,o.forwardRef)(((e,n)=>{var{active:a,polyline:t}=e,{map:r}=w(),[i,l]=(0,o.useState)(!0),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{polyEditor:s}))),(0,o.useEffect)((()=>{if(t&&r&&!s&&AMap&&AMap.PolylineEditor){var e=new AMap.PolylineEditor(r,t);t.on("hide",(()=>l(!1))),t.on("show",(()=>l(!0))),c(e)}}),[t]),(0,o.useEffect)((()=>{s&&(i&&!a?(s.close(),e.onEnd&&e.onEnd({target:e.polyline})):i&&a?(s.open(),e.onAdd&&e.onAdd({target:e.polyline})):!i&&a&&(s.close(),e.onEnd&&e.onEnd({target:e.polyline})))}),[a,i,s]),M(s,e,["onEnd","onAddnode","onRemovenode","onAdjust","onAdd"]),null})),Ce=function(e){return e[e.MARKER=0]="MARKER",e[e.POLYLINE=1]="POLYLINE",e[e.POLYGON=2]="POLYGON",e[e.CIRCLE=3]="CIRCLE",e[e.RECTANGLE=4]="RECTANGLE",e[e.MEASUREAREA=5]="MEASUREAREA",e[e.RULE=6]="RULE",e[e.RECTZOOMIN=7]="RECTZOOMIN",e[e.RECTZOOMOUT=8]="RECTZOOMOUT",e}({}),ke=(0,o.forwardRef)(((e,n)=>{var{active:a,type:t,drawElementOptions:r,ifClear:i}=e,{map:l}=w(),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{mouseTool:s}))),(0,o.useEffect)((()=>{if(l&&!s&&AMap&&AMap.MouseTool){var e=new AMap.MouseTool(l);c(e)}}),[l,Map,AMap.MouseTool]),(0,o.useEffect)((()=>{if(s)if(a)switch(t){case Ce.MARKER:s.marker(r||{});break;case Ce.POLYLINE:s.polyline(r||{});break;case Ce.POLYGON:s.polygon(r||{});break;case Ce.CIRCLE:s.circle(r||{});break;case Ce.RECTANGLE:s.rectangle(r||{});break;case Ce.MEASUREAREA:s.measureArea(r||{});break;case Ce.RULE:s.rule(r||{});break;case Ce.RECTZOOMIN:s.rectZoomIn(r||{});break;case Ce.RECTZOOMOUT:s.rectZoomOut(r||{})}else s.close(i)}),[a,i]),M(s,e,["onDraw"]),null})),Ie=["visiable"],be=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,Ie),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Rectangle(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Bounds","Options","Map","ExtData"]),M(i,n,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{rectangle:i,setRectangle:l}},Te=n().forwardRef(((e,n)=>{var{rectangle:a}=be(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{rectangle:a}))),null})),Se={};function xe(e,o){void 0===o&&(o="_react_amap_css");var n=document&&(document.head||document.getElementsByTagName("head")[0]),a=document.getElementById(o);return new Promise(((t,r)=>{if(!document||e in Se||a)t();else{var i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.id=o,i.href=e,i.onerror=o=>{n.removeChild(i),r(new URIError("The css "+e+" is no accessible."))},i.onload=()=>{Se[e]=!0,t()},n.appendChild(i)}}))}function Le(e,o){void 0===o&&(o="_react_amap_plugin");var n=document&&(document.head||document.getElementsByTagName("head")[0]),a=document.getElementById(o);return new Promise(((t,r)=>{if(!document||e in Se||a)t();else{var i=document.createElement("script");i.type="text/javascript",i.id=o,i.async=!0,i.defer=!0,i.src=e,i.onerror=o=>{n.removeChild(i),r(new URIError("The Script "+e+" is no accessible."))},i.onload=()=>{Se[e]=!0,t()},n.appendChild(i)}}))}function Re(e){void 0===e&&(e={});var[n,a]=(0,o.useState)(),{position:t,visiable:r,offset:i}=e,{map:l}=w();return(0,o.useEffect)((()=>{var e;if(l&&!n)return l.plugin(["AMap.Scale"],(()=>{e=new AMap.Scale({offset:i,position:t}),l.addControl(e),a(e)})),()=>{e&&l.removeControl(e)}}),[l]),v(n,r),{scaleControl:n,setScaleControl:a}}var Oe=n().forwardRef(((e,n)=>{var{scaleControl:a}=Re(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{scaleControl:a})),[a]),null})),Pe=["visiable"],Ue=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,Pe),[r,i]=(0,o.useState)(),{map:l}=w(),{container:s,Portal:c}=p();return(0,o.useEffect)((()=>{if(AMap&&l&&!r){n.children&&(t.text=s.innerHTML);var e=new AMap.Text(u({},t));return l.add(e),i(e),()=>{e&&(e.remove(),i(void 0))}}}),[l]),(0,o.useEffect)((()=>{r&&r.setText(n.children?s.innerHTML:n.text||"")}),[n.children,n.text,s,r]),v(r,a),m(r,n,["Style","Title","Clickable","Draggable","Map","Position","Offset","Angle","zIndex","Top","Cursor","ExtData"]),M(r,n,["onMoving","onTouchMove","onTouchEnd","onMoveaLong","onTouchStart","onMoveEnd","onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragEnd","onDragging"]),{text:r,setText:i,TextPortal:c}},De=(0,o.forwardRef)(((e,n)=>{var{text:a,TextPortal:t}=Ue(u({},e));return(0,o.useImperativeHandle)(n,(()=>u({},e,{text:a}))),e.children?(0,i.jsx)(t,{children:e.children}):null}));function He(e){void 0===e&&(e={});var[n,a]=(0,o.useState)(),{position:t,visiable:r,offset:i}=e,{map:l}=w();return(0,o.useEffect)((()=>{var e;if(l&&!n)return l.plugin(["AMap.ToolBar"],(()=>{e=new AMap.ToolBar({offset:i,position:t}),l.addControl(e),a(e)})),()=>{e&&l.removeControl(e)}}),[l]),v(n,r),{toolBarControl:n,setToolBarControl:a}}var ze=n().forwardRef(((e,n)=>{var{toolBarControl:a}=He(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{toolBarControl:a})),[a]),null})),_e=function(e){void 0===e&&(e={});var{city:n="",type:a="live",onComplete:t,onError:r}=e,[i,l]=(0,o.useState)(),s="live"===a?"getLive":"getForecast";return(0,o.useEffect)((()=>{var e;if(AMap&&!i)return AMap.plugin(["AMap.Weather"],(()=>{e=new AMap.Weather,l(e)})),()=>{e&&l(void 0)}}),[]),(0,o.useMemo)((()=>{var e;i&&n&&a&&(e=i,a&&n&&/^(live|forecast)$/.test(a)&&e[s](n,((e,o)=>{e&&r?r(e):o&&t&&t(o)})))}),[i,n,a]),{weather:i,setWeather:l}},je=n().forwardRef(((e,n)=>{var{weather:a}=_e(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{weather:a}))),null}))})(),r})())); \ No newline at end of file +!function(e,o){"object"===typeof exports&&"object"===typeof module?module.exports=o(require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["react","react-dom"],o):"object"===typeof exports?exports["@uiw/react-amap"]=o(require("react"),require("react-dom")):e["@uiw/react-amap"]=o(e.React,e.ReactDOM)}(self,((e,o)=>(()=>{"use strict";var n={828:function(e){e.exports=function(){function e(e){var a=[];return e.AMapUI&&a.push(o(e.AMapUI)),e.Loca&&a.push(n(e.Loca)),Promise.all(a)}function o(e){return new Promise((function(o,n){var t=[];if(e.plugins)for(var s=0;s{var a=n(787),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,o,n){var a,r={},u=null,c=null;for(a in void 0!==n&&(u=""+n),void 0!==o.key&&(u=""+o.key),void 0!==o.ref&&(c=o.ref),o)i.call(o,a)&&!s.hasOwnProperty(a)&&(r[a]=o[a]);if(e&&e.defaultProps)for(a in o=e.defaultProps)void 0===r[a]&&(r[a]=o[a]);return{$$typeof:t,type:e,key:u,ref:c,props:r,_owner:l.current}}o.jsx=u,o.jsxs=u},310:(e,o,n)=>{e.exports=n(31)},787:o=>{o.exports=e},156:e=>{e.exports=o}},a={};function t(e){var o=a[e];if(void 0!==o)return o.exports;var r=a[e]={exports:{}};return n[e].call(r.exports,r,r.exports,t),r.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var n in o)t.o(o,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:o[n]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{function e(e,o){if(null==e)return{};var n,a,t={},r=Object.keys(e);for(a=0;a=0||(t[n]=e[n]);return t}t.r(r),t.d(r,{APILoader:()=>s,AutoComplete:()=>h,BezierCurve:()=>x,Circle:()=>O,CircleMarker:()=>D,Context:()=>g,ContextMenu:()=>j,ControlBarControl:()=>N,Ellipse:()=>F,Geolocation:()=>q,HawkEyeControl:()=>$,InfoWindow:()=>X,LabelMarker:()=>ce,Map:()=>b,MapTypeControl:()=>ne,Marker:()=>se,MassMarks:()=>ve,MouseTool:()=>ke,MouseToolDrawType:()=>Ce,PolyEditor:()=>he,Polygon:()=>me,PolygonEditor:()=>Ae,Polyline:()=>ge,PolylineEditor:()=>we,Provider:()=>I,Rectangle:()=>Te,ScaleControl:()=>Oe,Text:()=>De,TileLayer:()=>re,TileLayerType:()=>te,ToolBarControl:()=>ze,Weather:()=>je,initialState:()=>E,reducer:()=>y,requireCss:()=>xe,requireScript:()=>Le,useAutoComplete:()=>A,useBezierCurve:()=>S,useCircle:()=>R,useCircleMarker:()=>U,useContextMenu:()=>z,useControlBarControl:()=>B,useEllipse:()=>Z,useEventProperties:()=>M,useGeolocation:()=>Y,useHawkEyeControl:()=>J,useInfoWindow:()=>Q,useMap:()=>C,useMapContext:()=>w,useMapTypeControl:()=>oe,useMarker:()=>le,useMassMarks:()=>de,usePolygon:()=>Me,usePolyline:()=>ye,usePortal:()=>p,usePrevious:()=>f,useRectangle:()=>be,useScaleControl:()=>Re,useSetStatus:()=>d,useSettingProperties:()=>m,useText:()=>Ue,useTileLayer:()=>ae,useToolBarControl:()=>He,useVisiable:()=>v,useWeather:()=>_e});var o=t(787),n=t.n(o),a=t(828),i=t(310),l=["children"],s=n=>{var{children:t}=n,r=e(n,l),[s,u]=(0,o.useState)(!1),[c,p]=(0,o.useState)();return(0,o.useEffect)((()=>{var e=r.akey||r.akay||"",o=r.plugins||(r.plugin?r.plugin.split(","):[]);(0,a.load)({key:e,plugins:o,version:r.version||"2.0",AMapUI:r.AMapUI,Loca:r.Loca}).then((()=>{p(void 0),u(!0)})).catch((e=>{p(e)}))}),[r.akey,r.akay]),c?(0,i.jsx)("div",{style:{color:"red"},children:c.message}):s?(0,i.jsx)(o.Fragment,{children:t}):null};function u(){return u=Object.assign?Object.assign.bind():function(e){for(var o=1;o{var[e]=n().useState((()=>document.createElement("div"))),[a,t]=(0,o.useState)({render:()=>null,remove:()=>null}),r=n().useCallback((e=>({render:o=>{var{children:n}=o;return n?(0,c.createPortal)(n,e):null},remove:e=>{e&&(0,c.unmountComponentAtNode)(e)}})),[]);return(0,o.useEffect)((()=>{e&&a.remove();var o=r(e);return t(o),()=>{o.remove(e)}}),[e]),{Portal:a.render,container:e}};function d(e,n,a){void 0===n&&(n={}),void 0===a&&(a=[]),a.forEach((a=>{var t=a,[r,i]=(0,o.useState)(n[t]);(0,o.useEffect)((()=>{if(e&&void 0!==n[t]&&n[t]!==r){var o=e.getStatus();e.setStatus(u({},o,{[t]:n[t]})),i(n[t])}}),[e,n[t]])}))}function v(e,n){var[a,t]=(0,o.useState)(n);(0,o.useEffect)((()=>{e&&void 0!==n&&(n?e.show&&e.show():e.hide&&e.hide(),n!==a&&t(n))}),[e,n])}function f(e){var n=(0,o.useRef)();return(0,o.useEffect)((()=>{n.current=e})),n.current}function M(e,n,a,t){void 0===n&&(n={}),void 0===a&&(a=[]),a.forEach((a=>{var t=n[a];(0,o.useEffect)((()=>{if(e){var o=a.toLocaleLowerCase().replace(/^on/,"");return t&&o&&e.on(o,t),()=>{o&&t&&e.off(o,t)}}}),[e,t])}))}function m(e,n,a){void 0===e&&(e={}),void 0===n&&(n={}),void 0===a&&(a=[]),a.forEach((a=>{var t="set"+a,r=""+a.charAt(0).toLowerCase()+a.slice(1),i=n[r],[l,s]=(0,o.useState)(i);(0,o.useEffect)((()=>{e&&void 0!==i&&i!==l&&e[t]&&"function"===typeof e[t]&&(e[t](i),s(i))}),[e,i])}))}var A=function(e){void 0===e&&(e={});var[n,a]=(0,o.useState)();return(0,o.useEffect)((()=>{var o;if(AMap&&!n)return AMap.v?AMap.plugin(["AMap.Autocomplete"],(()=>{o=new AMap.Autocomplete(e),a(o)})):AMap.plugin(["AMap.AutoComplete"],(()=>{o=new AMap.AutoComplete(e),a(o)})),()=>{o&&a(void 0)}}),[]),m(n,e,["Type","City","CityLimit"]),M(n,e,["onChoose","onSelect"]),{autoComplete:n,setAutoComplete:a}},h=n().forwardRef(((e,n)=>{var{autoComplete:a}=A(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{autoComplete:a}))),null}));var E={map:void 0,AMap:void 0,container:void 0},y=(e,o)=>u({},e,o),g=n().createContext({state:E,dispatch:()=>null});function w(){var{state:e,dispatch:n}=(0,o.useContext)(g);return u({},e,{state:e,dispatch:n})}var C=function(e){void 0===e&&(e={});var n=u({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),[a,t]=(0,o.useState)(),[r,i]=(0,o.useState)(e.zoom||15),[l,s]=(0,o.useState)(e.container),{dispatch:c}=(0,o.useContext)(g);return(0,o.useEffect)((()=>{if(l&&!a&&AMap){l.className=l.className+" react-amap-wapper";var e=new AMap.Map(l,u({zoom:r},n));t(e)}return()=>{a&&(a.clearInfoWindow(),a.clearLimitBounds(),a.clearMap(),a.destroy(),t(void 0))}}),[l,a]),(0,o.useEffect)((()=>(a&&l&&c({map:a,container:l,AMap:AMap}),()=>{c({map:void 0,container:void 0,AMap:void 0})})),[a,l]),(0,o.useMemo)((()=>{a&&"number"===typeof e.zoom&&r!==e.zoom&&e.zoom>=2&&e.zoom<=20&&(i(e.zoom),a.setZoom(e.zoom))}),[r,e.zoom]),(0,o.useMemo)((()=>{e.center&&a&&a.setCenter(e.center)}),[a,e.center]),d(a,e,["dragEnable","zoomEnable","jogEnable","pitchEnable","rotateEnable","animateEnable","keyboardEnable"]),m(a,e,["Zoom","LabelzIndex","Layers","City","Bounds","LimitBounds","Lang","Rotation","DefaultCursor","MapStyle","Features","DefaultLayer","Pitch"]),M(a,e,["onMouseMove","onZoomChange","onMapMove","onMouseWheel","onZoomStart","onMouseOver","onMouseOut","onDblClick","onClick","onZoomEnd","onMoveEnd","onMouseUp","onMouseDown","onRightClick","onMoveStart","onDragStart","onDragging","onDragEnd","onHotspotOut","onHotspotOver","onTouchStart","onComplete","onHotspotClick","onTouchMove","onTouchEnd","onResize"]),{map:a,setMap:t,zoom:r,setZoom:i,container:l,setContainer:s}},k=["className","children"],I=e=>{var[n,a]=(0,o.useReducer)(y,E);return(0,i.jsx)(g.Provider,{value:u({},n,{state:n,dispatch:a}),children:e.children})},b=(0,o.forwardRef)(((n,a)=>{var{className:t,children:r}=n,l=e(n,k),s=window.AMap,[c,p]=(0,o.useReducer)(y,E),d=(0,o.useRef)(null),{setContainer:v,container:f,map:M}=C(u({container:l.container||d.current},l));(0,o.useEffect)((()=>v(d.current)),[d.current]),(0,o.useImperativeHandle)(a,(()=>u({},l,{map:M,AMap:s,container:l.container||d.current})),[M]);var m=o.Children.toArray(r);return(0,o.useEffect)((()=>{M&&p({map:M,container:d.current,AMap:s})}),[M]),(0,i.jsxs)(g.Provider,{value:u({},c,{state:c,dispatch:p}),children:[!l.container&&(0,i.jsx)("div",{ref:d,className:t,style:u({fontSize:1,width:"100%",height:"100%"},l.style)}),s&&M&&"function"===typeof r&&r({AMap:s,map:M,container:f}),s&&M&&m.map(((e,n)=>(0,o.isValidElement)(e)?"string"===typeof e?(0,o.cloneElement)((0,i.jsx)(o.Fragment,{children:e}),{key:n}):e.type&&"string"===typeof e.type?(0,o.cloneElement)(e,{key:n}):(0,o.cloneElement)(e,u({},e.props,{AMap:s,map:M,container:f,key:n})):null))]})})),T=["visiable"],S=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,T),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.BezierCurve(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Options","Path","ExtData","ExtData"]),M(i,n,["onHide","onShow","onDblClick","onMouseOver","onMouseUp","onMouseDown","onclick","onTouchEnd","onTouchMove","onTouchStart","onRightClick","onMouseOut"]),{bezierCurve:i,setBezierCurve:l}},x=n().forwardRef(((e,n)=>{var{bezierCurve:a}=S(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{bezierCurve:a}))),null})),L=["visiable"],R=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,L),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Circle(u({},t));r.add(e),l(e)}return()=>{l((e=>{e&&r&&r.remove(e)}))}}),[r]),v(i,a),m(i,n,["Center","Raius","Options","ExtData"]),M(i,n,["onHide","onShow","onRightClick","onClick","onTouchEnd","onDblClick","onTouchMove","onTouchStart","onMouseOut","onMouseOver","onMouseUp","onMouseDown"]),{circle:i,setCircle:l}},O=n().forwardRef(((e,n)=>{var{circle:a}=R(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{circle:a}))),null})),P=["visiable"],U=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,P),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.CircleMarker(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Center","Raius","zIndex","Bubble","Cursor","StrokeColor","StrokeOpacity","StrokeWeight","FillColor","FillOpacity","Draggable","ExtData"]),M(i,n,["onHide","onShow","onMouseover","onTouchend","onClick","onTouchmove","onRightclick","onMouseup","onMouseout","onTouchstart","onMousedown","onDblclick"]),{circleMarker:i,setCircleMarker:l}},D=n().forwardRef(((e,n)=>{var{circleMarker:a}=U(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{circleMarker:a}))),null})),H=["position"],z=function(n){void 0===n&&(n={});var{position:a}=n,t=e(n,H),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.ContextMenu(u({},t));l(e);var o=o=>e.open(r,a||o.lnglat);return r.on("rightclick",o),()=>{e&&(e.close(),r.off("rightclick",o),l(void 0))}}}),[r]),M(i,n,["onOpen","onClose"]),{contextMenu:i,setContextMenu:l}},_=function(){};var j=n().forwardRef(((e,a)=>{var{contextMenu:t}=z(e);(0,o.useImperativeHandle)(a,(()=>u({},e,{contextMenu:t})));var r=n().Children.toArray(e.children);return(0,i.jsx)(o.Fragment,{children:AMap&&t&&r.map(((o,a)=>n().isValidElement(o)?n().cloneElement(o,u({},o.props,{AMap:AMap,map:e.map,contextMenu:t,key:a})):null))})}));function B(e){void 0===e&&(e={});var{position:n,visiable:a,offset:t}=e,[r,i]=(0,o.useState)(),{map:l}=w();return(0,o.useEffect)((()=>{var e;if(l&&!r)return l.plugin(["AMap.ControlBar","AMap.HawkEye"],(()=>{e=new AMap.ControlBar({offset:t,position:n}),l.addControl(e),i(e)})),()=>{e&&l.removeControl(e)}}),[l]),v(r,a),{controlBarControl:r,setControlBarControl:i}}j.Item=function(e){void 0===e&&(e={});var{text:n="",onClick:a=_}=e;return(0,o.useEffect)((()=>(e.contextMenu&&e.contextMenu.addItem(n,a,1),()=>{e.contextMenu&&e.contextMenu.removeItem(n,a)})),[e.contextMenu,e.text,e.onClick]),null};var N=n().forwardRef(((e,n)=>{var{controlBarControl:a}=B(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{controlBarControl:a})),[a]),null})),W=["visiable"],Z=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,W),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Ellipse(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Center","Radius","Options","ExtData"]),M(i,n,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{ellipse:i,setEllipse:l}},F=n().forwardRef(((e,n)=>{var{ellipse:a}=Z(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{ellipse:a}))),null})),G=["type","onComplete","onError"],Y=function(n){void 0===n&&(n={});var{type:a="position",onComplete:t,onError:r}=n,i=e(n,G),[l,s]=(0,o.useState)(),{map:c}=w();function p(e,o){"complete"===e&&t?t(o):r&&r(o)}return(0,o.useEffect)((()=>{var e;if(AMap&&!l)return AMap.plugin(["AMap.Geolocation"],(()=>{e=new AMap.Geolocation(u({},i)),s(e)})),()=>{e&&s(void 0)}}),[AMap]),(0,o.useMemo)((()=>{if(/^(position|cityInfo)$/.test(a)){var e="position"===a?"getCurrentPosition":"getCityInfo";l&&c?(l[e](p),c.addControl(l)):l&&l[e](p)}}),[l]),{geolocation:l,setGeolocation:s}},q=n().forwardRef(((e,n)=>{var{geolocation:a}=Y(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{geolocation:a}))),null})),V=["offset","visiable"];function J(n){void 0===n&&(n={});var[a,t]=(0,o.useState)(),{offset:r,visiable:i}=n,l=e(n,V),{map:s}=w();return(0,o.useEffect)((()=>{var e;if(s&&!a)return s.plugin(["AMap.HawkEye"],(()=>{e=new AMap.HawkEye(u({offset:r},l)),s.addControl(e),t(e)})),()=>{e&&s&&(s&&s.removeControl(e),t(void 0))}}),[s]),v(a,i),{hawkEyeControl:a,setHawkEyeControl:t}}var $=n().forwardRef(((e,n)=>{var{hawkEyeControl:a}=J(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{hawkEyeControl:a})),[a]),null})),K=["visiable","position"],Q=function(n){void 0===n&&(n={});var{visiable:a,position:t}=n,r=e(n,K),{map:i}=w(),[l,s]=(0,o.useState)(a),[c,d]=(0,o.useState)(),{container:v,Portal:f}=p();return(0,o.useEffect)((()=>{if(AMap&&i&&!c){var e=i.getCenter();n.children&&(r.content=v);var o=new AMap.InfoWindow(u({},r,{position:t||e}));return d(o),l&&o.open(i,t||e),()=>{o&&(i&&i.remove(o),d(void 0))}}}),[i]),(0,o.useEffect)((()=>{c&&c.setContent(n.children?v:r.content||"")}),[n.children,v,r.content,c]),(0,o.useMemo)((()=>{if(l!==a&&c&&i)if(s(a),a){var e=i.getCenter();c.open(i,t||e)}else c.close()}),[a,c]),(0,o.useEffect)((()=>{if(i&&c&&a){var e=i.getCenter();c.open(i,t||e)}}),[t]),m(c,n,["Content","Anchor","Size"]),M(c,n,["onOpen","onClose","onChange"]),{isOpen:l,setIsOpen:s,infoWindow:c,setInfoWindow:d,InfoWindowPortal:f}},X=n().forwardRef(((e,n)=>{var{infoWindow:a,InfoWindowPortal:t}=Q(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{infoWindow:a}))),(0,i.jsx)(t,{children:e.children})})),ee=["visiable","defaultType"];function oe(n){void 0===n&&(n={});var[a,t]=(0,o.useState)(),{visiable:r,defaultType:i=0}=n,l=e(n,ee),{map:s}=w();return(0,o.useEffect)((()=>{var e;if(s&&!a)return s.plugin(["AMap.MapType"],(()=>{e=new AMap.MapType(u({defaultType:i},l)),s.addControl(e),t(e)})),()=>{e&&s.removeControl(e)}}),[s]),v(a,r),{mapTypeControl:a,setMapTypeControl:t}}var ne=n().forwardRef(((e,n)=>{var{mapTypeControl:a}=oe(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{mapTypeControl:a})),[a]),null}));function ae(e){void 0===e&&(e={});var[n,a]=(0,o.useState)(),{visiable:t,type:r,options:i}=e,{map:l}=w();return(0,o.useEffect)((()=>{if(l){var o=null;if(r)switch(r){case te.ROADNET:o=new AMap.TileLayer.RoadNet({});break;case te.SATELLITE:o=new AMap.TileLayer.Satellite({});break;case te.TRAFFIC:o=new AMap.TileLayer.Traffic({})}return i&&(o=new AMap.TileLayer(i)),o&&(l.add(o),e.onAdded&&e.onAdded(),a(o)),()=>{o&&(AMap.v?l&&l.remove(o):l&&l.removeLayer(o),a(null),e.onRemoved&&e.onRemoved())}}}),[l,r,i]),v(n,t),{tileLayer:n,setTileLayer:a}}var te=function(e){return e.SATELLITE="satellite",e.TRAFFIC="traffic",e.ROADNET="roadnet",e}({}),re=n().forwardRef(((e,n)=>{var{tileLayer:a}=ae(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{tileLayer:a})),[a]),null})),ie=["visiable","children"],le=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,ie),{map:r}=w(),[i,l]=(0,o.useState)(),{container:s,Portal:c}=p();return(0,o.useEffect)((()=>{if(!i&&r){n.children&&(t.content=s);var e=new AMap.Marker(u({},t));r.add(e),l(e)}return()=>{i&&(i.setMap(null),l(void 0))}}),[r,i]),v(i,a),m(i,n,["Path","Anchor","Offset","Animation","Clickable","Position","Angle","Label","zIndex","Icon","Draggable","Cursor","Content","Map","Title","Top","Shadow","Shape","ExtData"]),M(i,n,["onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragging","onDragEnd","onMoving","onMoveEnd","onMoveAlong","onTouchStart","onTouchMove","onTouchEnd"]),{marker:i,setMarker:l,MarkerPortal:c}},se=(0,o.forwardRef)(((e,n)=>{var{marker:a,MarkerPortal:t}=le(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{marker:a})),[a]),(0,i.jsx)(t,{children:e.children})})),ue=["visiable","children","text","icon"],ce=(0,o.forwardRef)(((n,a)=>{var{labelMarker:t}=function(n){void 0===n&&(n={});var{visiable:a,text:t,icon:r}=n,i=e(n,ue),{map:l,AMap:s}=w(),[c,p]=(0,o.useState)();return(0,o.useEffect)((()=>{if(!c&&l){var e,o=t;t||(o={content:"",direction:"right",offset:[-20,-5],style:{fontSize:12,fillColor:"#22886f",strokeColor:"#fff",strokeWidth:2}});var n=r;n||(n={image:"http://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png",size:[19,32],anchor:"center"});var a,d=new s.LabelMarker(u({style:n,icon:n,text:o},i));p(d),0===(null==s||null==(e=s.v)?void 0:e.indexOf("1.4"))&&(l.labelMarkersLayer?a=l.labelMarkersLayer:(l.labelMarkersLayer=a=new s.LabelsLayer({zooms:[3,20],zIndex:101,collision:!0,animation:!0}),l.add(a)),a.add(d)),l.add(d)}return()=>{var e,o;c&&(0===(null==s||null==(e=s.v)?void 0:e.indexOf("1.4"))&&(null==l||null==(o=l.labelMarkersLayer)||o.remove(c)),p(void 0))}}),[c,l]),v(c,a),m(c,n,["Name","Position","Zooms","Opacity","zIndex","Rank","Text","Icon","ExtData","Top"]),M(c,n,["onMousedown","onMouseup","onTouchstart","onTouchmove","onTouchend","onClick","onMousemove","onMouseover","onMouseout"]),{labelMarker:c,setLabelMarker:p}}(n);return(0,o.useImperativeHandle)(a,(()=>u({},n,{labelMarker:t})),[t]),null})),pe=["visiable"],de=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,pe),{map:r}=w(),{opacity:i=1,zIndex:l=1111,style:s,data:u}=t||{},[c,p]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!c){var e=s;e||(e=[{url:"https://webapi.amap.com/images/mass/mass0.png",anchor:new AMap.Pixel(6,6),size:new AMap.Size(11,11),zIndex:3},{url:"https://webapi.amap.com/images/mass/mass1.png",anchor:new AMap.Pixel(4,4),size:new AMap.Size(7,7),zIndex:2},{url:"https://webapi.amap.com/images/mass/mass2.png",anchor:new AMap.Pixel(3,3),size:new AMap.Size(5,5),zIndex:1}]);var o=new AMap.MassMarks(u||[],{opacity:i,zIndex:l,style:e});return p(o),o.setMap(r),()=>{o&&(o.clear(),p(void 0))}}}),[r]),v(c,a),m(c,n,["Map","Data","Style","Opacity","zIndex","Zooms"]),M(c,n,["onClick","onDblClick","onMouseMove","onMouseOut","onMouseUp","onMouseDown","onMouseOver","onTouchStart","onTouchEnd"]),{massMarks:c,setMassMarks:p}},ve=n().forwardRef(((e,n)=>{var{massMarks:a}=de(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{massMarks:a})),[a,e]),null})),fe=["visiable"],Me=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,fe),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Polygon(u({},t));return r.add(e),l(e),()=>{if(e)try{r&&r.remove(e)}catch(o){}l(void 0)}}}),[r]),(0,o.useEffect)((()=>{i&&i.setOptions(t)}),[i,t]),v(i,a),m(i,n,["Path","Options","Map","ExtData","Draggable"]),M(i,n,["onClick","onDblClick","onRightClick","onHide","onShow","onMouseDown","onMouseUp","onMouseOver","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onTouchStart","onTouchMove","onTouchEnd"]),{polygon:i,setPolygon:l}},me=(0,o.forwardRef)(((e,n)=>{var{children:a}=e,{polygon:t}=Me(e);if((0,o.useImperativeHandle)(n,(()=>u({},e,{polygon:t})),[t]),a&&(0,o.isValidElement)(a)&&t){var r={polygon:t,polyElement:t};return(0,o.cloneElement)(a,u({},e,r))}return null})),Ae=(0,o.forwardRef)(((e,n)=>{var{active:a,polygon:t}=e,{map:r}=w(),[i,l]=(0,o.useState)(!0),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{polyEditor:s}))),(0,o.useEffect)((()=>{if(t&&r&&!s&&AMap&&AMap.PolygonEditor){var e=new AMap.PolygonEditor(r,t);t.on("hide",(()=>l(!1))),t.on("show",(()=>l(!0))),c(e)}}),[t]),(0,o.useEffect)((()=>{s&&(i&&!a?(s.close(),e.onEnd&&e.onEnd({target:e.polygon})):i&&a?(s.open(),e.onAdd&&e.onAdd({target:e.polygon})):!i&&a&&(s.close(),e.onEnd&&e.onEnd({target:e.polygon})))}),[a,i]),M(s,e,["onEnd","onAddnode","onRemovenode","onAdjust","onMove","onAdd"]),null})),he=(0,o.forwardRef)(((e,n)=>{var{active:a,polyElement:t}=e,{map:r}=w(),[i,l]=(0,o.useState)(!0),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{polyEditor:s}))),(0,o.useEffect)((()=>{if(t&&r&&!s&&AMap&&AMap.PolyEditor){var e=new AMap.PolyEditor(r,t);t.on("hide",(()=>l(!1))),t.on("show",(()=>l(!0))),c(e)}}),[t]),(0,o.useEffect)((()=>{s&&(i&&!a?(s.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})):i&&a?s.open():!i&&a&&(s.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})))}),[a,i]),M(s,e,["onEnd","onAddnode","onAdjust","onRemovenode"]),null})),Ee=["visiable"];function ye(n){void 0===n&&(n={});var[a,t]=(0,o.useState)(),{visiable:r}=n,i=e(n,Ee),{map:l}=w();return(0,o.useEffect)((()=>{if(l&&!a){var e=new AMap.Polyline(i);return l.add(e),t(e),()=>{e&&(AMap.v?l&&l.remove(e):l&&l.removeLayer(e),t(void 0))}}}),[l]),(0,o.useEffect)((()=>{a&&a.setOptions(i)}),[a,i]),v(a,r),m(a,n,["Path","Options","Map","ExtData","Draggable"]),M(a,n,["onHide","onShow","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onRightClick","onDblClick","onMouseDown","onClick","onMouseOver","onTouchEnd","onTouchMove","onTouchStart","onMouseUp"]),{polyline:a,setPolyline:t}}var ge=n().forwardRef(((e,n)=>{var{children:a}=e,{polyline:t}=ye(e);if((0,o.useImperativeHandle)(n,(()=>u({},e,{polyline:t})),[t]),a&&(0,o.isValidElement)(a)&&t){var r={polyElement:t,polyline:t};return(0,o.cloneElement)(a,u({},e,r))}return null})),we=(0,o.forwardRef)(((e,n)=>{var{active:a,polyline:t}=e,{map:r}=w(),[i,l]=(0,o.useState)(!0),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{polyEditor:s}))),(0,o.useEffect)((()=>{if(t&&r&&!s&&AMap&&AMap.PolylineEditor){var e=new AMap.PolylineEditor(r,t);t.on("hide",(()=>l(!1))),t.on("show",(()=>l(!0))),c(e)}}),[t]),(0,o.useEffect)((()=>{s&&(i&&!a?(s.close(),e.onEnd&&e.onEnd({target:e.polyline})):i&&a?(s.open(),e.onAdd&&e.onAdd({target:e.polyline})):!i&&a&&(s.close(),e.onEnd&&e.onEnd({target:e.polyline})))}),[a,i,s]),M(s,e,["onEnd","onAddnode","onRemovenode","onAdjust","onAdd"]),null})),Ce=function(e){return e[e.MARKER=0]="MARKER",e[e.POLYLINE=1]="POLYLINE",e[e.POLYGON=2]="POLYGON",e[e.CIRCLE=3]="CIRCLE",e[e.RECTANGLE=4]="RECTANGLE",e[e.MEASUREAREA=5]="MEASUREAREA",e[e.RULE=6]="RULE",e[e.RECTZOOMIN=7]="RECTZOOMIN",e[e.RECTZOOMOUT=8]="RECTZOOMOUT",e}({}),ke=(0,o.forwardRef)(((e,n)=>{var{active:a,type:t,drawElementOptions:r,ifClear:i}=e,{map:l}=w(),[s,c]=(0,o.useState)();return(0,o.useImperativeHandle)(n,(()=>u({},e,{mouseTool:s}))),(0,o.useEffect)((()=>{if(l&&!s&&AMap&&AMap.MouseTool){var e=new AMap.MouseTool(l);c(e)}}),[l,Map,AMap.MouseTool]),(0,o.useEffect)((()=>{if(s)if(a)switch(t){case Ce.MARKER:s.marker(r||{});break;case Ce.POLYLINE:s.polyline(r||{});break;case Ce.POLYGON:s.polygon(r||{});break;case Ce.CIRCLE:s.circle(r||{});break;case Ce.RECTANGLE:s.rectangle(r||{});break;case Ce.MEASUREAREA:s.measureArea(r||{});break;case Ce.RULE:s.rule(r||{});break;case Ce.RECTZOOMIN:s.rectZoomIn(r||{});break;case Ce.RECTZOOMOUT:s.rectZoomOut(r||{})}else s.close(i)}),[a,i]),M(s,e,["onDraw"]),null})),Ie=["visiable"],be=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,Ie),{map:r}=w(),[i,l]=(0,o.useState)();return(0,o.useEffect)((()=>{if(AMap&&r&&!i){var e=new AMap.Rectangle(u({},t));return r.add(e),l(e),()=>{e&&(AMap.v?r&&r.remove(e):r&&r.removeLayer(e),l(void 0))}}}),[r]),v(i,a),m(i,n,["Bounds","Options","Map","ExtData"]),M(i,n,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{rectangle:i,setRectangle:l}},Te=n().forwardRef(((e,n)=>{var{rectangle:a}=be(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{rectangle:a}))),null})),Se={};function xe(e,o){void 0===o&&(o="_react_amap_css");var n=document&&(document.head||document.getElementsByTagName("head")[0]),a=document.getElementById(o);return new Promise(((t,r)=>{if(!document||e in Se||a)t();else{var i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.id=o,i.href=e,i.onerror=o=>{n.removeChild(i),r(new URIError("The css "+e+" is no accessible."))},i.onload=()=>{Se[e]=!0,t()},n.appendChild(i)}}))}function Le(e,o){void 0===o&&(o="_react_amap_plugin");var n=document&&(document.head||document.getElementsByTagName("head")[0]),a=document.getElementById(o);return new Promise(((t,r)=>{if(!document||e in Se||a)t();else{var i=document.createElement("script");i.type="text/javascript",i.id=o,i.async=!0,i.defer=!0,i.src=e,i.onerror=o=>{n.removeChild(i),r(new URIError("The Script "+e+" is no accessible."))},i.onload=()=>{Se[e]=!0,t()},n.appendChild(i)}}))}function Re(e){void 0===e&&(e={});var[n,a]=(0,o.useState)(),{position:t,visiable:r,offset:i}=e,{map:l}=w();return(0,o.useEffect)((()=>{var e;if(l&&!n)return l.plugin(["AMap.Scale"],(()=>{e=new AMap.Scale({offset:i,position:t}),l.addControl(e),a(e)})),()=>{e&&l.removeControl(e)}}),[l]),v(n,r),{scaleControl:n,setScaleControl:a}}var Oe=n().forwardRef(((e,n)=>{var{scaleControl:a}=Re(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{scaleControl:a})),[a]),null})),Pe=["visiable"],Ue=function(n){void 0===n&&(n={});var{visiable:a}=n,t=e(n,Pe),[r,i]=(0,o.useState)(),{map:l}=w(),{container:s,Portal:c}=p();return(0,o.useEffect)((()=>{if(AMap&&l&&!r){n.children&&(t.text=s.innerHTML);var e=new AMap.Text(u({},t));return l.add(e),i(e),()=>{e&&(e.remove(),i(void 0))}}}),[l]),(0,o.useEffect)((()=>{r&&r.setText(n.children?s.innerHTML:n.text||"")}),[n.children,n.text,s,r]),v(r,a),m(r,n,["Style","Title","Clickable","Draggable","Map","Position","Offset","Angle","zIndex","Top","Cursor","ExtData"]),M(r,n,["onMoving","onTouchMove","onTouchEnd","onMoveaLong","onTouchStart","onMoveEnd","onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragEnd","onDragging"]),{text:r,setText:i,TextPortal:c}},De=(0,o.forwardRef)(((e,n)=>{var{text:a,TextPortal:t}=Ue(u({},e));return(0,o.useImperativeHandle)(n,(()=>u({},e,{text:a}))),e.children?(0,i.jsx)(t,{children:e.children}):null}));function He(e){void 0===e&&(e={});var[n,a]=(0,o.useState)(),{position:t,visiable:r,offset:i}=e,{map:l}=w();return(0,o.useEffect)((()=>{var e;if(l&&!n)return l.plugin(["AMap.ToolBar"],(()=>{e=new AMap.ToolBar({offset:i,position:t}),l.addControl(e),a(e)})),()=>{e&&l.removeControl(e)}}),[l]),v(n,r),{toolBarControl:n,setToolBarControl:a}}var ze=n().forwardRef(((e,n)=>{var{toolBarControl:a}=He(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{toolBarControl:a})),[a]),null})),_e=function(e){void 0===e&&(e={});var{city:n="",type:a="live",onComplete:t,onError:r}=e,[i,l]=(0,o.useState)(),s="live"===a?"getLive":"getForecast";return(0,o.useEffect)((()=>{var e;if(AMap&&!i)return AMap.plugin(["AMap.Weather"],(()=>{e=new AMap.Weather,l(e)})),()=>{e&&l(void 0)}}),[]),(0,o.useMemo)((()=>{var e;i&&n&&a&&(e=i,a&&n&&/^(live|forecast)$/.test(a)&&e[s](n,((e,o)=>{e&&r?r(e):o&&t&&t(o)})))}),[i,n,a]),{weather:i,setWeather:l}},je=n().forwardRef(((e,n)=>{var{weather:a}=_e(e);return(0,o.useImperativeHandle)(n,(()=>u({},e,{weather:a}))),null}))})(),r})())); \ No newline at end of file diff --git a/asset-manifest.json b/asset-manifest.json index ce75e4912..24a3c59fd 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/react-amap/static/css/main.bcb671be.css", - "main.js": "/react-amap/static/js/main.6dd73f8f.js", + "main.js": "/react-amap/static/js/main.bbd0dd67.js", "static/css/7365.bf0e21c2.chunk.css": "/react-amap/static/css/7365.bf0e21c2.chunk.css", "static/js/7365.f4a91d19.chunk.js": "/react-amap/static/js/7365.f4a91d19.chunk.js", "static/css/3034.bf0e21c2.chunk.css": "/react-amap/static/css/3034.bf0e21c2.chunk.css", @@ -64,7 +64,7 @@ "static/js/9759.1ae4b3dc.chunk.js": "/react-amap/static/js/9759.1ae4b3dc.chunk.js", "static/css/5761.bf0e21c2.chunk.css": "/react-amap/static/css/5761.bf0e21c2.chunk.css", "static/js/5761.f774855c.chunk.js": "/react-amap/static/js/5761.f774855c.chunk.js", - "static/js/4702.3106727c.chunk.js": "/react-amap/static/js/4702.3106727c.chunk.js", + "static/js/4702.f6787a44.chunk.js": "/react-amap/static/js/4702.f6787a44.chunk.js", "static/js/837.7768b398.chunk.js": "/react-amap/static/js/837.7768b398.chunk.js", "static/js/3727.122c854f.chunk.js": "/react-amap/static/js/3727.122c854f.chunk.js", "static/js/2156.7c904b42.chunk.js": "/react-amap/static/js/2156.7c904b42.chunk.js", @@ -101,11 +101,11 @@ "react-vendor.js": "/react-amap/static/js/react-vendor.69b94a96.js", "static/js/658.9e987835.chunk.js": "/react-amap/static/js/658.9e987835.chunk.js", "static/js/8665.c974ce09.js": "/react-amap/static/js/8665.c974ce09.js", - "static/js/5775.4a5d7cbf.chunk.js": "/react-amap/static/js/5775.4a5d7cbf.chunk.js", + "static/js/5775.b3985d06.chunk.js": "/react-amap/static/js/5775.b3985d06.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.6dd73f8f.js.map": "/react-amap/static/js/main.6dd73f8f.js.map", + "main.bbd0dd67.js.map": "/react-amap/static/js/main.bbd0dd67.js.map", "7365.bf0e21c2.chunk.css.map": "/react-amap/static/css/7365.bf0e21c2.chunk.css.map", "7365.f4a91d19.chunk.js.map": "/react-amap/static/js/7365.f4a91d19.chunk.js.map", "3034.bf0e21c2.chunk.css.map": "/react-amap/static/css/3034.bf0e21c2.chunk.css.map", @@ -168,7 +168,7 @@ "9759.1ae4b3dc.chunk.js.map": "/react-amap/static/js/9759.1ae4b3dc.chunk.js.map", "5761.bf0e21c2.chunk.css.map": "/react-amap/static/css/5761.bf0e21c2.chunk.css.map", "5761.f774855c.chunk.js.map": "/react-amap/static/js/5761.f774855c.chunk.js.map", - "4702.3106727c.chunk.js.map": "/react-amap/static/js/4702.3106727c.chunk.js.map", + "4702.f6787a44.chunk.js.map": "/react-amap/static/js/4702.f6787a44.chunk.js.map", "837.7768b398.chunk.js.map": "/react-amap/static/js/837.7768b398.chunk.js.map", "3727.122c854f.chunk.js.map": "/react-amap/static/js/3727.122c854f.chunk.js.map", "2156.7c904b42.chunk.js.map": "/react-amap/static/js/2156.7c904b42.chunk.js.map", @@ -205,12 +205,12 @@ "react-vendor.69b94a96.js.map": "/react-amap/static/js/react-vendor.69b94a96.js.map", "658.9e987835.chunk.js.map": "/react-amap/static/js/658.9e987835.chunk.js.map", "8665.c974ce09.js.map": "/react-amap/static/js/8665.c974ce09.js.map", - "5775.4a5d7cbf.chunk.js.map": "/react-amap/static/js/5775.4a5d7cbf.chunk.js.map" + "5775.b3985d06.chunk.js.map": "/react-amap/static/js/5775.b3985d06.chunk.js.map" }, "entrypoints": [ "static/js/react-vendor.69b94a96.js", "static/js/8665.c974ce09.js", "static/css/main.bcb671be.css", - "static/js/main.6dd73f8f.js" + "static/js/main.bbd0dd67.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index ebdb5d45b..202b677a1 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -React AMap - 高德地图 React 组件React amap logo - 高德地图 React 组件
\ No newline at end of file +React AMap - 高德地图 React 组件React amap logo - 高德地图 React 组件
\ No newline at end of file diff --git a/static/js/4702.3106727c.chunk.js b/static/js/4702.f6787a44.chunk.js similarity index 99% rename from static/js/4702.3106727c.chunk.js rename to static/js/4702.f6787a44.chunk.js index bee0f4a7c..af56bc80e 100644 --- a/static/js/4702.3106727c.chunk.js +++ b/static/js/4702.f6787a44.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4702],{4702:function(e,a,i){i.r(a),a.default={components:{74:function(){function e(a){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(a)}(a=i(6836))&&a.__esModule;var a,t=function(a,i){if(!i&&a&&a.__esModule)return a;if(null===a||"object"!==e(a)&&"function"!==typeof a)return{default:a};var t=n(i);if(t&&t.has(a))return t.get(a);var p={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in a)if("default"!==s&&Object.prototype.hasOwnProperty.call(a,s)){var r=o?Object.getOwnPropertyDescriptor(a,s):null;r&&(r.get||r.set)?Object.defineProperty(p,s,r):p[s]=a[s]}p.default=a,t&&t.set(a,p);return p}(i(8573)),p=i(5775);function n(e){if("function"!==typeof WeakMap)return null;var a=new WeakMap,i=new WeakMap;return(n=function(e){return e?i:a})(e)}var o=function(){return t.default.createElement("div",null,t.default.createElement(p.Map,{style:{height:300}},t.default.createElement(p.ScaleControl,{offset:[16,30],position:"LB"}),t.default.createElement(p.ToolBarControl,{offset:[16,10],position:"RB"}),t.default.createElement(p.ControlBarControl,{offset:[16,180],position:"RB"}),t.default.createElement(p.Geolocation,{maximumAge:1e5,borderRadius:"5px",position:"RB",offset:[16,80],zoomToAccuracy:!0,showCircle:!0})),t.default.createElement(p.Map,{style:{height:300}},(function(e){e.AMap,e.map,e.container})))};return function(){return t.default.createElement(p.APILoader,{version:"2.0.5",akey:"a7a90e05a37d3f6bf76d4a9032fc9129"},t.default.createElement(o,null))}}()},data:{74:{name:74,meta:{},code:'"use strict";\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _reactDom = _interopRequireDefault(require("react-dom"));\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactAmap = require("@uiw/react-amap");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\nvar Demo = function Demo() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactAmap.ScaleControl, {\n offset: [16, 30],\n position: "LB"\n }), /*#__PURE__*/_react["default"].createElement(_reactAmap.ToolBarControl, {\n offset: [16, 10],\n position: "RB"\n }), /*#__PURE__*/_react["default"].createElement(_reactAmap.ControlBarControl, {\n offset: [16, 180],\n position: "RB"\n }), /*#__PURE__*/_react["default"].createElement(_reactAmap.Geolocation, {\n maximumAge: 100000,\n borderRadius: "5px",\n position: "RB",\n offset: [16, 80],\n zoomToAccuracy: true,\n showCircle: true\n })), /*#__PURE__*/_react["default"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, function (_ref) {\n var AMap = _ref.AMap,\n map = _ref.map,\n container = _ref.container;\n return;\n }));\n};\nvar Mount = function Mount() {\n return /*#__PURE__*/_react["default"].createElement(_reactAmap.APILoader, {\n version: "2.0.5",\n akey: "a7a90e05a37d3f6bf76d4a9032fc9129"\n }, /*#__PURE__*/_react["default"].createElement(Demo, null));\n};\nreturn Mount;',language:"jsx",value:'import ReactDOM from \'react-dom\';\nimport React, { useEffect, useRef, Fragment } from \'react\';\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from \'@uiw/react-amap\';\n\nconst Demo = () => (\n
\n \n \n \n \n \n \n \n {({ AMap, map, container }) => {\n return;\n }}\n \n
\n);\n\nconst Mount = () => (\n \n \n \n)\nexport default Mount'}},source:'

\n

\n \n \u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6 logo\n \n

\n

\u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6

\n\n

\n \n Build & Deploy\n \n \n Downloads\n \n \n Open in unpkg\n \n \n npm version\n \n \n Gitee Repo\n \n

\n\n\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8e React \u5c01\u88c5\u7684\u9ad8\u5fb7\u5730\u56fe\u7ec4\u4ef6\uff0c\u5e2e\u52a9\u4f60\u8f7b\u677e\u7684\u63a5\u5165\u5730\u56fe\u5230 React \u9879\u76ee\u4e2d\u3002\u9664\u4e86\u5fc5\u987b\u5f15\u7528\u7684 APILoader/Map \u7ec4\u4ef6\u5916\uff0c\u6211\u4eec\u76ee\u524d\u63d0\u4f9b\u4e86\u6700\u5e38\u7528\u7684\u5730\u56fe\u7ec4\u4ef6\uff0c\u80fd\u6ee1\u8db3\u5927\u90e8\u5206\u7b80\u5355\u7684\u4e1a\u52a1\u573a\u666f\uff1b\u5982\u679c\u4f60\u6709\u66f4\u590d\u6742\u7684\u9700\u6c42\uff0c\u6216\u8005\u89c9\u5f97\u9ed8\u8ba4\u63d0\u4f9b\u7684\u7ec4\u4ef6\u529f\u80fd\u4e0d\u591f\uff0c\u53ef\u4ee5\u4f7f\u7528 Map \u7ec4\u4ef6\u8fd4\u56de\u7684\u5730\u56fe\u5b9e\u4f8b\uff0c\u5b8c\u5168\u81ea\u5b9a\u4e49\u4e00\u4e2a\u5730\u56fe\u7ec4\u4ef6\uff0c\u7136\u540e\u6839\u636e\u9ad8\u5fb7\u539f\u751f API \u505a\u9ad8\u5fb7\u5141\u8bb8\u4f60\u505a\u7684\u4e00\u5207\u4e8b\u60c5\u3002\n\n\u6587\u6863\u5b9e\u4f8b\u9884\u89c8: [Github Web](https://uiwjs.github.io/react-amap/) | [Gitee Web](https://uiw.gitee.io/react-amap)\n\n### \u7279\u6027\n\n- \u267b\ufe0f \u81ea\u52a8\u52a0\u8f7d\u9ad8\u5fb7\u5730\u56fe SDK\uff08\u901a\u8fc7\u521b\u5efa Script \u6807\u7b7e\u7684\u5f62\u5f0f\u52a0\u8f7d\uff09\uff0c\u5305\u62ec\u7b2c\u4e09\u65b9 SDK\u3002\n- \ud83d\udcda \u4f7f\u7528 Typescript \u7f16\u5199\uff0c\u96c6\u6210\u9ad8\u5fb7\u5730\u56fe SDK [@type](https://github.com/uiwjs/react-amap/tree/master/packages/types) \u58f0\u660e\u6587\u4ef6\uff08\u5305\u62ec\u4e2d\u6587\u6ce8\u91ca\uff09\u3002\n- \u269b\ufe0f \u652f\u6301 React Hook \u65b0\u589e\u7279\u6027\uff08\u9700\u8981 React 16.8+\uff09\u3002\n- \ud83d\udc9d \u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u3002\n- \ud83d\udce6 \u62c6\u5206\u6210\u591a\u4e2a\u5305\uff0c\u6309\u9700\u4f7f\u7528\u5305\u3002\n\n### \u5b89\u88c5\n\n> \u4e0d\u4f9d\u8d56 [`uiw`](https://github.com/uiwjs/uiw) \u7ec4\u4ef6\u5e93\n\n```bash\n# \u96c6\u6210\u4e86\u6240\u6709\u4f9d\u8d56\u5305\nnpm install @uiw/react-amap --save\n\n# \u6216\u8005\u6309\u9700\u5b89\u88c5\u5305\nnpm install @uiw/react-amap-map @uiw/react-amap-api-loader --save\n```\n\n`v4` \u5347\u7ea7\u5230 `v5`\uff0c`APILoader` \u4e3b\u8981\u662f\u5bf9 `APILoader` \u505a\u4e86\u5347\u7ea7\uff0c~~`akay`~~ => `akey`\n\n```diff\n \n \n \n```\n\n### \u4f7f\u7528\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-amap-example-y0n6c-y0n6c?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx mdx:preview\nimport ReactDOM from \'react-dom\';\nimport React, { useEffect, useRef, Fragment } from \'react\';\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from \'@uiw/react-amap\';\n\nconst Demo = () => (\n
\n \n \n \n \n \n \n \n {({ AMap, map, container }) => {\n return;\n }}\n \n
\n);\n\nconst Mount = () => (\n \n \n \n)\nexport default Mount\n```\n\n### \u5bb9\u5668\u7ec4\u4ef6\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap`](https://uiwjs.github.io/react-amap/) \u96c6\u6210\u6240\u6709\u5305 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap.svg)](https://www.npmjs.com/package/@uiw/react-amap) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap/file/README.md)\n[`@uiw/react-amap-api-loader`](https://uiwjs.github.io/react-amap/#/api-loader) \u52a0\u8f7d SDK (\u5fc5\u987b) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-api-loader?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-api-loader?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-api-loader.svg)](https://www.npmjs.com/package/@uiw/react-amap-api-loader) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-api-loader/file/README.md)\n[`@uiw/react-amap-map`](https://uiwjs.github.io/react-amap/#/map) \u52a0\u8f7d\u5730\u56fe(\u5bb9\u5668) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map.svg)](https://www.npmjs.com/package/@uiw/react-amap-map) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map/file/README.md)\n\n### \u63a7\u4ef6\u7ec4\u4ef6\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-scale-control`](https://uiwjs.github.io/react-amap/#/scale-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-scale-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-scale-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-scale-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-scale-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-scale-control/file/README.md)\n[`@uiw/react-amap-control-bar-control`](https://uiwjs.github.io/react-amap/#/control-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-control-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-control-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-control-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-control-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-control-bar-control/file/README.md)\n[`@uiw/react-amap-hawk-eye-control`](https://uiwjs.github.io/react-amap/#/hawk-eye-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-hawk-eye-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-hawk-eye-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-hawk-eye-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-hawk-eye-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-hawk-eye-control/file/README.md)\n[`@uiw/react-amap-map-type-control`](https://uiwjs.github.io/react-amap/#/map-type-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map-type-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map-type-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map-type-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-map-type-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map-type-control/file/README.md)\n[`@uiw/react-amap-tool-bar-control`](https://uiwjs.github.io/react-amap/#/tool-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tool-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tool-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tool-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-tool-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tool-bar-control/file/README.md)\n\n### \u8986\u76d6\u7269\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-marker`](https://uiwjs.github.io/react-amap/#/marker) \u70b9\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-marker/file/README.md)\n[`@uiw/react-amap-label-marker`](https://uiwjs.github.io/react-amap/#/label-marker) \u70b9\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-label-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-label-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-label-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-label-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-label-marker/file/README.md)\n[`@uiw/react-amap-text`](https://uiwjs.github.io/react-amap/#/text) \u6587\u672c\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-text?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-text?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-text.svg)](https://www.npmjs.com/package/@uiw/react-amap-text) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-text/file/README.md)\n[`@uiw/react-amap-tile-layer`](https://uiwjs.github.io/react-amap/#/tile-layer) \u6587\u672c\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tile-layer?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tile-layer?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tile-layer.svg)](https://www.npmjs.com/package/@uiw/react-amap-tile-layer) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tile-layer/file/README.md)\n[`@uiw/react-amap-polyline`](https://uiwjs.github.io/react-amap/#/polyline) \u6298\u7ebf | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline/file/README.md)\n[`@uiw/react-amap-polyline-editor`](https://uiwjs.github.io/react-amap/#/polyline-editor) \u6298\u7ebf\u7f16\u8f91\u5668 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline-editor/file/README.md)\n[`@uiw/react-amap-poly-editor`](https://uiwjs.github.io/react-amap/#/poly-editor) \u6298\u7ebf\u7f16\u8f91\u5668 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-poly-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-poly-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-poly-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-poly-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-poly-editor/file/README.md)\n[`@uiw/react-amap-circle`](https://uiwjs.github.io/react-amap/#/circle) \u5706\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle/file/README.md)\n[`@uiw/react-amap-circle-marker`](https://uiwjs.github.io/react-amap/#/circle-marker) \u5706\u70b9\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle-marker/file/README.md)\n[`@uiw/react-amap-ellipse`](https://uiwjs.github.io/react-amap/#/ellipse) \u5706\u5f62\u7ec4\u4ef6 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-ellipse?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-ellipse?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-ellipse.svg)](https://www.npmjs.com/package/@uiw/react-amap-ellipse) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-ellipse/file/README.md)\n[`@uiw/react-amap-rectangle`](https://uiwjs.github.io/react-amap/#/rectangle) \u77e9\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-rectangle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-rectangle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-rectangle.svg)](https://www.npmjs.com/package/@uiw/react-amap-rectangle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-rectangle/file/README.md)\n[`@uiw/react-amap-bezier-curve`](https://uiwjs.github.io/react-amap/#/bezier-curve) \u8d1d\u585e\u5c14\u66f2\u7ebf | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-bezier-curve?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-bezier-curve?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-bezier-curve.svg)](https://www.npmjs.com/package/@uiw/react-amap-bezier-curve) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-bezier-curve/file/README.md)\n[`@uiw/react-amap-polygon`](https://uiwjs.github.io/react-amap/#/polygon) \u591a\u8fb9\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon/file/README.md)\n[`@uiw/react-amap-polygon-editor`](https://uiwjs.github.io/react-amap/#/polygon-editor) \u591a\u8fb9\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon-editor/file/README.md)\n[`@uiw/react-amap-mass-marks`](https://uiwjs.github.io/react-amap/#/mass-marks) \u6d77\u91cf\u70b9 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mass-marks?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mass-marks?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mass-marks.svg)](https://www.npmjs.com/package/@uiw/react-amap-mass-marks) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mass-marks/file/README.md)\n[`@uiw/react-amap-mouse-tool`](https://uiwjs.github.io/react-amap/#/mouse-tool) \u7ed8\u5236\u5de5\u5177 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mouse-tool?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mouse-tool?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mouse-tool.svg)](https://www.npmjs.com/package/@uiw/react-amap-mouse-tool) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mouse-tool/file/README.md)\n\n### \u4fe1\u606f\u7a97\u4f53 & \u53f3\u952e\u83dc\u5355\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-info-window`](https://uiwjs.github.io/react-amap/#/info-window) \u4fe1\u606f\u7a97\u4f53 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-info-window?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-info-window?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-info-window.svg)](https://www.npmjs.com/package/@uiw/react-amap-info-window) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-info-window/file/README.md)\n[`@uiw/react-amap-context-menu`](https://uiwjs.github.io/react-amap/#/context-menu) \u53f3\u952e\u83dc\u5355 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-context-menu?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-context-menu?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-context-menu.svg)](https://www.npmjs.com/package/@uiw/react-amap-context-menu) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-context-menu/file/README.md)\n\n### \u670d\u52a1\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-geolocation`](https://uiwjs.github.io/react-amap/#/geolocation) \u5b9a\u4f4d | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-geolocation?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-geolocation?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-geolocation.svg)](https://www.npmjs.com/package/@uiw/react-amap-geolocation) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-geolocation/file/README.md)\n[`@uiw/react-amap-weather`](https://uiwjs.github.io/react-amap/#/weather) \u5929\u6c14\u67e5\u8be2\u670d\u52a1 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-weather?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-weather?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-weather.svg)](https://www.npmjs.com/package/@uiw/react-amap-weather) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-weather/file/README.md)\n[`@uiw/react-amap-auto-complete`](https://uiwjs.github.io/react-amap/#/auto-complete) \u8f93\u5165\u63d0\u793a | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-auto-complete?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-auto-complete?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-auto-complete.svg)](https://www.npmjs.com/package/@uiw/react-amap-auto-complete) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-auto-complete/file/README.md)\n\n### \u5176\u5b83\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-require-script`](https://uiwjs.github.io/react-amap/#/require-script) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-require-script?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-require-script?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-require-script.svg)](https://www.npmjs.com/package/@uiw/react-amap-require-script) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-require-script/file/README.md)\n[`@uiw/react-amap-types`](https://uiwjs.github.io/react-amap/#/types) \u7c7b\u578b\u5b9a\u4e49 | [![](https://img.shields.io/npm/types/@uiw/react-amap-types)](https://www.npmjs.com/package/@uiw/react-amap-types) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-types.svg)](https://www.npmjs.com/package/@uiw/react-amap-types) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-types/file/README.md)\n[`@uiw/react-amap-utils`](https://uiwjs.github.io/react-amap/#/utils) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-utils?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-utils?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-utils.svg)](https://www.npmjs.com/package/@uiw/react-amap-utils) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-utils/file/README.md)\n\n\n## \u5f00\u53d1\n\n```bash\nnpm install # Step 1: \u5b89\u88c5\u4f9d\u8d56\nnpm run build # Step 2: \u7f16\u8bd1\u6240\u6709\u5305\n\nnpm run start # \u6587\u6863\u7f51\u7ad9\u8fd0\u884c\nnpm run watch:amap # \u76d1\u542c\u7f16\u8bd1\u8f93\u51fa js \u6587\u4ef6, \u76d1\u542c\u7f16\u8bd1\u8f93\u51fa .d.ts \u7c7b\u578b\u6587\u4ef6\n```\n\n## \u76f8\u5173\u8fde\u63a5\n\n- [@uiw/react-baidu-map](https://github.com/uiwjs/react-baidu-map) \u767e\u5ea6\u5730\u56fe React \u7ec4\u4ef6\n- [\u9ad8\u5fb7\u62fe\u53d6\u5750\u6807\u7cfb\u7edf](https://lbs.amap.com/console/show/picker) \n- [\u5b98\u65b9\u793a\u4f8b\u4e2d\u5fc3](https://lbs.amap.com/demo-center/jsapi-v2) \n- [\u9ad8\u5fb7\u5730\u56fe JSAPI 2.0](https://a.amap.com/jsapi/static/doc/index.html) \n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.',headings:[]}}}]); -//# sourceMappingURL=4702.3106727c.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4702],{4702:function(e,a,i){i.r(a),a.default={components:{74:function(){function e(a){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(a)}(a=i(6836))&&a.__esModule;var a,t=function(a,i){if(!i&&a&&a.__esModule)return a;if(null===a||"object"!==e(a)&&"function"!==typeof a)return{default:a};var t=n(i);if(t&&t.has(a))return t.get(a);var p={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in a)if("default"!==s&&Object.prototype.hasOwnProperty.call(a,s)){var r=o?Object.getOwnPropertyDescriptor(a,s):null;r&&(r.get||r.set)?Object.defineProperty(p,s,r):p[s]=a[s]}p.default=a,t&&t.set(a,p);return p}(i(8573)),p=i(5775);function n(e){if("function"!==typeof WeakMap)return null;var a=new WeakMap,i=new WeakMap;return(n=function(e){return e?i:a})(e)}var o=function(){return t.default.createElement("div",null,t.default.createElement(p.Map,{style:{height:300}},t.default.createElement(p.ScaleControl,{offset:[16,30],position:"LB"}),t.default.createElement(p.ToolBarControl,{offset:[16,10],position:"RB"}),t.default.createElement(p.ControlBarControl,{offset:[16,180],position:"RB"}),t.default.createElement(p.Geolocation,{maximumAge:1e5,borderRadius:"5px",position:"RB",offset:[16,80],zoomToAccuracy:!0,showCircle:!0})),t.default.createElement(p.Map,{style:{height:300}},(function(e){e.AMap,e.map,e.container})))};return function(){return t.default.createElement(p.APILoader,{version:"2.0.5",akey:"a7a90e05a37d3f6bf76d4a9032fc9129"},t.default.createElement(o,null))}}()},data:{74:{name:74,meta:{},code:'"use strict";\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\nvar _reactDom = _interopRequireDefault(require("react-dom"));\nvar _react = _interopRequireWildcard(require("react"));\nvar _reactAmap = require("@uiw/react-amap");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\nvar Demo = function Demo() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, /*#__PURE__*/_react["default"].createElement(_reactAmap.ScaleControl, {\n offset: [16, 30],\n position: "LB"\n }), /*#__PURE__*/_react["default"].createElement(_reactAmap.ToolBarControl, {\n offset: [16, 10],\n position: "RB"\n }), /*#__PURE__*/_react["default"].createElement(_reactAmap.ControlBarControl, {\n offset: [16, 180],\n position: "RB"\n }), /*#__PURE__*/_react["default"].createElement(_reactAmap.Geolocation, {\n maximumAge: 100000,\n borderRadius: "5px",\n position: "RB",\n offset: [16, 80],\n zoomToAccuracy: true,\n showCircle: true\n })), /*#__PURE__*/_react["default"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, function (_ref) {\n var AMap = _ref.AMap,\n map = _ref.map,\n container = _ref.container;\n return;\n }));\n};\nvar Mount = function Mount() {\n return /*#__PURE__*/_react["default"].createElement(_reactAmap.APILoader, {\n version: "2.0.5",\n akey: "a7a90e05a37d3f6bf76d4a9032fc9129"\n }, /*#__PURE__*/_react["default"].createElement(Demo, null));\n};\nreturn Mount;',language:"jsx",value:'import ReactDOM from \'react-dom\';\nimport React, { useEffect, useRef, Fragment } from \'react\';\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from \'@uiw/react-amap\';\n\nconst Demo = () => (\n
\n \n \n \n \n \n \n \n {({ AMap, map, container }) => {\n return;\n }}\n \n
\n);\n\nconst Mount = () => (\n \n \n \n)\nexport default Mount'}},source:'

\n

\n \n \u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6 logo\n \n

\n

\u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6

\n\n

\n \n Build & Deploy\n \n \n Downloads\n \n \n Open in unpkg\n \n \n npm version\n \n \n Gitee Repo\n \n

\n\n\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8e React \u5c01\u88c5\u7684\u9ad8\u5fb7\u5730\u56fe\u7ec4\u4ef6\uff0c\u5e2e\u52a9\u4f60\u8f7b\u677e\u7684\u63a5\u5165\u5730\u56fe\u5230 React \u9879\u76ee\u4e2d\u3002\u9664\u4e86\u5fc5\u987b\u5f15\u7528\u7684 APILoader/Map \u7ec4\u4ef6\u5916\uff0c\u6211\u4eec\u76ee\u524d\u63d0\u4f9b\u4e86\u6700\u5e38\u7528\u7684\u5730\u56fe\u7ec4\u4ef6\uff0c\u80fd\u6ee1\u8db3\u5927\u90e8\u5206\u7b80\u5355\u7684\u4e1a\u52a1\u573a\u666f\uff1b\u5982\u679c\u4f60\u6709\u66f4\u590d\u6742\u7684\u9700\u6c42\uff0c\u6216\u8005\u89c9\u5f97\u9ed8\u8ba4\u63d0\u4f9b\u7684\u7ec4\u4ef6\u529f\u80fd\u4e0d\u591f\uff0c\u53ef\u4ee5\u4f7f\u7528 Map \u7ec4\u4ef6\u8fd4\u56de\u7684\u5730\u56fe\u5b9e\u4f8b\uff0c\u5b8c\u5168\u81ea\u5b9a\u4e49\u4e00\u4e2a\u5730\u56fe\u7ec4\u4ef6\uff0c\u7136\u540e\u6839\u636e\u9ad8\u5fb7\u539f\u751f API \u505a\u9ad8\u5fb7\u5141\u8bb8\u4f60\u505a\u7684\u4e00\u5207\u4e8b\u60c5\u3002\n\n\u6587\u6863\u5b9e\u4f8b\u9884\u89c8: [Github Web](https://uiwjs.github.io/react-amap/) | [Gitee Web](https://uiw.gitee.io/react-amap)\n\n### \u7279\u6027\n\n- \u267b\ufe0f \u81ea\u52a8\u52a0\u8f7d\u9ad8\u5fb7\u5730\u56fe SDK\uff08\u901a\u8fc7\u521b\u5efa Script \u6807\u7b7e\u7684\u5f62\u5f0f\u52a0\u8f7d\uff09\uff0c\u5305\u62ec\u7b2c\u4e09\u65b9 SDK\u3002\n- \ud83d\udcda \u4f7f\u7528 Typescript \u7f16\u5199\uff0c\u96c6\u6210\u9ad8\u5fb7\u5730\u56fe SDK [@type](https://github.com/uiwjs/react-amap/tree/master/packages/types) \u58f0\u660e\u6587\u4ef6\uff08\u5305\u62ec\u4e2d\u6587\u6ce8\u91ca\uff09\u3002\n- \u269b\ufe0f \u652f\u6301 React Hook \u65b0\u589e\u7279\u6027\uff08\u9700\u8981 React 16.8+\uff09\u3002\n- \ud83d\udc9d \u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9\u7ec4\u4ef6\u3002\n- \ud83d\udce6 \u62c6\u5206\u6210\u591a\u4e2a\u5305\uff0c\u6309\u9700\u4f7f\u7528\u5305\u3002\n\n### \u5b89\u88c5\n\n> \u4e0d\u4f9d\u8d56 [`uiw`](https://github.com/uiwjs/uiw) \u7ec4\u4ef6\u5e93\n\n```bash\n# \u96c6\u6210\u4e86\u6240\u6709\u4f9d\u8d56\u5305\nnpm install @uiw/react-amap --save\n\n# \u6216\u8005\u6309\u9700\u5b89\u88c5\u5305\nnpm install @uiw/react-amap-map @uiw/react-amap-api-loader --save\n```\n\n`v4` \u5347\u7ea7\u5230 `v5`\uff0c`APILoader` \u4e3b\u8981\u662f\u5bf9 `APILoader` \u505a\u4e86\u5347\u7ea7\uff0c~~`akay`~~ => `akey`\n\n```diff\n \n \n \n```\n\n### \u4f7f\u7528\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-amap-example-y0n6c-y0n6c?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx mdx:preview\nimport ReactDOM from \'react-dom\';\nimport React, { useEffect, useRef, Fragment } from \'react\';\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from \'@uiw/react-amap\';\n\nconst Demo = () => (\n
\n \n \n \n \n \n \n \n {({ AMap, map, container }) => {\n return;\n }}\n \n
\n);\n\nconst Mount = () => (\n \n \n \n)\nexport default Mount\n```\n\n### \u5bb9\u5668\u7ec4\u4ef6\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap`](https://uiwjs.github.io/react-amap/) \u96c6\u6210\u6240\u6709\u5305 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap.svg)](https://www.npmjs.com/package/@uiw/react-amap) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap/file/README.md)\n[`@uiw/react-amap-api-loader`](https://uiwjs.github.io/react-amap/#/api-loader) \u52a0\u8f7d SDK (\u5fc5\u987b) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-api-loader?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-api-loader?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-api-loader.svg)](https://www.npmjs.com/package/@uiw/react-amap-api-loader) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-api-loader/file/README.md)\n[`@uiw/react-amap-map`](https://uiwjs.github.io/react-amap/#/map) \u52a0\u8f7d\u5730\u56fe(\u5bb9\u5668) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map.svg)](https://www.npmjs.com/package/@uiw/react-amap-map) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map/file/README.md)\n\n### \u63a7\u4ef6\u7ec4\u4ef6\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-scale-control`](https://uiwjs.github.io/react-amap/#/scale-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-scale-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-scale-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-scale-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-scale-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-scale-control/file/README.md)\n[`@uiw/react-amap-control-bar-control`](https://uiwjs.github.io/react-amap/#/control-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-control-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-control-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-control-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-control-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-control-bar-control/file/README.md)\n[`@uiw/react-amap-hawk-eye-control`](https://uiwjs.github.io/react-amap/#/hawk-eye-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-hawk-eye-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-hawk-eye-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-hawk-eye-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-hawk-eye-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-hawk-eye-control/file/README.md)\n[`@uiw/react-amap-map-type-control`](https://uiwjs.github.io/react-amap/#/map-type-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map-type-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map-type-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map-type-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-map-type-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map-type-control/file/README.md)\n[`@uiw/react-amap-tool-bar-control`](https://uiwjs.github.io/react-amap/#/tool-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tool-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tool-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tool-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-tool-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tool-bar-control/file/README.md)\n\n### \u8986\u76d6\u7269\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-marker`](https://uiwjs.github.io/react-amap/#/marker) \u70b9\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-marker/file/README.md)\n[`@uiw/react-amap-label-marker`](https://uiwjs.github.io/react-amap/#/label-marker) \u70b9\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-label-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-label-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-label-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-label-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-label-marker/file/README.md)\n[`@uiw/react-amap-text`](https://uiwjs.github.io/react-amap/#/text) \u6587\u672c\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-text?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-text?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-text.svg)](https://www.npmjs.com/package/@uiw/react-amap-text) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-text/file/README.md)\n[`@uiw/react-amap-tile-layer`](https://uiwjs.github.io/react-amap/#/tile-layer) \u6587\u672c\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tile-layer?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tile-layer?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tile-layer.svg)](https://www.npmjs.com/package/@uiw/react-amap-tile-layer) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tile-layer/file/README.md)\n[`@uiw/react-amap-polyline`](https://uiwjs.github.io/react-amap/#/polyline) \u6298\u7ebf | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline/file/README.md)\n[`@uiw/react-amap-polyline-editor`](https://uiwjs.github.io/react-amap/#/polyline-editor) \u6298\u7ebf\u7f16\u8f91\u5668 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline-editor/file/README.md)\n[`@uiw/react-amap-poly-editor`](https://uiwjs.github.io/react-amap/#/poly-editor) \u6298\u7ebf\u7f16\u8f91\u5668 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-poly-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-poly-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-poly-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-poly-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-poly-editor/file/README.md)\n[`@uiw/react-amap-circle`](https://uiwjs.github.io/react-amap/#/circle) \u5706\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle/file/README.md)\n[`@uiw/react-amap-circle-marker`](https://uiwjs.github.io/react-amap/#/circle-marker) \u5706\u70b9\u6807\u8bb0 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle-marker/file/README.md)\n[`@uiw/react-amap-ellipse`](https://uiwjs.github.io/react-amap/#/ellipse) \u5706\u5f62\u7ec4\u4ef6 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-ellipse?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-ellipse?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-ellipse.svg)](https://www.npmjs.com/package/@uiw/react-amap-ellipse) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-ellipse/file/README.md)\n[`@uiw/react-amap-rectangle`](https://uiwjs.github.io/react-amap/#/rectangle) \u77e9\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-rectangle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-rectangle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-rectangle.svg)](https://www.npmjs.com/package/@uiw/react-amap-rectangle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-rectangle/file/README.md)\n[`@uiw/react-amap-bezier-curve`](https://uiwjs.github.io/react-amap/#/bezier-curve) \u8d1d\u585e\u5c14\u66f2\u7ebf | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-bezier-curve?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-bezier-curve?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-bezier-curve.svg)](https://www.npmjs.com/package/@uiw/react-amap-bezier-curve) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-bezier-curve/file/README.md)\n[`@uiw/react-amap-polygon`](https://uiwjs.github.io/react-amap/#/polygon) \u591a\u8fb9\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon/file/README.md)\n[`@uiw/react-amap-polygon-editor`](https://uiwjs.github.io/react-amap/#/polygon-editor) \u591a\u8fb9\u5f62 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon-editor/file/README.md)\n[`@uiw/react-amap-mass-marks`](https://uiwjs.github.io/react-amap/#/mass-marks) \u6d77\u91cf\u70b9 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mass-marks?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mass-marks?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mass-marks.svg)](https://www.npmjs.com/package/@uiw/react-amap-mass-marks) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mass-marks/file/README.md)\n[`@uiw/react-amap-mouse-tool`](https://uiwjs.github.io/react-amap/#/mouse-tool) \u7ed8\u5236\u5de5\u5177 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mouse-tool?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mouse-tool?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mouse-tool.svg)](https://www.npmjs.com/package/@uiw/react-amap-mouse-tool) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mouse-tool/file/README.md)\n\n### \u4fe1\u606f\u7a97\u4f53 & \u53f3\u952e\u83dc\u5355\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-info-window`](https://uiwjs.github.io/react-amap/#/info-window) \u4fe1\u606f\u7a97\u4f53 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-info-window?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-info-window?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-info-window.svg)](https://www.npmjs.com/package/@uiw/react-amap-info-window) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-info-window/file/README.md)\n[`@uiw/react-amap-context-menu`](https://uiwjs.github.io/react-amap/#/context-menu) \u53f3\u952e\u83dc\u5355 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-context-menu?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-context-menu?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-context-menu.svg)](https://www.npmjs.com/package/@uiw/react-amap-context-menu) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-context-menu/file/README.md)\n\n### \u670d\u52a1\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-geolocation`](https://uiwjs.github.io/react-amap/#/geolocation) \u5b9a\u4f4d | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-geolocation?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-geolocation?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-geolocation.svg)](https://www.npmjs.com/package/@uiw/react-amap-geolocation) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-geolocation/file/README.md)\n[`@uiw/react-amap-weather`](https://uiwjs.github.io/react-amap/#/weather) \u5929\u6c14\u67e5\u8be2\u670d\u52a1 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-weather?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-weather?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-weather.svg)](https://www.npmjs.com/package/@uiw/react-amap-weather) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-weather/file/README.md)\n[`@uiw/react-amap-auto-complete`](https://uiwjs.github.io/react-amap/#/auto-complete) \u8f93\u5165\u63d0\u793a | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-auto-complete?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-auto-complete?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-auto-complete.svg)](https://www.npmjs.com/package/@uiw/react-amap-auto-complete) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-auto-complete/file/README.md)\n\n### \u5176\u5b83\n\nPackage | Bundle size(gzip) | Version/unpkg\n----- | ----- | ----\n[`@uiw/react-amap-require-script`](https://uiwjs.github.io/react-amap/#/require-script) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-require-script?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-require-script?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-require-script.svg)](https://www.npmjs.com/package/@uiw/react-amap-require-script) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-require-script/file/README.md)\n[`@uiw/react-amap-types`](https://uiwjs.github.io/react-amap/#/types) \u7c7b\u578b\u5b9a\u4e49 | [![](https://img.shields.io/npm/types/@uiw/react-amap-types)](https://www.npmjs.com/package/@uiw/react-amap-types) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-types.svg)](https://www.npmjs.com/package/@uiw/react-amap-types) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-types/file/README.md)\n[`@uiw/react-amap-utils`](https://uiwjs.github.io/react-amap/#/utils) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-utils?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-utils?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-utils.svg)](https://www.npmjs.com/package/@uiw/react-amap-utils) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-utils/file/README.md)\n\n\n## \u5f00\u53d1\n\n```bash\nnpm install # Step 1: \u5b89\u88c5\u4f9d\u8d56\nnpm run build # Step 2: \u7f16\u8bd1\u6240\u6709\u5305\n\nnpm run start # \u6587\u6863\u7f51\u7ad9\u8fd0\u884c\nnpm run watch:amap # \u76d1\u542c\u7f16\u8bd1\u8f93\u51fa js \u6587\u4ef6, \u76d1\u542c\u7f16\u8bd1\u8f93\u51fa .d.ts \u7c7b\u578b\u6587\u4ef6\n```\n\n## \u76f8\u5173\u8fde\u63a5\n\n- [@uiw/react-baidu-map](https://github.com/uiwjs/react-baidu-map) \u767e\u5ea6\u5730\u56fe React \u7ec4\u4ef6\n- [\u9ad8\u5fb7\u62fe\u53d6\u5750\u6807\u7cfb\u7edf](https://lbs.amap.com/console/show/picker) \n- [\u5b98\u65b9\u793a\u4f8b\u4e2d\u5fc3](https://lbs.amap.com/demo-center/jsapi-v2) \n- [\u9ad8\u5fb7\u5730\u56fe JSAPI 2.0](https://a.amap.com/jsapi/static/doc/index.html) \n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [gcontributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.',headings:[]}}}]); +//# sourceMappingURL=4702.f6787a44.chunk.js.map \ No newline at end of file diff --git a/static/js/4702.3106727c.chunk.js.map b/static/js/4702.f6787a44.chunk.js.map similarity index 97% rename from static/js/4702.3106727c.chunk.js.map rename to static/js/4702.f6787a44.chunk.js.map index 770427851..dbb01f934 100644 --- a/static/js/4702.3106727c.chunk.js.map +++ b/static/js/4702.f6787a44.chunk.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/4702.3106727c.chunk.js","mappings":"+GACA,WACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAkC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAO,cAAcA,CAAK,EAAI,SAAUA,GAAO,OAAOA,GAAO,mBAAqBC,QAAUD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,CAAK,EAAGD,EAAQC,EAAM,EAM/SA,EALO,EAAQ,QAKMA,EAAIK,WALzD,IAKgCL,EAJ5BM,EAGJ,SAAiCN,EAAKO,GAAe,IAAKA,GAAeP,GAAOA,EAAIK,WAAc,OAAOL,EAAO,GAAY,OAARA,GAAiC,WAAjBD,EAAQC,IAAoC,oBAARA,EAAsB,MAAO,CAAE,QAAWA,GAAS,IAAIQ,EAAQC,EAAyBF,GAAc,GAAIC,GAASA,EAAME,IAAIV,GAAQ,OAAOQ,EAAMG,IAAIX,GAAQ,IAAIY,EAA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UW,GACAA,EAAKC,KACRD,EAAKE,IACCF,EAAKG,SAErB,IACF,EAOA,OANY,WACV,OAAoBvC,EAAgB,QAAEsB,cAAcL,EAAWuB,UAAW,CACxEC,QAAS,QACTC,KAAM,oCACQ1C,EAAgB,QAAEsB,cAAcD,EAAM,MACxD,CACe,CA/CO,IAgDlBsB,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,ogGACR,SAAY,MACZ,MAAS,o7BAGTC,OAAQ,ip6BACRC,SAAS,G","sources":["../../packages/amap/README.md"],"sourcesContent":["\nexport default {\n components: { 74: (function() { \"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactAmap = require(\"@uiw/react-amap\");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar Demo = function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.ScaleControl, {\n offset: [16, 30],\n position: \"LB\"\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.ToolBarControl, {\n offset: [16, 10],\n position: \"RB\"\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.ControlBarControl, {\n offset: [16, 180],\n position: \"RB\"\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.Geolocation, {\n maximumAge: 100000,\n borderRadius: \"5px\",\n position: \"RB\",\n offset: [16, 80],\n zoomToAccuracy: true,\n showCircle: true\n })), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, function (_ref) {\n var AMap = _ref.AMap,\n map = _ref.map,\n container = _ref.container;\n return;\n }));\n};\nvar Mount = function Mount() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.APILoader, {\n version: \"2.0.5\",\n akey: \"a7a90e05a37d3f6bf76d4a9032fc9129\"\n }, /*#__PURE__*/_react[\"default\"].createElement(Demo, null));\n};\nreturn Mount; })(), },\n data: {\n \"74\": {\n \"name\": 74,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _typeof(obj) { \\\"@babel/helpers - typeof\\\"; return _typeof = \\\"function\\\" == typeof Symbol && \\\"symbol\\\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \\\"function\\\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj; }, _typeof(obj); }\\nvar _reactDom = _interopRequireDefault(require(\\\"react-dom\\\"));\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactAmap = require(\\\"@uiw/react-amap\\\");\\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \\\"function\\\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \\\"object\\\" && typeof obj !== \\\"function\\\") { return { \\\"default\\\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \\\"default\\\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\\\"default\\\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \\\"default\\\": obj }; }\\nvar Demo = function Demo() {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.Map, {\\n style: {\\n height: 300\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.ScaleControl, {\\n offset: [16, 30],\\n position: \\\"LB\\\"\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.ToolBarControl, {\\n offset: [16, 10],\\n position: \\\"RB\\\"\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.ControlBarControl, {\\n offset: [16, 180],\\n position: \\\"RB\\\"\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.Geolocation, {\\n maximumAge: 100000,\\n borderRadius: \\\"5px\\\",\\n position: \\\"RB\\\",\\n offset: [16, 80],\\n zoomToAccuracy: true,\\n showCircle: true\\n })), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.Map, {\\n style: {\\n height: 300\\n }\\n }, function (_ref) {\\n var AMap = _ref.AMap,\\n map = _ref.map,\\n container = _ref.container;\\n return;\\n }));\\n};\\nvar Mount = function Mount() {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.APILoader, {\\n version: \\\"2.0.5\\\",\\n akey: \\\"a7a90e05a37d3f6bf76d4a9032fc9129\\\"\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(Demo, null));\\n};\\nreturn Mount;\",\n \"language\": \"jsx\",\n \"value\": \"import ReactDOM from 'react-dom';\\nimport React, { useEffect, useRef, Fragment } from 'react';\\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from '@uiw/react-amap';\\n\\nconst Demo = () => (\\n
\\n \\n \\n \\n \\n \\n \\n \\n {({ AMap, map, container }) => {\\n return;\\n }}\\n \\n
\\n);\\n\\nconst Mount = () => (\\n \\n \\n \\n)\\nexport default Mount\"\n }\n},\n source: \"

\\n

\\n \\n \\\"高德地图\\n \\n

\\n

高德地图 React 组件

\\n\\n

\\n \\n \\\"Build\\n \\n \\n \\\"Downloads\\\"\\n \\n \\n \\\"Open\\n \\n \\n \\\"npm\\n \\n \\n \\\"Gitee\\n \\n

\\n\\n这是一个基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。除了必须引用的 APILoader/Map 组件外,我们目前提供了最常用的地图组件,能满足大部分简单的业务场景;如果你有更复杂的需求,或者觉得默认提供的组件功能不够,可以使用 Map 组件返回的地图实例,完全自定义一个地图组件,然后根据高德原生 API 做高德允许你做的一切事情。\\n\\n文档实例预览: [Github Web](https://uiwjs.github.io/react-amap/) | [Gitee Web](https://uiw.gitee.io/react-amap)\\n\\n### 特性\\n\\n- ♻️ 自动加载高德地图 SDK(通过创建 Script 标签的形式加载),包括第三方 SDK。\\n- 📚 使用 Typescript 编写,集成高德地图 SDK [@type](https://github.com/uiwjs/react-amap/tree/master/packages/types) 声明文件(包括中文注释)。\\n- ⚛️ 支持 React Hook 新增特性(需要 React 16.8+)。\\n- 💝 不依赖任何第三方组件。\\n- 📦 拆分成多个包,按需使用包。\\n\\n### 安装\\n\\n> 不依赖 [`uiw`](https://github.com/uiwjs/uiw) 组件库\\n\\n```bash\\n# 集成了所有依赖包\\nnpm install @uiw/react-amap --save\\n\\n# 或者按需安装包\\nnpm install @uiw/react-amap-map @uiw/react-amap-api-loader --save\\n```\\n\\n`v4` 升级到 `v5`,`APILoader` 主要是对 `APILoader` 做了升级,~~`akay`~~ => `akey`\\n\\n```diff\\n \\n \\n \\n```\\n\\n### 使用\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-amap-example-y0n6c-y0n6c?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx mdx:preview\\nimport ReactDOM from 'react-dom';\\nimport React, { useEffect, useRef, Fragment } from 'react';\\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from '@uiw/react-amap';\\n\\nconst Demo = () => (\\n
\\n \\n \\n \\n \\n \\n \\n \\n {({ AMap, map, container }) => {\\n return;\\n }}\\n \\n
\\n);\\n\\nconst Mount = () => (\\n \\n \\n \\n)\\nexport default Mount\\n```\\n\\n### 容器组件\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap`](https://uiwjs.github.io/react-amap/) 集成所有包 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap.svg)](https://www.npmjs.com/package/@uiw/react-amap) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap/file/README.md)\\n[`@uiw/react-amap-api-loader`](https://uiwjs.github.io/react-amap/#/api-loader) 加载 SDK (必须) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-api-loader?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-api-loader?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-api-loader.svg)](https://www.npmjs.com/package/@uiw/react-amap-api-loader) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-api-loader/file/README.md)\\n[`@uiw/react-amap-map`](https://uiwjs.github.io/react-amap/#/map) 加载地图(容器) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map.svg)](https://www.npmjs.com/package/@uiw/react-amap-map) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map/file/README.md)\\n\\n### 控件组件\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-scale-control`](https://uiwjs.github.io/react-amap/#/scale-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-scale-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-scale-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-scale-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-scale-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-scale-control/file/README.md)\\n[`@uiw/react-amap-control-bar-control`](https://uiwjs.github.io/react-amap/#/control-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-control-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-control-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-control-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-control-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-control-bar-control/file/README.md)\\n[`@uiw/react-amap-hawk-eye-control`](https://uiwjs.github.io/react-amap/#/hawk-eye-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-hawk-eye-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-hawk-eye-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-hawk-eye-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-hawk-eye-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-hawk-eye-control/file/README.md)\\n[`@uiw/react-amap-map-type-control`](https://uiwjs.github.io/react-amap/#/map-type-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map-type-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map-type-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map-type-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-map-type-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map-type-control/file/README.md)\\n[`@uiw/react-amap-tool-bar-control`](https://uiwjs.github.io/react-amap/#/tool-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tool-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tool-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tool-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-tool-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tool-bar-control/file/README.md)\\n\\n### 覆盖物\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-marker`](https://uiwjs.github.io/react-amap/#/marker) 点标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-marker/file/README.md)\\n[`@uiw/react-amap-label-marker`](https://uiwjs.github.io/react-amap/#/label-marker) 点标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-label-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-label-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-label-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-label-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-label-marker/file/README.md)\\n[`@uiw/react-amap-text`](https://uiwjs.github.io/react-amap/#/text) 文本标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-text?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-text?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-text.svg)](https://www.npmjs.com/package/@uiw/react-amap-text) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-text/file/README.md)\\n[`@uiw/react-amap-tile-layer`](https://uiwjs.github.io/react-amap/#/tile-layer) 文本标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tile-layer?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tile-layer?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tile-layer.svg)](https://www.npmjs.com/package/@uiw/react-amap-tile-layer) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tile-layer/file/README.md)\\n[`@uiw/react-amap-polyline`](https://uiwjs.github.io/react-amap/#/polyline) 折线 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline/file/README.md)\\n[`@uiw/react-amap-polyline-editor`](https://uiwjs.github.io/react-amap/#/polyline-editor) 折线编辑器 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline-editor/file/README.md)\\n[`@uiw/react-amap-poly-editor`](https://uiwjs.github.io/react-amap/#/poly-editor) 折线编辑器 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-poly-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-poly-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-poly-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-poly-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-poly-editor/file/README.md)\\n[`@uiw/react-amap-circle`](https://uiwjs.github.io/react-amap/#/circle) 圆形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle/file/README.md)\\n[`@uiw/react-amap-circle-marker`](https://uiwjs.github.io/react-amap/#/circle-marker) 圆点标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle-marker/file/README.md)\\n[`@uiw/react-amap-ellipse`](https://uiwjs.github.io/react-amap/#/ellipse) 圆形组件 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-ellipse?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-ellipse?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-ellipse.svg)](https://www.npmjs.com/package/@uiw/react-amap-ellipse) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-ellipse/file/README.md)\\n[`@uiw/react-amap-rectangle`](https://uiwjs.github.io/react-amap/#/rectangle) 矩形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-rectangle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-rectangle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-rectangle.svg)](https://www.npmjs.com/package/@uiw/react-amap-rectangle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-rectangle/file/README.md)\\n[`@uiw/react-amap-bezier-curve`](https://uiwjs.github.io/react-amap/#/bezier-curve) 贝塞尔曲线 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-bezier-curve?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-bezier-curve?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-bezier-curve.svg)](https://www.npmjs.com/package/@uiw/react-amap-bezier-curve) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-bezier-curve/file/README.md)\\n[`@uiw/react-amap-polygon`](https://uiwjs.github.io/react-amap/#/polygon) 多边形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon/file/README.md)\\n[`@uiw/react-amap-polygon-editor`](https://uiwjs.github.io/react-amap/#/polygon-editor) 多边形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon-editor/file/README.md)\\n[`@uiw/react-amap-mass-marks`](https://uiwjs.github.io/react-amap/#/mass-marks) 海量点 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mass-marks?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mass-marks?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mass-marks.svg)](https://www.npmjs.com/package/@uiw/react-amap-mass-marks) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mass-marks/file/README.md)\\n[`@uiw/react-amap-mouse-tool`](https://uiwjs.github.io/react-amap/#/mouse-tool) 绘制工具 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mouse-tool?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mouse-tool?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mouse-tool.svg)](https://www.npmjs.com/package/@uiw/react-amap-mouse-tool) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mouse-tool/file/README.md)\\n\\n### 信息窗体 & 右键菜单\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-info-window`](https://uiwjs.github.io/react-amap/#/info-window) 信息窗体 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-info-window?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-info-window?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-info-window.svg)](https://www.npmjs.com/package/@uiw/react-amap-info-window) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-info-window/file/README.md)\\n[`@uiw/react-amap-context-menu`](https://uiwjs.github.io/react-amap/#/context-menu) 右键菜单 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-context-menu?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-context-menu?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-context-menu.svg)](https://www.npmjs.com/package/@uiw/react-amap-context-menu) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-context-menu/file/README.md)\\n\\n### 服务\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-geolocation`](https://uiwjs.github.io/react-amap/#/geolocation) 定位 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-geolocation?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-geolocation?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-geolocation.svg)](https://www.npmjs.com/package/@uiw/react-amap-geolocation) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-geolocation/file/README.md)\\n[`@uiw/react-amap-weather`](https://uiwjs.github.io/react-amap/#/weather) 天气查询服务 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-weather?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-weather?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-weather.svg)](https://www.npmjs.com/package/@uiw/react-amap-weather) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-weather/file/README.md)\\n[`@uiw/react-amap-auto-complete`](https://uiwjs.github.io/react-amap/#/auto-complete) 输入提示 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-auto-complete?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-auto-complete?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-auto-complete.svg)](https://www.npmjs.com/package/@uiw/react-amap-auto-complete) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-auto-complete/file/README.md)\\n\\n### 其它\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-require-script`](https://uiwjs.github.io/react-amap/#/require-script) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-require-script?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-require-script?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-require-script.svg)](https://www.npmjs.com/package/@uiw/react-amap-require-script) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-require-script/file/README.md)\\n[`@uiw/react-amap-types`](https://uiwjs.github.io/react-amap/#/types) 类型定义 | [![](https://img.shields.io/npm/types/@uiw/react-amap-types)](https://www.npmjs.com/package/@uiw/react-amap-types) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-types.svg)](https://www.npmjs.com/package/@uiw/react-amap-types) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-types/file/README.md)\\n[`@uiw/react-amap-utils`](https://uiwjs.github.io/react-amap/#/utils) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-utils?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-utils?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-utils.svg)](https://www.npmjs.com/package/@uiw/react-amap-utils) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-utils/file/README.md)\\n\\n\\n## 开发\\n\\n```bash\\nnpm install # Step 1: 安装依赖\\nnpm run build # Step 2: 编译所有包\\n\\nnpm run start # 文档网站运行\\nnpm run watch:amap # 监听编译输出 js 文件, 监听编译输出 .d.ts 类型文件\\n```\\n\\n## 相关连接\\n\\n- [@uiw/react-baidu-map](https://github.com/uiwjs/react-baidu-map) 百度地图 React 组件\\n- [高德拾取坐标系统](https://lbs.amap.com/console/show/picker) \\n- [官方示例中心](https://lbs.amap.com/demo-center/jsapi-v2) \\n- [高德地图 JSAPI 2.0](https://a.amap.com/jsapi/static/doc/index.html) \\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\",\n headings:[]\n }"],"names":["components","_typeof","obj","Symbol","iterator","constructor","prototype","__esModule","_react","nodeInterop","cache","_getRequireWildcardCache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","hasOwnProperty","call","desc","set","_interopRequireWildcard","_reactAmap","WeakMap","cacheBabelInterop","cacheNodeInterop","Demo","createElement","Map","style","height","ScaleControl","offset","position","ToolBarControl","ControlBarControl","Geolocation","maximumAge","borderRadius","zoomToAccuracy","showCircle","_ref","AMap","map","container","APILoader","version","akey","data","source","headings"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/4702.f6787a44.chunk.js","mappings":"+GACA,WACIA,WAAY,CAAE,GAAI,WAEtB,SAASC,EAAQC,GAAkC,OAAOD,EAAU,mBAAqBE,QAAU,iBAAmBA,OAAOC,SAAW,SAAUF,GAAO,cAAcA,CAAK,EAAI,SAAUA,GAAO,OAAOA,GAAO,mBAAqBC,QAAUD,EAAIG,cAAgBF,QAAUD,IAAQC,OAAOG,UAAY,gBAAkBJ,CAAK,EAAGD,EAAQC,EAAM,EAM/SA,EALO,EAAQ,QAKMA,EAAIK,WALzD,IAKgCL,EAJ5BM,EAGJ,SAAiCN,EAAKO,GAAe,IAAKA,GAAeP,GAAOA,EAAIK,WAAc,OAAOL,EAAO,GAAY,OAARA,GAAiC,WAAjBD,EAAQC,IAAoC,oBAARA,EAAsB,MAAO,CAAE,QAAWA,GAAS,IAAIQ,EAAQC,EAAyBF,GAAc,GAAIC,GAASA,EAAME,IAAIV,GAAQ,OAAOQ,EAAMG,IAAIX,GAAQ,IAAIY,EAAS,CAAC,EAAOC,EAAwBC,OAAOC,gBAAkBD,OAAOE,yBAA0B,IAAK,IAAIC,KAAOjB,EAAO,GAAY,YAARiB,GAAqBH,OAAOV,UAAUc,eAAeC,KAAKnB,EAAKiB,GAAM,CAAE,IAAIG,EAAOP,EAAwBC,OAAOE,yBAAyBhB,EAAKiB,GAAO,KAAUG,IAASA,EAAKT,KAAOS,EAAKC,KAAQP,OAAOC,eAAeH,EAAQK,EAAKG,GAAgBR,EAAOK,GAAOjB,EAAIiB,EAAQ,CAAIL,EAAgB,QAAIZ,EAASQ,GAASA,EAAMa,IAAIrB,EAAKY,GAAW,OAAOA,CAAQ,CAH7xBU,CAAwB,EAAQ,OACzCC,EAAa,EAAQ,MACzB,SAASd,EAAyBF,GAAe,GAAuB,oBAAZiB,QAAwB,OAAO,KAAM,IAAIC,EAAoB,IAAID,QAAeE,EAAmB,IAAIF,QAAW,OAAQf,EAA2B,SAAkCF,GAAe,OAAOA,EAAcmB,EAAmBD,CAAmB,GAAGlB,EAAc,CAG9U,IAAIoB,EAAO,WACT,OAAoBrB,EAAgB,QAAEsB,cAAc,MAAO,KAAmBtB,EAAgB,QAAEsB,cAAcL,EAAWM,IAAK,CAC5HC,MAAO,CACLC,OAAQ,MAEIzB,EAAgB,QAAEsB,cAAcL,EAAWS,aAAc,CACvEC,OAAQ,CAAC,GAAI,IACbC,SAAU,OACK5B,EAAgB,QAAEsB,cAAcL,EAAWY,eAAgB,CAC1EF,OAAQ,CAAC,GAAI,IACbC,SAAU,OACK5B,EAAgB,QAAEsB,cAAcL,EAAWa,kBAAmB,CAC7EH,OAAQ,CAAC,GAAI,KACbC,SAAU,OACK5B,EAAgB,QAAEsB,cAAcL,EAAWc,YAAa,CACvEC,WAAY,IACZC,aAAc,MACdL,SAAU,KACVD,OAAQ,CAAC,GAAI,IACbO,gBAAgB,EAChBC,YAAY,KACInC,EAAgB,QAAEsB,cAAcL,EAAWM,IAAK,CAChEC,MAAO,CACLC,OAAQ,OAET,SAAUW,GACAA,EAAKC,KACRD,EAAKE,IACCF,EAAKG,SAErB,IACF,EAOA,OANY,WACV,OAAoBvC,EAAgB,QAAEsB,cAAcL,EAAWuB,UAAW,CACxEC,QAAS,QACTC,KAAM,oCACQ1C,EAAgB,QAAEsB,cAAcD,EAAM,MACxD,CACe,CA/CO,IAgDlBsB,KAAM,CACR,GAAM,CACJ,KAAQ,GACR,KAAQ,CAAC,EACT,KAAQ,ogGACR,SAAY,MACZ,MAAS,o7BAGTC,OAAQ,oo6BACRC,SAAS,G","sources":["../../packages/amap/README.md"],"sourcesContent":["\nexport default {\n components: { 74: (function() { \"use strict\";\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactAmap = require(\"@uiw/react-amap\");\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \"function\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \"object\" && typeof obj !== \"function\") { return { \"default\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\"default\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nvar Demo = function Demo() {\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.ScaleControl, {\n offset: [16, 30],\n position: \"LB\"\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.ToolBarControl, {\n offset: [16, 10],\n position: \"RB\"\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.ControlBarControl, {\n offset: [16, 180],\n position: \"RB\"\n }), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.Geolocation, {\n maximumAge: 100000,\n borderRadius: \"5px\",\n position: \"RB\",\n offset: [16, 80],\n zoomToAccuracy: true,\n showCircle: true\n })), /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.Map, {\n style: {\n height: 300\n }\n }, function (_ref) {\n var AMap = _ref.AMap,\n map = _ref.map,\n container = _ref.container;\n return;\n }));\n};\nvar Mount = function Mount() {\n return /*#__PURE__*/_react[\"default\"].createElement(_reactAmap.APILoader, {\n version: \"2.0.5\",\n akey: \"a7a90e05a37d3f6bf76d4a9032fc9129\"\n }, /*#__PURE__*/_react[\"default\"].createElement(Demo, null));\n};\nreturn Mount; })(), },\n data: {\n \"74\": {\n \"name\": 74,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _typeof(obj) { \\\"@babel/helpers - typeof\\\"; return _typeof = \\\"function\\\" == typeof Symbol && \\\"symbol\\\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \\\"function\\\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \\\"symbol\\\" : typeof obj; }, _typeof(obj); }\\nvar _reactDom = _interopRequireDefault(require(\\\"react-dom\\\"));\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactAmap = require(\\\"@uiw/react-amap\\\");\\nfunction _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== \\\"function\\\") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }\\nfunction _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== \\\"object\\\" && typeof obj !== \\\"function\\\") { return { \\\"default\\\": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== \\\"default\\\" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj[\\\"default\\\"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }\\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \\\"default\\\": obj }; }\\nvar Demo = function Demo() {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.Map, {\\n style: {\\n height: 300\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.ScaleControl, {\\n offset: [16, 30],\\n position: \\\"LB\\\"\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.ToolBarControl, {\\n offset: [16, 10],\\n position: \\\"RB\\\"\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.ControlBarControl, {\\n offset: [16, 180],\\n position: \\\"RB\\\"\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.Geolocation, {\\n maximumAge: 100000,\\n borderRadius: \\\"5px\\\",\\n position: \\\"RB\\\",\\n offset: [16, 80],\\n zoomToAccuracy: true,\\n showCircle: true\\n })), /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.Map, {\\n style: {\\n height: 300\\n }\\n }, function (_ref) {\\n var AMap = _ref.AMap,\\n map = _ref.map,\\n container = _ref.container;\\n return;\\n }));\\n};\\nvar Mount = function Mount() {\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactAmap.APILoader, {\\n version: \\\"2.0.5\\\",\\n akey: \\\"a7a90e05a37d3f6bf76d4a9032fc9129\\\"\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(Demo, null));\\n};\\nreturn Mount;\",\n \"language\": \"jsx\",\n \"value\": \"import ReactDOM from 'react-dom';\\nimport React, { useEffect, useRef, Fragment } from 'react';\\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from '@uiw/react-amap';\\n\\nconst Demo = () => (\\n
\\n \\n \\n \\n \\n \\n \\n \\n {({ AMap, map, container }) => {\\n return;\\n }}\\n \\n
\\n);\\n\\nconst Mount = () => (\\n \\n \\n \\n)\\nexport default Mount\"\n }\n},\n source: \"

\\n

\\n \\n \\\"高德地图\\n \\n

\\n

高德地图 React 组件

\\n\\n

\\n \\n \\\"Build\\n \\n \\n \\\"Downloads\\\"\\n \\n \\n \\\"Open\\n \\n \\n \\\"npm\\n \\n \\n \\\"Gitee\\n \\n

\\n\\n这是一个基于 React 封装的高德地图组件,帮助你轻松的接入地图到 React 项目中。除了必须引用的 APILoader/Map 组件外,我们目前提供了最常用的地图组件,能满足大部分简单的业务场景;如果你有更复杂的需求,或者觉得默认提供的组件功能不够,可以使用 Map 组件返回的地图实例,完全自定义一个地图组件,然后根据高德原生 API 做高德允许你做的一切事情。\\n\\n文档实例预览: [Github Web](https://uiwjs.github.io/react-amap/) | [Gitee Web](https://uiw.gitee.io/react-amap)\\n\\n### 特性\\n\\n- ♻️ 自动加载高德地图 SDK(通过创建 Script 标签的形式加载),包括第三方 SDK。\\n- 📚 使用 Typescript 编写,集成高德地图 SDK [@type](https://github.com/uiwjs/react-amap/tree/master/packages/types) 声明文件(包括中文注释)。\\n- ⚛️ 支持 React Hook 新增特性(需要 React 16.8+)。\\n- 💝 不依赖任何第三方组件。\\n- 📦 拆分成多个包,按需使用包。\\n\\n### 安装\\n\\n> 不依赖 [`uiw`](https://github.com/uiwjs/uiw) 组件库\\n\\n```bash\\n# 集成了所有依赖包\\nnpm install @uiw/react-amap --save\\n\\n# 或者按需安装包\\nnpm install @uiw/react-amap-map @uiw/react-amap-api-loader --save\\n```\\n\\n`v4` 升级到 `v5`,`APILoader` 主要是对 `APILoader` 做了升级,~~`akay`~~ => `akey`\\n\\n```diff\\n \\n \\n \\n```\\n\\n### 使用\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-amap-example-y0n6c-y0n6c?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx mdx:preview\\nimport ReactDOM from 'react-dom';\\nimport React, { useEffect, useRef, Fragment } from 'react';\\nimport { Map, APILoader, ScaleControl, ToolBarControl, ControlBarControl, Geolocation } from '@uiw/react-amap';\\n\\nconst Demo = () => (\\n
\\n \\n \\n \\n \\n \\n \\n \\n {({ AMap, map, container }) => {\\n return;\\n }}\\n \\n
\\n);\\n\\nconst Mount = () => (\\n \\n \\n \\n)\\nexport default Mount\\n```\\n\\n### 容器组件\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap`](https://uiwjs.github.io/react-amap/) 集成所有包 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap.svg)](https://www.npmjs.com/package/@uiw/react-amap) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap/file/README.md)\\n[`@uiw/react-amap-api-loader`](https://uiwjs.github.io/react-amap/#/api-loader) 加载 SDK (必须) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-api-loader?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-api-loader?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-api-loader) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-api-loader.svg)](https://www.npmjs.com/package/@uiw/react-amap-api-loader) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-api-loader/file/README.md)\\n[`@uiw/react-amap-map`](https://uiwjs.github.io/react-amap/#/map) 加载地图(容器) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map.svg)](https://www.npmjs.com/package/@uiw/react-amap-map) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map/file/README.md)\\n\\n### 控件组件\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-scale-control`](https://uiwjs.github.io/react-amap/#/scale-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-scale-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-scale-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-scale-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-scale-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-scale-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-scale-control/file/README.md)\\n[`@uiw/react-amap-control-bar-control`](https://uiwjs.github.io/react-amap/#/control-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-control-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-control-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-control-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-control-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-control-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-control-bar-control/file/README.md)\\n[`@uiw/react-amap-hawk-eye-control`](https://uiwjs.github.io/react-amap/#/hawk-eye-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-hawk-eye-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-hawk-eye-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-hawk-eye-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-hawk-eye-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-hawk-eye-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-hawk-eye-control/file/README.md)\\n[`@uiw/react-amap-map-type-control`](https://uiwjs.github.io/react-amap/#/map-type-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-map-type-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-map-type-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-map-type-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-map-type-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-map-type-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-map-type-control/file/README.md)\\n[`@uiw/react-amap-tool-bar-control`](https://uiwjs.github.io/react-amap/#/tool-bar-control) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tool-bar-control?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tool-bar-control?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tool-bar-control) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tool-bar-control.svg)](https://www.npmjs.com/package/@uiw/react-amap-tool-bar-control) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tool-bar-control/file/README.md)\\n\\n### 覆盖物\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-marker`](https://uiwjs.github.io/react-amap/#/marker) 点标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-marker/file/README.md)\\n[`@uiw/react-amap-label-marker`](https://uiwjs.github.io/react-amap/#/label-marker) 点标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-label-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-label-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-label-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-label-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-label-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-label-marker/file/README.md)\\n[`@uiw/react-amap-text`](https://uiwjs.github.io/react-amap/#/text) 文本标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-text?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-text?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-text) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-text.svg)](https://www.npmjs.com/package/@uiw/react-amap-text) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-text/file/README.md)\\n[`@uiw/react-amap-tile-layer`](https://uiwjs.github.io/react-amap/#/tile-layer) 文本标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-tile-layer?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-tile-layer?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-tile-layer) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-tile-layer.svg)](https://www.npmjs.com/package/@uiw/react-amap-tile-layer) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-tile-layer/file/README.md)\\n[`@uiw/react-amap-polyline`](https://uiwjs.github.io/react-amap/#/polyline) 折线 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline/file/README.md)\\n[`@uiw/react-amap-polyline-editor`](https://uiwjs.github.io/react-amap/#/polyline-editor) 折线编辑器 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polyline-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polyline-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polyline-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polyline-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polyline-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polyline-editor/file/README.md)\\n[`@uiw/react-amap-poly-editor`](https://uiwjs.github.io/react-amap/#/poly-editor) 折线编辑器 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-poly-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-poly-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-poly-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-poly-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-poly-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-poly-editor/file/README.md)\\n[`@uiw/react-amap-circle`](https://uiwjs.github.io/react-amap/#/circle) 圆形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle/file/README.md)\\n[`@uiw/react-amap-circle-marker`](https://uiwjs.github.io/react-amap/#/circle-marker) 圆点标记 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-circle-marker?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-circle-marker?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-circle-marker) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-circle-marker.svg)](https://www.npmjs.com/package/@uiw/react-amap-circle-marker) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-circle-marker/file/README.md)\\n[`@uiw/react-amap-ellipse`](https://uiwjs.github.io/react-amap/#/ellipse) 圆形组件 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-ellipse?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-ellipse?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-ellipse) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-ellipse.svg)](https://www.npmjs.com/package/@uiw/react-amap-ellipse) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-ellipse/file/README.md)\\n[`@uiw/react-amap-rectangle`](https://uiwjs.github.io/react-amap/#/rectangle) 矩形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-rectangle?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-rectangle?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-rectangle) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-rectangle.svg)](https://www.npmjs.com/package/@uiw/react-amap-rectangle) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-rectangle/file/README.md)\\n[`@uiw/react-amap-bezier-curve`](https://uiwjs.github.io/react-amap/#/bezier-curve) 贝塞尔曲线 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-bezier-curve?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-bezier-curve?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-bezier-curve) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-bezier-curve.svg)](https://www.npmjs.com/package/@uiw/react-amap-bezier-curve) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-bezier-curve/file/README.md)\\n[`@uiw/react-amap-polygon`](https://uiwjs.github.io/react-amap/#/polygon) 多边形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon/file/README.md)\\n[`@uiw/react-amap-polygon-editor`](https://uiwjs.github.io/react-amap/#/polygon-editor) 多边形 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-polygon-editor?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-polygon-editor?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-polygon-editor) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-polygon-editor.svg)](https://www.npmjs.com/package/@uiw/react-amap-polygon-editor) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-polygon-editor/file/README.md)\\n[`@uiw/react-amap-mass-marks`](https://uiwjs.github.io/react-amap/#/mass-marks) 海量点 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mass-marks?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mass-marks?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mass-marks) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mass-marks.svg)](https://www.npmjs.com/package/@uiw/react-amap-mass-marks) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mass-marks/file/README.md)\\n[`@uiw/react-amap-mouse-tool`](https://uiwjs.github.io/react-amap/#/mouse-tool) 绘制工具 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-mouse-tool?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-mouse-tool?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-mouse-tool) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-mouse-tool.svg)](https://www.npmjs.com/package/@uiw/react-amap-mouse-tool) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-mouse-tool/file/README.md)\\n\\n### 信息窗体 & 右键菜单\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-info-window`](https://uiwjs.github.io/react-amap/#/info-window) 信息窗体 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-info-window?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-info-window?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-info-window) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-info-window.svg)](https://www.npmjs.com/package/@uiw/react-amap-info-window) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-info-window/file/README.md)\\n[`@uiw/react-amap-context-menu`](https://uiwjs.github.io/react-amap/#/context-menu) 右键菜单 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-context-menu?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-context-menu?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-context-menu) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-context-menu.svg)](https://www.npmjs.com/package/@uiw/react-amap-context-menu) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-context-menu/file/README.md)\\n\\n### 服务\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-geolocation`](https://uiwjs.github.io/react-amap/#/geolocation) 定位 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-geolocation?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-geolocation?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-geolocation) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-geolocation.svg)](https://www.npmjs.com/package/@uiw/react-amap-geolocation) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-geolocation/file/README.md)\\n[`@uiw/react-amap-weather`](https://uiwjs.github.io/react-amap/#/weather) 天气查询服务 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-weather?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-weather?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-weather) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-weather.svg)](https://www.npmjs.com/package/@uiw/react-amap-weather) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-weather/file/README.md)\\n[`@uiw/react-amap-auto-complete`](https://uiwjs.github.io/react-amap/#/auto-complete) 输入提示 | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-auto-complete?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-auto-complete?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-auto-complete) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-auto-complete.svg)](https://www.npmjs.com/package/@uiw/react-amap-auto-complete) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-auto-complete/file/README.md)\\n\\n### 其它\\n\\nPackage | Bundle size(gzip) | Version/unpkg\\n----- | ----- | ----\\n[`@uiw/react-amap-require-script`](https://uiwjs.github.io/react-amap/#/require-script) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-require-script?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-require-script?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-require-script) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-require-script.svg)](https://www.npmjs.com/package/@uiw/react-amap-require-script) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-require-script/file/README.md)\\n[`@uiw/react-amap-types`](https://uiwjs.github.io/react-amap/#/types) 类型定义 | [![](https://img.shields.io/npm/types/@uiw/react-amap-types)](https://www.npmjs.com/package/@uiw/react-amap-types) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-types.svg)](https://www.npmjs.com/package/@uiw/react-amap-types) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-types/file/README.md)\\n[`@uiw/react-amap-utils`](https://uiwjs.github.io/react-amap/#/utils) | [![bundle size](https://img.shields.io/bundlephobia/min/@uiw/react-amap-utils?color=3789D6&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) [![bundle size(gzip)](https://img.shields.io/bundlephobia/minzip/@uiw/react-amap-utils?color=green&label=)](https://bundlephobia.com/package/@uiw/react-amap-utils) | [![npm version](https://img.shields.io/npm/v/@uiw/react-amap-utils.svg)](https://www.npmjs.com/package/@uiw/react-amap-utils) [![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-amap-utils/file/README.md)\\n\\n\\n## 开发\\n\\n```bash\\nnpm install # Step 1: 安装依赖\\nnpm run build # Step 2: 编译所有包\\n\\nnpm run start # 文档网站运行\\nnpm run watch:amap # 监听编译输出 js 文件, 监听编译输出 .d.ts 类型文件\\n```\\n\\n## 相关连接\\n\\n- [@uiw/react-baidu-map](https://github.com/uiwjs/react-baidu-map) 百度地图 React 组件\\n- [高德拾取坐标系统](https://lbs.amap.com/console/show/picker) \\n- [官方示例中心](https://lbs.amap.com/demo-center/jsapi-v2) \\n- [高德地图 JSAPI 2.0](https://a.amap.com/jsapi/static/doc/index.html) \\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [gcontributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\",\n headings:[]\n }"],"names":["components","_typeof","obj","Symbol","iterator","constructor","prototype","__esModule","_react","nodeInterop","cache","_getRequireWildcardCache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","hasOwnProperty","call","desc","set","_interopRequireWildcard","_reactAmap","WeakMap","cacheBabelInterop","cacheNodeInterop","Demo","createElement","Map","style","height","ScaleControl","offset","position","ToolBarControl","ControlBarControl","Geolocation","maximumAge","borderRadius","zoomToAccuracy","showCircle","_ref","AMap","map","container","APILoader","version","akey","data","source","headings"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5775.4a5d7cbf.chunk.js b/static/js/5775.4a5d7cbf.chunk.js deleted file mode 100644 index 895ba6a15..000000000 --- a/static/js/5775.4a5d7cbf.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5775],{6017:function(e){e.exports=function(){function e(e){var t=[];return e.AMapUI&&t.push(n(e.AMapUI)),e.Loca&&t.push(o(e.Loca)),Promise.all(t)}function n(e){return new Promise((function(n,o){var r=[];if(e.plugins)for(var c=0;c=2&&e.zoom<=20&&(p(e.zoom),i.setZoom(e.zoom))}),[f,e.zoom]),(0,a.useMemo)((function(){e.center&&i&&i.setCenter(e.center)}),[i,e.center]),v(i,e,["dragEnable","zoomEnable","jogEnable","pitchEnable","rotateEnable","animateEnable","keyboardEnable"]),h(i,e,["Zoom","LabelzIndex","Layers","City","Bounds","LimitBounds","Lang","Rotation","DefaultCursor","MapStyle","Features","DefaultLayer","Pitch"]),A(i,e,["onMouseMove","onZoomChange","onMapMove","onMouseWheel","onZoomStart","onMouseOver","onMouseOut","onDblClick","onClick","onZoomEnd","onMoveEnd","onMouseUp","onMouseDown","onRightClick","onMoveStart","onDragStart","onDragging","onDragEnd","onHotspotOut","onHotspotOver","onTouchStart","onComplete","onHotspotClick","onTouchMove","onTouchEnd","onResize"]),{map:i,setMap:u,zoom:f,setZoom:p,container:m,setContainer:E}},I=["className","children"],b=function(e){var n=(0,a.useReducer)(C,w),o=(0,t.Z)(n,2),r=o[0],i=o[1];return(0,u.jsx)(y.Provider,{value:(0,s.Z)({},r,{state:r,dispatch:i}),children:e.children})},T=(0,a.forwardRef)((function(e,n){var o=e.className,i=e.children,c=(0,r.Z)(e,I),l=window.AMap,f=(0,a.useReducer)(C,w),p=(0,t.Z)(f,2),d=p[0],v=p[1],M=(0,a.useRef)(null),m=Z((0,s.Z)({container:c.container||M.current},c)),A=m.setContainer,h=m.container,E=m.map;(0,a.useEffect)((function(){return A(M.current)}),[M.current]),(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},c,{map:E,AMap:l,container:c.container||M.current})}),[E]);var g=a.Children.toArray(i);return(0,a.useEffect)((function(){E&&v({map:E,container:M.current,AMap:l})}),[E]),(0,u.jsxs)(y.Provider,{value:(0,s.Z)({},d,{state:d,dispatch:v}),children:[!c.container&&(0,u.jsx)("div",{ref:M,className:o,style:(0,s.Z)({fontSize:1,width:"100%",height:"100%"},c.style)}),l&&E&&"function"===typeof i&&i({AMap:l,map:E,container:h}),l&&E&&g.map((function(e,n){return(0,a.isValidElement)(e)?"string"===typeof e?(0,a.cloneElement)((0,u.jsx)(a.Fragment,{children:e}),{key:n}):e.type&&"string"===typeof e.type?(0,a.cloneElement)(e,{key:n}):(0,a.cloneElement)(e,(0,s.Z)({},e.props,{AMap:l,map:E,container:h,key:n})):null}))]})})),S=["visiable"],L=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,S),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.BezierCurve((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Options","Path","ExtData","ExtData"]),A(l,e,["onHide","onShow","onDblClick","onMouseOver","onMouseUp","onMouseDown","onclick","onTouchEnd","onTouchMove","onTouchStart","onRightClick","onMouseOut"]),{bezierCurve:l,setBezierCurve:f}},R=a.forwardRef((function(e,n){var o=L(e).bezierCurve;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{bezierCurve:o})})),null})),x=["visiable"],O=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,x),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Circle((0,s.Z)({},o));i.add(e),f(e)}return function(){f((function(e){e&&i&&i.remove(e)}))}}),[i]),M(l,n),h(l,e,["Center","Raius","Options","ExtData"]),A(l,e,["onHide","onShow","onRightClick","onClick","onTouchEnd","onDblClick","onTouchMove","onTouchStart","onMouseOut","onMouseOver","onMouseUp","onMouseDown"]),{circle:l,setCircle:f}},P=a.forwardRef((function(e,n){var o=O(e).circle;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{circle:o})})),null})),U=["visiable"],D=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,U),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.CircleMarker((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Center","Raius","zIndex","Bubble","Cursor","StrokeColor","StrokeOpacity","StrokeWeight","FillColor","FillOpacity","Draggable","ExtData"]),A(l,e,["onHide","onShow","onMouseover","onTouchend","onClick","onTouchmove","onRightclick","onMouseup","onMouseout","onTouchstart","onMousedown","onDblclick"]),{circleMarker:l,setCircleMarker:f}},H=a.forwardRef((function(e,n){var o=D(e).circleMarker;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{circleMarker:o})})),null})),z=["position"],B=function(e){void 0===e&&(e={});var n=e.position,o=(0,r.Z)(e,z),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.ContextMenu((0,s.Z)({},o));f(e);var t=function(o){return e.open(i,n||o.lnglat)};return i.on("rightclick",t),function(){e&&(e.close(),i.off("rightclick",t),f(void 0))}}}),[i]),A(l,e,["onOpen","onClose"]),{contextMenu:l,setContextMenu:f}},N=function(){},j=a.forwardRef((function(e,n){var o=B(e).contextMenu;(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{contextMenu:o})}));var t=a.Children.toArray(e.children);return(0,u.jsx)(a.Fragment,{children:AMap&&o&&t.map((function(n,t){return a.isValidElement(n)?a.cloneElement(n,(0,s.Z)({},n.props,{AMap:AMap,map:e.map,contextMenu:o,key:t})):null}))})}));function W(e){void 0===e&&(e={});var n=e,o=n.position,r=n.visiable,i=n.offset,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],s=c[1],f=k().map;return(0,a.useEffect)((function(){var e;if(f&&!l)return f.plugin(["AMap.ControlBar","AMap.HawkEye"],(function(){e=new AMap.ControlBar({offset:i,position:o}),f.addControl(e),s(e)})),function(){e&&f.removeControl(e)}}),[f]),M(l,r),{controlBarControl:l,setControlBarControl:s}}j.Item=function(e){void 0===e&&(e={});var n=e,o=n.text,t=void 0===o?"":o,r=n.onClick,i=void 0===r?N:r;return(0,a.useEffect)((function(){return e.contextMenu&&e.contextMenu.addItem(t,i,1),function(){e.contextMenu&&e.contextMenu.removeItem(t,i)}}),[e.contextMenu,e.text,e.onClick]),null};var _=a.forwardRef((function(e,n){var o=W(e).controlBarControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{controlBarControl:o})}),[o]),null})),F=["visiable"],G=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,F),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Ellipse((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Center","Radius","Options","ExtData"]),A(l,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{ellipse:l,setEllipse:f}},Y=a.forwardRef((function(e,n){var o=G(e).ellipse;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{ellipse:o})})),null})),V=["type","onComplete","onError"],J=function(e){void 0===e&&(e={});var n=e,o=n.type,i=void 0===o?"position":o,u=n.onComplete,c=n.onError,l=(0,r.Z)(e,V),f=(0,a.useState)(),p=(0,t.Z)(f,2),d=p[0],v=p[1],M=k().map;function m(e,n){"complete"===e&&u?u(n):c&&c(n)}return(0,a.useEffect)((function(){var e;if(AMap&&!d)return AMap.plugin(["AMap.Geolocation"],(function(){e=new AMap.Geolocation((0,s.Z)({},l)),v(e)})),function(){e&&v(void 0)}}),[AMap]),(0,a.useMemo)((function(){if(/^(position|cityInfo)$/.test(i)){var e="position"===i?"getCurrentPosition":"getCityInfo";d&&M?(d[e](m),M.addControl(d)):d&&d[e](m)}}),[d]),{geolocation:d,setGeolocation:v}},K=a.forwardRef((function(e,n){var o=J(e).geolocation;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{geolocation:o})})),null})),q=["offset","visiable"];function $(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),i=o[0],u=o[1],c=e,l=c.offset,f=c.visiable,p=(0,r.Z)(e,q),d=k().map;return(0,a.useEffect)((function(){var e;if(d&&!i)return d.plugin(["AMap.HawkEye"],(function(){e=new AMap.HawkEye((0,s.Z)({offset:l},p)),d.addControl(e),u(e)})),function(){e&&d&&(d&&d.removeControl(e),u(void 0))}}),[d]),M(i,f),{hawkEyeControl:i,setHawkEyeControl:u}}var Q=a.forwardRef((function(e,n){var o=$(e).hawkEyeControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{hawkEyeControl:o})}),[o]),null})),X=["visiable","position"],ee=function(e){void 0===e&&(e={});var n=e,o=n.visiable,i=n.position,u=(0,r.Z)(e,X),c=k().map,l=(0,a.useState)(o),f=(0,t.Z)(l,2),p=f[0],v=f[1],M=(0,a.useState)(),m=(0,t.Z)(M,2),E=m[0],g=m[1],w=d(),C=w.container,y=w.Portal;return(0,a.useEffect)((function(){if(AMap&&c&&!E){var n=c.getCenter();e.children&&(u.content=C);var o=new AMap.InfoWindow((0,s.Z)({},u,{position:i||n}));return g(o),p&&o.open(c,i||n),function(){o&&(c&&c.remove(o),g(void 0))}}}),[c]),(0,a.useEffect)((function(){E&&E.setContent(e.children?C:u.content||"")}),[e.children,C,u.content,E]),(0,a.useMemo)((function(){if(p!==o&&E&&c)if(v(o),o){var e=c.getCenter();E.open(c,i||e)}else E.close()}),[o,E]),(0,a.useEffect)((function(){if(c&&E&&o){var e=c.getCenter();E.open(c,i||e)}}),[i]),h(E,e,["Content","Anchor","Size"]),A(E,e,["onOpen","onClose","onChange"]),{isOpen:p,setIsOpen:v,infoWindow:E,setInfoWindow:g,InfoWindowPortal:y}},ne=a.forwardRef((function(e,n){var o=ee(e),t=o.infoWindow,r=o.InfoWindowPortal;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{infoWindow:t})})),(0,u.jsx)(r,{children:e.children})})),oe=["visiable","defaultType"];function te(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),i=o[0],u=o[1],c=e,l=c.visiable,f=c.defaultType,p=void 0===f?0:f,d=(0,r.Z)(e,oe),v=k().map;return(0,a.useEffect)((function(){var e;if(v&&!i)return v.plugin(["AMap.MapType"],(function(){e=new AMap.MapType((0,s.Z)({defaultType:p},d)),v.addControl(e),u(e)})),function(){e&&v.removeControl(e)}}),[v]),M(i,l),{mapTypeControl:i,setMapTypeControl:u}}var re=a.forwardRef((function(e,n){var o=te(e).mapTypeControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{mapTypeControl:o})}),[o]),null}));function ae(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),r=o[0],i=o[1],u=e,c=u.visiable,l=u.type,s=u.options,f=k().map;return(0,a.useEffect)((function(){if(f){var n=null;if(l)switch(l){case ie.ROADNET:n=new AMap.TileLayer.RoadNet({});break;case ie.SATELLITE:n=new AMap.TileLayer.Satellite({});break;case ie.TRAFFIC:n=new AMap.TileLayer.Traffic({})}return s&&(n=new AMap.TileLayer(s)),n&&(f.add(n),e.onAdded&&e.onAdded(),i(n)),function(){n&&(AMap.v?f&&f.remove(n):f&&f.removeLayer(n),i(null),e.onRemoved&&e.onRemoved())}}}),[f,l,s]),M(r,c),{tileLayer:r,setTileLayer:i}}var ie=function(e){return e.SATELLITE="satellite",e.TRAFFIC="traffic",e.ROADNET="roadnet",e}({}),ue=a.forwardRef((function(e,n){var o=ae(e).tileLayer;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{tileLayer:o})}),[o]),null})),ce=["visiable","children"],le=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,ce),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=d(),v=p.container,m=p.Portal;return(0,a.useEffect)((function(){if(!l&&i){e.children&&(o.content=v);var n=new AMap.Marker((0,s.Z)({},o));i.add(n),f(n)}return function(){l&&(l.setMap(null),f(void 0))}}),[i,l]),M(l,n),h(l,e,["Path","Anchor","Offset","Animation","Clickable","Position","Angle","Label","zIndex","Icon","Draggable","Cursor","Content","Map","Title","Top","Shadow","Shape","ExtData"]),A(l,e,["onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragging","onDragEnd","onMoving","onMoveEnd","onMoveAlong","onTouchStart","onTouchMove","onTouchEnd"]),{marker:l,setMarker:f,MarkerPortal:m}},se=(0,a.forwardRef)((function(e,n){var o=le(e),t=o.marker,r=o.MarkerPortal;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{marker:t})}),[t]),(0,u.jsx)(r,{children:e.children})})),fe=["visiable","children","text","icon"],pe=(0,a.forwardRef)((function(e,n){var o=function(e){void 0===e&&(e={});var n=e,o=n.visiable,i=n.text,u=n.icon,c=(0,r.Z)(e,fe),l=k(),f=l.map,p=l.AMap,d=(0,a.useState)(),v=(0,t.Z)(d,2),m=v[0],E=v[1];return(0,a.useEffect)((function(){if(!m&&f){var e,n=i;i||(n={content:"",direction:"right",offset:[-20,-5],style:{fontSize:12,fillColor:"#22886f",strokeColor:"#fff",strokeWidth:2}});var o=u;o||(o={image:"http://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png",size:[19,32],anchor:"center"});var t,r=new p.LabelMarker((0,s.Z)({style:o,icon:o,text:n},c));E(r),0===(null==p||null==(e=p.v)?void 0:e.indexOf("1.4"))&&(f.labelMarkersLayer?t=f.labelMarkersLayer:(f.labelMarkersLayer=t=new p.LabelsLayer({zooms:[3,20],zIndex:101,collision:!0,animation:!0}),f.add(t)),t.add(r)),f.add(r)}return function(){var e,n;m&&(0===(null==p||null==(e=p.v)?void 0:e.indexOf("1.4"))&&(null==f||null==(n=f.labelMarkersLayer)||n.remove(m)),E(void 0))}}),[m,f]),M(m,o),h(m,e,["Name","Position","Zooms","Opacity","zIndex","Rank","Text","Icon","ExtData","Top"]),A(m,e,["onMousedown","onMouseup","onTouchstart","onTouchmove","onTouchend","onClick","onMousemove","onMouseover","onMouseout"]),{labelMarker:m,setLabelMarker:E}}(e),i=o.labelMarker;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{labelMarker:i})}),[i]),null})),de=["visiable"],ve=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,de),i=k().map,u=o||{},c=u.opacity,l=void 0===c?1:c,s=u.zIndex,f=void 0===s?1111:s,p=u.style,d=u.data,v=(0,a.useState)(),m=(0,t.Z)(v,2),E=m[0],g=m[1];return(0,a.useEffect)((function(){if(AMap&&i&&!E){var e=p;e||(e=[{url:"https://webapi.amap.com/images/mass/mass0.png",anchor:new AMap.Pixel(6,6),size:new AMap.Size(11,11),zIndex:3},{url:"https://webapi.amap.com/images/mass/mass1.png",anchor:new AMap.Pixel(4,4),size:new AMap.Size(7,7),zIndex:2},{url:"https://webapi.amap.com/images/mass/mass2.png",anchor:new AMap.Pixel(3,3),size:new AMap.Size(5,5),zIndex:1}]);var n=new AMap.MassMarks(d||[],{opacity:l,zIndex:f,style:e});return g(n),n.setMap(i),function(){n&&(n.clear(),g(void 0))}}}),[i]),M(E,n),h(E,e,["Map","Data","Style","Opacity","zIndex","Zooms"]),A(E,e,["onClick","onDblClick","onMouseMove","onMouseOut","onMouseUp","onMouseDown","onMouseOver","onTouchStart","onTouchEnd"]),{massMarks:E,setMassMarks:g}},Me=a.forwardRef((function(e,n){var o=ve(e).massMarks;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{massMarks:o})}),[o,e]),null})),me=["visiable"],Ae=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,me),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Polygon((0,s.Z)({},o));return i.add(e),f(e),function(){if(e)try{i&&i.remove(e)}catch(n){}f(void 0)}}}),[i]),(0,a.useEffect)((function(){l&&l.setOptions(o)}),[l,o]),M(l,n),h(l,e,["Path","Options","Map","ExtData","Draggable"]),A(l,e,["onClick","onDblClick","onRightClick","onHide","onShow","onMouseDown","onMouseUp","onMouseOver","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onTouchStart","onTouchMove","onTouchEnd"]),{polygon:l,setPolygon:f}},he=(0,a.forwardRef)((function(e,n){var o=e.children,t=Ae(e).polygon;if((0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polygon:t})}),[t]),o&&(0,a.isValidElement)(o)&&t){var r={polygon:t,polyElement:t};return(0,a.cloneElement)(o,(0,s.Z)({},e,r))}return null})),Ee=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.polygon,i=k().map,u=(0,a.useState)(!0),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=(0,a.useState)(),d=(0,t.Z)(p,2),v=d[0],M=d[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyEditor:v})})),(0,a.useEffect)((function(){if(r&&i&&!v&&AMap&&AMap.PolygonEditor){var e=new AMap.PolygonEditor(i,r);r.on("hide",(function(){return f(!1)})),r.on("show",(function(){return f(!0)})),M(e)}}),[r]),(0,a.useEffect)((function(){v&&(l&&!o?(v.close(),e.onEnd&&e.onEnd({target:e.polygon})):l&&o?(v.open(),e.onAdd&&e.onAdd({target:e.polygon})):!l&&o&&(v.close(),e.onEnd&&e.onEnd({target:e.polygon})))}),[o,l]),A(v,e,["onEnd","onAddnode","onRemovenode","onAdjust","onMove","onAdd"]),null})),ge=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.polyElement,i=k().map,u=(0,a.useState)(!0),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=(0,a.useState)(),d=(0,t.Z)(p,2),v=d[0],M=d[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyEditor:v})})),(0,a.useEffect)((function(){if(r&&i&&!v&&AMap&&AMap.PolyEditor){var e=new AMap.PolyEditor(i,r);r.on("hide",(function(){return f(!1)})),r.on("show",(function(){return f(!0)})),M(e)}}),[r]),(0,a.useEffect)((function(){v&&(l&&!o?(v.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})):l&&o?v.open():!l&&o&&(v.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})))}),[o,l]),A(v,e,["onEnd","onAddnode","onAdjust","onRemovenode"]),null})),we=["visiable"];function Ce(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),i=o[0],u=o[1],c=e.visiable,l=(0,r.Z)(e,we),s=k().map;return(0,a.useEffect)((function(){if(s&&!i){var e=new AMap.Polyline(l);return s.add(e),u(e),function(){e&&(AMap.v?s&&s.remove(e):s&&s.removeLayer(e),u(void 0))}}}),[s]),(0,a.useEffect)((function(){i&&i.setOptions(l)}),[i,l]),M(i,c),h(i,e,["Path","Options","Map","ExtData","Draggable"]),A(i,e,["onHide","onShow","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onRightClick","onDblClick","onMouseDown","onClick","onMouseOver","onTouchEnd","onTouchMove","onTouchStart","onMouseUp"]),{polyline:i,setPolyline:u}}var ye=a.forwardRef((function(e,n){var o=e.children,t=Ce(e).polyline;if((0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyline:t})}),[t]),o&&(0,a.isValidElement)(o)&&t){var r={polyElement:t,polyline:t};return(0,a.cloneElement)(o,(0,s.Z)({},e,r))}return null})),ke=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.polyline,i=k().map,u=(0,a.useState)(!0),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=(0,a.useState)(),d=(0,t.Z)(p,2),v=d[0],M=d[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyEditor:v})})),(0,a.useEffect)((function(){if(r&&i&&!v&&AMap&&AMap.PolylineEditor){var e=new AMap.PolylineEditor(i,r);r.on("hide",(function(){return f(!1)})),r.on("show",(function(){return f(!0)})),M(e)}}),[r]),(0,a.useEffect)((function(){v&&(l&&!o?(v.close(),e.onEnd&&e.onEnd({target:e.polyline})):l&&o?(v.open(),e.onAdd&&e.onAdd({target:e.polyline})):!l&&o&&(v.close(),e.onEnd&&e.onEnd({target:e.polyline})))}),[o,l,v]),A(v,e,["onEnd","onAddnode","onRemovenode","onAdjust","onAdd"]),null})),Ze=function(e){return e[e.MARKER=0]="MARKER",e[e.POLYLINE=1]="POLYLINE",e[e.POLYGON=2]="POLYGON",e[e.CIRCLE=3]="CIRCLE",e[e.RECTANGLE=4]="RECTANGLE",e[e.MEASUREAREA=5]="MEASUREAREA",e[e.RULE=6]="RULE",e[e.RECTZOOMIN=7]="RECTZOOMIN",e[e.RECTZOOMOUT=8]="RECTZOOMOUT",e}({}),Ie=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.type,i=e.drawElementOptions,u=e.ifClear,c=k().map,l=(0,a.useState)(),f=(0,t.Z)(l,2),p=f[0],d=f[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{mouseTool:p})})),(0,a.useEffect)((function(){if(c&&!p&&AMap&&AMap.MouseTool){var e=new AMap.MouseTool(c);d(e)}}),[c,Map,AMap.MouseTool]),(0,a.useEffect)((function(){if(p)if(o)switch(r){case Ze.MARKER:p.marker(i||{});break;case Ze.POLYLINE:p.polyline(i||{});break;case Ze.POLYGON:p.polygon(i||{});break;case Ze.CIRCLE:p.circle(i||{});break;case Ze.RECTANGLE:p.rectangle(i||{});break;case Ze.MEASUREAREA:p.measureArea(i||{});break;case Ze.RULE:p.rule(i||{});break;case Ze.RECTZOOMIN:p.rectZoomIn(i||{});break;case Ze.RECTZOOMOUT:p.rectZoomOut(i||{})}else p.close(u)}),[o,u]),A(p,e,["onDraw"]),null})),be=["visiable"],Te=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,be),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Rectangle((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Bounds","Options","Map","ExtData"]),A(l,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{rectangle:l,setRectangle:f}},Se=a.forwardRef((function(e,n){var o=Te(e).rectangle;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{rectangle:o})})),null})),Le={};function Re(e,n){void 0===n&&(n="_react_amap_css");var o=document&&(document.head||document.getElementsByTagName("head")[0]),t=document.getElementById(n);return new Promise((function(r,a){if(!document||e in Le||t)r();else{var i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.id=n,i.href=e,i.onerror=function(n){o.removeChild(i),a(new URIError("The css "+e+" is no accessible."))},i.onload=function(){Le[e]=!0,r()},o.appendChild(i)}}))}function xe(e,n){void 0===n&&(n="_react_amap_plugin");var o=document&&(document.head||document.getElementsByTagName("head")[0]),t=document.getElementById(n);return new Promise((function(r,a){if(!document||e in Le||t)r();else{var i=document.createElement("script");i.type="text/javascript",i.id=n,i.async=!0,i.defer=!0,i.src=e,i.onerror=function(n){o.removeChild(i),a(new URIError("The Script "+e+" is no accessible."))},i.onload=function(){Le[e]=!0,r()},o.appendChild(i)}}))}function Oe(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),r=o[0],i=o[1],u=e,c=u.position,l=u.visiable,s=u.offset,f=k().map;return(0,a.useEffect)((function(){var e;if(f&&!r)return f.plugin(["AMap.Scale"],(function(){e=new AMap.Scale({offset:s,position:c}),f.addControl(e),i(e)})),function(){e&&f.removeControl(e)}}),[f]),M(r,l),{scaleControl:r,setScaleControl:i}}var Pe=a.forwardRef((function(e,n){var o=Oe(e).scaleControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{scaleControl:o})}),[o]),null})),Ue=["visiable"],De=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,Ue),i=(0,a.useState)(),u=(0,t.Z)(i,2),c=u[0],l=u[1],f=k().map,p=d(),v=p.container,m=p.Portal;return(0,a.useEffect)((function(){if(AMap&&f&&!c){e.children&&(o.text=v.innerHTML);var n=new AMap.Text((0,s.Z)({},o));return f.add(n),l(n),function(){n&&(n.remove(),l(void 0))}}}),[f]),(0,a.useEffect)((function(){c&&c.setText(e.children?v.innerHTML:e.text||"")}),[e.children,e.text,v,c]),M(c,n),h(c,e,["Style","Title","Clickable","Draggable","Map","Position","Offset","Angle","zIndex","Top","Cursor","ExtData"]),A(c,e,["onMoving","onTouchMove","onTouchEnd","onMoveaLong","onTouchStart","onMoveEnd","onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragEnd","onDragging"]),{text:c,setText:l,TextPortal:m}},He=(0,a.forwardRef)((function(e,n){var o=De((0,s.Z)({},e)),t=o.text,r=o.TextPortal;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{text:t})})),e.children?(0,u.jsx)(r,{children:e.children}):null}));function ze(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),r=o[0],i=o[1],u=e,c=u.position,l=u.visiable,s=u.offset,f=k().map;return(0,a.useEffect)((function(){var e;if(f&&!r)return f.plugin(["AMap.ToolBar"],(function(){e=new AMap.ToolBar({offset:s,position:c}),f.addControl(e),i(e)})),function(){e&&f.removeControl(e)}}),[f]),M(r,l),{toolBarControl:r,setToolBarControl:i}}var Be=a.forwardRef((function(e,n){var o=ze(e).toolBarControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{toolBarControl:o})}),[o]),null})),Ne=function(e){void 0===e&&(e={});var n=e,o=n.city,r=void 0===o?"":o,i=n.type,u=void 0===i?"live":i,c=n.onComplete,l=n.onError,s=(0,a.useState)(),f=(0,t.Z)(s,2),p=f[0],d=f[1],v="live"===u?"getLive":"getForecast";return(0,a.useEffect)((function(){var e;if(AMap&&!p)return AMap.plugin(["AMap.Weather"],(function(){e=new AMap.Weather,d(e)})),function(){e&&d(void 0)}}),[]),(0,a.useMemo)((function(){var e;p&&r&&u&&(e=p,u&&r&&/^(live|forecast)$/.test(u)&&e[v](r,(function(e,n){e&&l?l(e):n&&c&&c(n)})))}),[p,r,u]),{weather:p,setWeather:d}},je=a.forwardRef((function(e,n){var o=Ne(e).weather;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{weather:o})})),null}))}}]); -//# sourceMappingURL=5775.4a5d7cbf.chunk.js.map \ No newline at end of file diff --git a/static/js/5775.4a5d7cbf.chunk.js.map b/static/js/5775.4a5d7cbf.chunk.js.map deleted file mode 100644 index 8d973ef73..000000000 --- a/static/js/5775.4a5d7cbf.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/5775.4a5d7cbf.chunk.js","mappings":"oGAAmFA,EAAOC,QAAiG,WAAW,SAASC,EAAEC,GAAG,IAAIC,EAAE,GAA2D,OAAxDD,EAAEE,QAAQD,EAAEE,KAAKC,EAAEJ,EAAEE,SAASF,EAAEK,MAAMJ,EAAEE,KAAKG,EAAEN,EAAEK,OAAcE,QAAQC,IAAIP,EAAE,CAAC,SAASG,EAAEJ,GAAG,OAAO,IAAIO,SAAQ,SAASE,EAAEC,GAAG,IAAIC,EAAE,GAAG,GAAGX,EAAEY,QAAQ,IAAI,IAAIC,EAAE,EAAEA,EAAEb,EAAE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H,EAAA,GAAjCuV,EAAOrV,EAAA,GAAEsV,EAAUtV,EAAA,GACpBiL,EAAmB,SAATpN,EAAkB,UAAY,cA+B5C,OAnBA0C,EAAAA,EAAAA,YAAU,WAEN,IAAI6B,EADN,GAAI1D,OAAS2W,EAMX,OAJA3W,KAAKY,OAAO,CAAC,iBAAiB,WAC5B8C,EAAW,IAAI1D,KAAK6W,QACpBD,EAAWlT,EACb,IACO,WACDA,GACFkT,OAAW3U,EAEf,CAEJ,GAAG,KACH0F,EAAAA,EAAAA,UAAQ,WAzBR,IAAiBjE,EA0BXiT,GAAWD,GAAQvX,IA1BRuE,EA2BLiT,EA1BNxX,GAAQuX,GAAQ,oBAAoBpK,KAAKnN,IAC3CuE,EAAS6I,GAASmK,GAAM,SAACvU,EAAK+O,GACxB/O,GAAO6J,EACTA,EAAQ7J,GACC+O,GAAQnF,GACjBA,EAAWmF,EAEf,IAqBJ,GAAG,CAACyF,EAASD,EAAMvX,IACZ,CACLwX,QAAAA,EACAC,WAAAA,EAEJ,EC3CWC,GAAuBlU,EAAAA,YAAiB,SAAC3B,EAAO4D,GACzD,IACE+R,EACEH,GAAWxV,GADb2V,QAKF,OAHAzQ,EAAAA,EAAAA,qBAAoBtB,GAAK,kBAAMR,EAAAA,EAAAA,GAAS,CAAC,EAAGpD,EAAO,CACjD2V,QAAAA,GACA,IACK,IACT,G","sources":["../../node_modules/@amap/amap-jsapi-loader/dist/index.js","../../packages/api-loader/esm/index.js","../../packages/utils/esm/usePortal.js","../../packages/utils/esm/index.js","../../packages/auto-complete/esm/useAutoComplete.js","../../packages/auto-complete/esm/index.js","../../packages/map/esm/context.js","../../packages/map/esm/useMap.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js","../../packages/map/esm/index.js","../../packages/bezier-curve/esm/useBezierCurve.js","../../packages/bezier-curve/esm/index.js","../../packages/circle/esm/useCircle.js","../../packages/circle/esm/index.js","../../packages/circle-marker/esm/useCircleMarker.js","../../packages/circle-marker/esm/index.js","../../packages/context-menu/esm/useContextMenu.js","../../packages/context-menu/esm/Item.js","../../packages/context-menu/esm/index.js","../../packages/control-bar-control/esm/useControlBarControl.js","../../packages/control-bar-control/esm/index.js","../../packages/ellipse/esm/useEllipse.js","../../packages/ellipse/esm/index.js","../../packages/geolocation/esm/useGeolocation.js","../../packages/geolocation/esm/index.js","../../packages/hawk-eye-control/esm/useHawkEyeControl.js","../../packages/hawk-eye-control/esm/index.js","../../packages/info-window/esm/useInfoWindow.js","../../packages/info-window/esm/index.js","../../packages/map-type-control/esm/useMapTypeControl.js","../../packages/map-type-control/esm/index.js","../../packages/tile-layer/esm/useTileLayer.js","../../packages/tile-layer/esm/index.js","../../packages/marker/esm/useMarker.js","../../packages/marker/esm/index.js","../../packages/label-marker/esm/useLabelMarker.js","../../packages/label-marker/esm/index.js","../../packages/mass-marks/esm/useMassMarks.js","../../packages/mass-marks/esm/index.js","../../packages/polygon/esm/usePolygon.js","../../packages/polygon/esm/index.js","../../packages/polygon-editor/esm/index.js","../../packages/poly-editor/esm/index.js","../../packages/polyline/esm/usePolyline.js","../../packages/polyline/esm/index.js","../../packages/polyline-editor/esm/index.js","../../packages/mouse-tool/esm/index.js","../../packages/rectangle/esm/useRectangle.js","../../packages/rectangle/esm/index.js","../../packages/require-script/esm/index.js","../../packages/scale-control/esm/useScaleControl.js","../../packages/scale-control/esm/index.js","../../packages/text/esm/useText.js","../../packages/text/esm/index.js","../../packages/tool-bar-control/esm/useToolBarControl.js","../../packages/tool-bar-control/esm/index.js","../../packages/weather/esm/useWeather.js","../../packages/weather/esm/index.js"],"sourcesContent":["'use strict';(function(m,p){\"object\"===typeof exports&&\"undefined\"!==typeof module?module.exports=p():\"function\"===typeof define&&define.amd?define(p):(m=m||self,m.AMapLoader=p())})(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\n\nimport { Fragment, useEffect, useState } from 'react';\nimport { load } from '@amap/amap-jsapi-loader';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * APILoader 用于加载百度地图依赖\n */\nexport var APILoader = props => {\n var {\n children\n } = props,\n config = _objectWithoutPropertiesLoose(props, _excluded);\n var [loaded, setLoaded] = useState(false);\n var [error, setError] = useState();\n useEffect(() => {\n var aKey = config.akey || config.akay || '';\n var plugins = config.plugins || (config.plugin ? config.plugin.split(',') : []);\n load({\n key: aKey,\n plugins,\n version: config.version || '2.0',\n AMapUI: config.AMapUI,\n Loca: config.Loca\n }).then(() => {\n setError(undefined);\n setLoaded(true);\n }).catch(err => {\n setError(err);\n });\n }, [config.akey, config.akay]);\n if (error) {\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n color: 'red'\n },\n children: error.message\n });\n } else if (loaded) {\n return /*#__PURE__*/_jsx(Fragment, {\n children: children\n });\n }\n return null;\n};","import React, { useState, useEffect } from 'react';\nimport { createPortal, unmountComponentAtNode } from 'react-dom';\nexport var usePortal = () => {\n var [container] = React.useState(() => {\n var el = document.createElement('div');\n return el;\n });\n var [portal, setPortal] = useState({\n render: () => null,\n remove: () => null\n });\n var ReactCreatePortal = React.useCallback(elmm => {\n var Portal = _ref => {\n var {\n children\n } = _ref;\n if (!children) return null;\n return /*#__PURE__*/createPortal(children, elmm);\n };\n var remove = elm => {\n elm && unmountComponentAtNode(elm);\n };\n return {\n render: Portal,\n remove\n };\n }, []);\n useEffect(() => {\n if (container) portal.remove();\n var newPortal = ReactCreatePortal(container);\n setPortal(newPortal);\n return () => {\n newPortal.remove(container);\n };\n }, [container]);\n return {\n Portal: portal.render,\n container\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\n/// \nimport { useEffect, useState, useRef } from 'react';\nexport * from './usePortal';\n\n/**\n * 对实例有 setStatus 更改状态的处理\n * @param instance\n * @param props\n * @param propsName\n */\nexport function useSetStatus(instance, props, propsName) {\n if (props === void 0) {\n props = {};\n }\n if (propsName === void 0) {\n propsName = [];\n }\n propsName.forEach(name => {\n var eName = name;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n var [state, setState] = useState(props[eName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[eName] !== undefined) {\n if (props[eName] !== state) {\n // map.setStatus({\n // dragEnable: true,\n // keyboardEnable: true,\n // doubleClickZoom: true,\n // zoomEnable: true,\n // rotateEnable: true\n // });\n var status = instance.getStatus();\n instance.setStatus(_extends({}, status, {\n [eName]: props[eName]\n }));\n setState(props[eName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eName]]);\n });\n}\n\n/**\n * 针对 Overlay 类型的组件,有公共的是否显示 对象处理\n * 通过参数 `visiable` 来控制执行 `show()` or `hide()`\n */\nexport function useVisiable(instance, visiable) {\n var [state, setState] = useState(visiable);\n useEffect(() => {\n if (instance && visiable !== undefined) {\n if (visiable) {\n instance.show && instance.show();\n } else {\n instance.hide && instance.hide();\n }\n if (visiable !== state) {\n setState(visiable);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, visiable]);\n}\n\n/**\n * 获取上一轮的 props 或 state\n * How to get the previous props or state?\n * https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state\n * @example\n * ```js\n * function Counter() {\n * const [count, setCount] = useState(0);\n * const prevCount = usePrevious(count);\n * return

Now: {count}, before: {prevCount}

;\n * }\n * ```\n */\nexport function usePrevious(value) {\n var ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n/**\n * 绑定事件\n * @param instance 实例对象\n * @param props 传递进来的 props\n * @param eventName 事件的名字,如,我们使用 `onClick` 事件,最终被转换成,`click` 绑定到实例中,`onDblClick` => `dblclick`\n *\n * @example\n * ```js\n * useEventProperties(marker!, props, [\n * 'onMouseMove', 'onZoomChange', 'onMapMove', 'onMouseWheel', 'onZoomStart'\n * ]);\n * ```\n */\nexport function useEventProperties(instance, props, eventName, type) {\n if (props === void 0) {\n props = {};\n }\n if (eventName === void 0) {\n eventName = [];\n }\n eventName.forEach(name => {\n var eventName = name;\n var eventHandle = props[eventName];\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (!instance) return;\n var eName = name.toLocaleLowerCase().replace(/^on/, '');\n if (eventHandle && eName) {\n instance.on(eName, eventHandle);\n }\n return () => {\n if (eName && eventHandle) {\n instance.off(eName, eventHandle);\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eventName]]);\n });\n}\n\n/**\n * 属性受控\n * @param instance 实例对象\n * @param props 属性值\n * @param propsName 多个属性设置的名称\n * @example\n * ```ts\n * useSettingProperties(polyline!, props, [\n * 'Path'\n * ]);\n * ```\n */\nexport function useSettingProperties(instance, props, propsName) {\n if (instance === void 0) {\n instance = {};\n }\n if (props === void 0) {\n props = {};\n }\n if (propsName === void 0) {\n propsName = [];\n }\n propsName.forEach(name => {\n var eName = \"set\" + name;\n var vName = \"\" + name.charAt(0).toLowerCase() + name.slice(1);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n var [state, setState] = useState(props[vName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[vName] !== undefined) {\n if (props[vName] !== state && instance[eName] && typeof instance[eName] === 'function') {\n instance[eName](props[vName]);\n setState(props[vName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[vName]]);\n });\n}","import { useState, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nexport var useAutoComplete = function useAutoComplete(props) {\n if (props === void 0) {\n props = {};\n }\n var [autoComplete, setAutoComplete] = useState();\n useEffect(() => {\n if (AMap && !autoComplete) {\n var instance;\n if (AMap.v) {\n AMap.plugin(['AMap.Autocomplete'], () => {\n instance = new AMap.Autocomplete(props);\n setAutoComplete(instance);\n });\n } else {\n AMap.plugin(['AMap.AutoComplete'], () => {\n instance = new AMap.AutoComplete(props);\n setAutoComplete(instance);\n });\n }\n return () => {\n if (instance) {\n setAutoComplete(undefined);\n }\n };\n }\n }, []);\n useSettingProperties(autoComplete, props, ['Type', 'City', 'CityLimit']);\n useEventProperties(autoComplete, props, ['onChoose', 'onSelect']);\n return {\n autoComplete,\n setAutoComplete\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useAutoComplete } from './useAutoComplete';\nexport * from './useAutoComplete';\nexport var AutoComplete = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n autoComplete\n } = useAutoComplete(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n autoComplete\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport React from 'react';\nimport { useContext } from 'react';\nexport var initialState = {\n map: undefined,\n AMap: undefined,\n container: undefined\n};\nexport var reducer = (state, action) => {\n return _extends({}, state, action);\n};\nexport var Context = /*#__PURE__*/React.createContext({\n state: initialState,\n dispatch: () => null\n});\nexport function useMapContext() {\n var {\n state,\n dispatch\n } = useContext(Context);\n return _extends({}, state, {\n state,\n dispatch\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport { useState, useMemo, useEffect, useContext } from 'react';\nimport { useSetStatus, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { Context } from './context';\n\n/**\n * 此类型是 `` 组件传递给子组件(如 ``)的两个 props\n */\n\nexport var useMap = function useMap(props) {\n if (props === void 0) {\n props = {};\n }\n var other = _extends({}, (_objectDestructuringEmpty(props), props));\n var [map, setMap] = useState();\n var [zoom, setZoom] = useState(props.zoom || 15);\n var [container, setContainer] = useState(props.container);\n var {\n dispatch\n } = useContext(Context);\n useEffect(() => {\n if (container && !map && AMap) {\n container.className = container.className + ' react-amap-wapper';\n var instance = new AMap.Map(container, _extends({\n zoom\n }, other));\n setMap(instance);\n }\n return () => {\n if (map) {\n map.clearInfoWindow();\n map.clearLimitBounds();\n map.clearMap();\n map.destroy();\n setMap(undefined);\n }\n };\n }, [container, map]);\n useEffect(() => {\n if (map && container) {\n dispatch({\n map,\n container,\n AMap\n });\n }\n return () => {\n dispatch({\n map: undefined,\n container: undefined,\n AMap: undefined\n });\n };\n }, [map, container]);\n useMemo(() => {\n if (map && typeof props.zoom === 'number' && zoom !== props.zoom && props.zoom >= 2 && props.zoom <= 20) {\n setZoom(props.zoom);\n map.setZoom(props.zoom);\n }\n }, [zoom, props.zoom]);\n useMemo(() => {\n if (props.center && map) {\n map.setCenter(props.center);\n }\n }, [map, props.center]);\n useSetStatus(map, props, ['dragEnable', 'zoomEnable', 'jogEnable', 'pitchEnable', 'rotateEnable', 'animateEnable', 'keyboardEnable']);\n // setStatus, setZoomAndCenter, setFitView\n // 'Center',\n useSettingProperties(map, props, ['Zoom', 'LabelzIndex', 'Layers', 'City', 'Bounds', 'LimitBounds', 'Lang', 'Rotation', 'DefaultCursor', 'MapStyle', 'Features', 'DefaultLayer', 'Pitch']);\n useEventProperties(map, props, ['onMouseMove', 'onZoomChange', 'onMapMove', 'onMouseWheel', 'onZoomStart', 'onMouseOver', 'onMouseOut', 'onDblClick', 'onClick', 'onZoomEnd', 'onMoveEnd', 'onMouseUp', 'onMouseDown', 'onRightClick', 'onMoveStart', 'onDragStart', 'onDragging', 'onDragEnd', 'onHotspotOut', 'onHotspotOver', 'onTouchStart', 'onComplete', 'onHotspotClick', 'onTouchMove', 'onTouchEnd', 'onResize']);\n return {\n map,\n setMap,\n zoom,\n setZoom,\n container,\n setContainer\n };\n};","export default function _objectDestructuringEmpty(obj) {\n if (obj == null) throw new TypeError(\"Cannot destructure \" + obj);\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nvar _excluded = [\"className\", \"children\"];\n/// \nimport React, { useRef, useEffect, useImperativeHandle, Fragment, Children, cloneElement, isValidElement, forwardRef, useReducer } from 'react';\nimport { useMap } from './useMap';\nimport { Context, reducer, initialState } from './context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport * from './useMap';\nexport * from './context';\nexport var Provider = props => {\n var [state, dispatch] = useReducer(reducer, initialState);\n return /*#__PURE__*/_jsx(Context.Provider, {\n value: _extends({}, state, {\n state,\n dispatch\n }),\n children: props.children\n });\n};\nexport var Map = /*#__PURE__*/forwardRef((_ref, ref) => {\n var {\n className,\n children\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var AMap = window.AMap;\n var [state, dispatch] = useReducer(reducer, initialState);\n var elmRef = useRef(null);\n var {\n setContainer,\n container,\n map\n } = useMap(_extends({\n container: props.container || elmRef.current\n }, props));\n useEffect(() => setContainer(elmRef.current), [elmRef.current]);\n useImperativeHandle(ref, () => _extends({}, props, {\n map,\n AMap,\n container: props.container || elmRef.current\n }), [map]);\n var childs = Children.toArray(children);\n useEffect(() => {\n if (map) {\n dispatch({\n map,\n container: elmRef.current,\n AMap\n });\n }\n }, [map]);\n return /*#__PURE__*/_jsxs(Context.Provider, {\n value: _extends({}, state, {\n state,\n dispatch\n }),\n children: [!props.container && /*#__PURE__*/_jsx(\"div\", {\n ref: elmRef,\n className: className,\n style: _extends({\n fontSize: 1,\n width: '100%',\n height: '100%'\n }, props.style)\n }), AMap && map && typeof children === 'function' && children({\n AMap,\n map,\n container\n }), AMap && map && childs.map((child, key) => {\n if (! /*#__PURE__*/isValidElement(child)) return null;\n if (typeof child === 'string') {\n return /*#__PURE__*/cloneElement( /*#__PURE__*/_jsx(Fragment, {\n children: child\n }), {\n key\n });\n }\n if (child.type && typeof child.type === 'string') {\n return /*#__PURE__*/cloneElement(child, {\n key\n });\n }\n return /*#__PURE__*/cloneElement(child, _extends({}, child.props, {\n AMap,\n map,\n container,\n key\n }));\n })]\n });\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useBezierCurve = function useBezierCurve(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [bezierCurve, setBezierCurve] = useState();\n useEffect(() => {\n if (AMap && map && !bezierCurve) {\n var instance = new AMap.BezierCurve(_extends({}, other));\n map.add(instance);\n setBezierCurve(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setBezierCurve(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(bezierCurve, visiable);\n useSettingProperties(bezierCurve, props, ['Options', 'Path', 'ExtData', 'ExtData']);\n useEventProperties(bezierCurve, props, ['onHide', 'onShow', 'onDblClick', 'onMouseOver', 'onMouseUp', 'onMouseDown', 'onclick', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onRightClick', 'onMouseOut']);\n return {\n bezierCurve,\n setBezierCurve\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useBezierCurve } from './useBezierCurve';\nexport * from './useBezierCurve';\nexport var BezierCurve = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n bezierCurve\n } = useBezierCurve(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n bezierCurve\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useCircle = function useCircle(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [circle, setCircle] = useState();\n useEffect(() => {\n if (AMap && map && !circle) {\n var instance = new AMap.Circle(_extends({}, other));\n map.add(instance);\n setCircle(instance);\n }\n return () => {\n setCircle(circle => {\n if (circle) {\n map && map.remove(circle);\n }\n return undefined;\n });\n };\n }, [map]);\n useVisiable(circle, visiable);\n useSettingProperties(circle, props, ['Center', 'Raius', 'Options', 'ExtData']);\n useEventProperties(circle, props, ['onHide', 'onShow', 'onRightClick', 'onClick', 'onTouchEnd', 'onDblClick', 'onTouchMove', 'onTouchStart', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseDown']);\n return {\n circle,\n setCircle\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useCircle } from './useCircle';\nexport * from './useCircle';\nexport var Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n circle\n } = useCircle(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n circle\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useCircleMarker = function useCircleMarker(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [circleMarker, setCircleMarker] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!circleMarker) {\n var instance = new AMap.CircleMarker(_extends({}, other));\n map.add(instance);\n setCircleMarker(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setCircleMarker(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(circleMarker, visiable);\n useSettingProperties(circleMarker, props, ['Center', 'Raius', 'zIndex', 'Bubble', 'Cursor', 'StrokeColor', 'StrokeOpacity', 'StrokeWeight', 'FillColor', 'FillOpacity', 'Draggable', 'ExtData']);\n useEventProperties(circleMarker, props, ['onHide', 'onShow', 'onMouseover', 'onTouchend', 'onClick', 'onTouchmove', 'onRightclick', 'onMouseup', 'onMouseout', 'onTouchstart', 'onMousedown', 'onDblclick']);\n return {\n circleMarker,\n setCircleMarker\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useCircleMarker } from './useCircleMarker';\nexport * from './useCircleMarker';\nexport var CircleMarker = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n circleMarker\n } = useCircleMarker(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n circleMarker\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"position\"];\nimport { useState, useEffect } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useContextMenu = function useContextMenu(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n position\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [contextMenu, setContextMenu] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!contextMenu) {\n var instance = new AMap.ContextMenu(_extends({}, other));\n setContextMenu(instance);\n var rightclick = e => instance.open(map, position || e.lnglat);\n map.on('rightclick', rightclick);\n return () => {\n if (instance) {\n instance.close();\n map.off('rightclick', rightclick);\n setContextMenu(undefined);\n }\n };\n }\n }, [map]);\n useEventProperties(contextMenu, props, ['onOpen', 'onClose']);\n return {\n contextMenu,\n setContextMenu\n };\n};","import { useEffect } from 'react';\nvar noop = function noop() {};\nexport default (function (props) {\n if (props === void 0) {\n props = {};\n }\n var {\n text = '',\n onClick = noop\n } = props;\n useEffect(() => {\n if (props.contextMenu) {\n props.contextMenu.addItem(text, onClick, 1);\n }\n return () => {\n if (props.contextMenu) {\n props.contextMenu.removeItem(text, onClick);\n }\n };\n }, [props.contextMenu, props.text, props.onClick]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle, Fragment } from 'react';\nimport { useContextMenu } from './useContextMenu';\nimport Item from './Item';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useContextMenu';\nexport * from './Item';\nexport var ContextMenu = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n contextMenu\n } = useContextMenu(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n contextMenu\n }));\n var childs = React.Children.toArray(props.children);\n return /*#__PURE__*/_jsx(Fragment, {\n children: AMap && contextMenu && childs.map((child, key) => {\n if (! /*#__PURE__*/React.isValidElement(child)) return null;\n return /*#__PURE__*/React.cloneElement(child, _extends({}, child.props, {\n AMap,\n map: props.map,\n contextMenu,\n key\n }));\n })\n });\n});\nContextMenu.Item = Item;","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useControlBarControl(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n position,\n visiable,\n offset\n } = props;\n var [controlBarControl, setControlBarControl] = useState();\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !controlBarControl) {\n var instance;\n map.plugin(['AMap.ControlBar', 'AMap.HawkEye'], () => {\n instance = new AMap.ControlBar({\n offset: offset,\n position\n });\n map.addControl(instance);\n setControlBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(controlBarControl, visiable);\n return {\n controlBarControl,\n setControlBarControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useControlBarControl } from './useControlBarControl';\nexport * from './useControlBarControl';\nexport var ControlBarControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n controlBarControl\n } = useControlBarControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n controlBarControl\n }), [controlBarControl]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useEllipse = function useEllipse(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [ellipse, setEllipse] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!ellipse) {\n var instance = new AMap.Ellipse(_extends({}, other));\n map.add(instance);\n setEllipse(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setEllipse(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(ellipse, visiable);\n useSettingProperties(ellipse, props, ['Center', 'Radius', 'Options', 'ExtData']);\n useEventProperties(ellipse, props, ['onHide', 'onShow', 'onClick', 'onDblClick', 'onRightClick', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseDown', 'onTouchEnd', 'onTouchMove', 'onTouchStart']);\n return {\n ellipse,\n setEllipse\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useEllipse } from './useEllipse';\nexport * from './useEllipse';\nexport var Ellipse = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n ellipse\n } = useEllipse(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n ellipse\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"type\", \"onComplete\", \"onError\"];\nimport { useState, useMemo, useEffect } from 'react';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useGeolocation = function useGeolocation(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n type = 'position',\n onComplete,\n onError\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var [geolocation, setGeolocation] = useState();\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (AMap && !geolocation) {\n var instance;\n AMap.plugin(['AMap.Geolocation'], () => {\n instance = new AMap.Geolocation(_extends({}, other));\n setGeolocation(instance);\n });\n return () => {\n if (instance) {\n setGeolocation(undefined);\n }\n };\n }\n }, [AMap]);\n function callback(status, result) {\n if (status === 'complete' && onComplete) {\n onComplete(result);\n } else if (onError) {\n onError(result);\n }\n }\n useMemo(() => {\n if (!/^(position|cityInfo)$/.test(type)) return;\n var funName = type === 'position' ? 'getCurrentPosition' : 'getCityInfo';\n if (geolocation && map) {\n geolocation[funName](callback);\n map.addControl(geolocation);\n } else if (geolocation) {\n geolocation[funName](callback);\n }\n }, [geolocation]);\n return {\n geolocation,\n setGeolocation\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useGeolocation } from './useGeolocation';\nexport * from './useGeolocation';\nexport var Geolocation = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n geolocation\n } = useGeolocation(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n geolocation\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"offset\", \"visiable\"];\nimport { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useHawkEyeControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [hawkEyeControl, setHawkEyeControl] = useState();\n var {\n offset,\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !hawkEyeControl) {\n var instance;\n map.plugin(['AMap.HawkEye'], () => {\n instance = new AMap.HawkEye(_extends({\n offset: offset\n }, other));\n map.addControl(instance);\n setHawkEyeControl(instance);\n });\n return () => {\n if (instance && map) {\n map && map.removeControl(instance);\n setHawkEyeControl(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(hawkEyeControl, visiable);\n return {\n hawkEyeControl,\n setHawkEyeControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useHawkEyeControl } from './useHawkEyeControl';\nexport * from './useHawkEyeControl';\nexport var HawkEyeControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n hawkEyeControl\n } = useHawkEyeControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n hawkEyeControl\n }), [hawkEyeControl]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"position\"];\nimport { useState, useMemo, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties, usePortal } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useInfoWindow = function useInfoWindow(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable,\n position\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [isOpen, setIsOpen] = useState(visiable);\n var [infoWindow, setInfoWindow] = useState();\n var {\n container,\n Portal\n } = usePortal();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!infoWindow) {\n var positionCenter = map.getCenter();\n if (props.children) {\n other.content = container;\n }\n var instance = new AMap.InfoWindow(_extends({}, other, {\n position: position || positionCenter\n }));\n setInfoWindow(instance);\n if (isOpen) {\n instance.open(map, position || positionCenter);\n }\n return () => {\n if (instance) {\n map && map.remove(instance);\n setInfoWindow(undefined);\n }\n };\n }\n }, [map]);\n useEffect(() => {\n if (infoWindow) {\n infoWindow.setContent(props.children ? container : other.content || '');\n }\n }, [props.children, container, other.content, infoWindow]);\n useMemo(() => {\n if (isOpen !== visiable && infoWindow && map) {\n setIsOpen(visiable);\n if (visiable) {\n var positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n } else {\n infoWindow.close();\n }\n }\n }, [visiable, infoWindow]);\n useEffect(() => {\n if (!map || !infoWindow || !visiable) return;\n var positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n }, [position]);\n useSettingProperties(infoWindow, props, ['Content', 'Anchor', 'Size']);\n useEventProperties(infoWindow, props, ['onOpen', 'onClose', 'onChange']);\n return {\n isOpen,\n setIsOpen,\n infoWindow,\n setInfoWindow,\n InfoWindowPortal: Portal\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useInfoWindow } from './useInfoWindow';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useInfoWindow';\nexport var InfoWindow = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n infoWindow,\n InfoWindowPortal\n } = useInfoWindow(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n infoWindow\n }));\n return /*#__PURE__*/_jsx(InfoWindowPortal, {\n children: props.children\n });\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"defaultType\"];\nimport { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useMapTypeControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [mapTypeControl, setMapTypeControl] = useState();\n var {\n visiable,\n defaultType = 0\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !mapTypeControl) {\n var instance;\n map.plugin(['AMap.MapType'], () => {\n instance = new AMap.MapType(_extends({\n defaultType\n }, other));\n map.addControl(instance);\n setMapTypeControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(mapTypeControl, visiable);\n return {\n mapTypeControl,\n setMapTypeControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useMapTypeControl } from './useMapTypeControl';\nexport * from './useMapTypeControl';\nexport var MapTypeControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n mapTypeControl\n } = useMapTypeControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n mapTypeControl\n }), [mapTypeControl]);\n return null;\n});","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { TileLayerType } from './index';\nexport function useTileLayer(props) {\n if (props === void 0) {\n props = {};\n }\n var [tileLayer, setTileLayer] = useState();\n var {\n visiable,\n type,\n options\n } = props;\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map) {\n var instance = null;\n if (type) {\n switch (type) {\n case TileLayerType.ROADNET:\n instance = new AMap.TileLayer.RoadNet({});\n break;\n case TileLayerType.SATELLITE:\n instance = new AMap.TileLayer.Satellite({});\n break;\n case TileLayerType.TRAFFIC:\n instance = new AMap.TileLayer.Traffic({});\n break;\n }\n }\n if (options) {\n instance = new AMap.TileLayer(options);\n }\n if (!!instance) {\n // 暂不使用这个 API,这个不兼容 v1.4.xx\n // map.addLayer(instance);\n map.add(instance);\n props.onAdded && props.onAdded();\n setTileLayer(instance);\n }\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setTileLayer(null);\n props.onRemoved && props.onRemoved();\n }\n };\n }\n }, [map, type, options]);\n useVisiable(tileLayer, visiable);\n return {\n tileLayer,\n setTileLayer\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useTileLayer } from './useTileLayer';\nexport * from './useTileLayer';\nexport var TileLayerType = /*#__PURE__*/function (TileLayerType) {\n TileLayerType[\"SATELLITE\"] = \"satellite\";\n TileLayerType[\"TRAFFIC\"] = \"traffic\";\n TileLayerType[\"ROADNET\"] = \"roadnet\";\n return TileLayerType;\n}({});\nexport var TileLayer = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n tileLayer\n } = useTileLayer(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n tileLayer\n }), [tileLayer]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"children\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, usePortal } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useMarker = function useMarker(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [marker, setMarker] = useState();\n var {\n container,\n Portal\n } = usePortal();\n useEffect(() => {\n if (!marker && map) {\n if (props.children) {\n other.content = container;\n }\n var instance = new AMap.Marker(_extends({}, other));\n map.add(instance);\n setMarker(instance);\n }\n return () => {\n if (marker) {\n // @fix [244] https://github.com/uiwjs/react-amap/issues/244\n // typeof marker.remove === 'function' && marker.remove();\n marker.setMap(null);\n setMarker(undefined);\n }\n };\n }, [map, marker]);\n useVisiable(marker, visiable);\n useSettingProperties(marker, props, ['Path', 'Anchor', 'Offset', 'Animation', 'Clickable', 'Position', 'Angle', 'Label', 'zIndex', 'Icon', 'Draggable', 'Cursor', 'Content', 'Map', 'Title', 'Top', 'Shadow', 'Shape', 'ExtData']);\n useEventProperties(marker, props, ['onClick', 'onDblClick', 'onRightClick', 'onMouseMove', 'onMouseOver', 'onMouseOut', 'onMouseDown', 'onMouseUp', 'onDragStart', 'onDragging', 'onDragEnd', 'onMoving', 'onMoveEnd', 'onMoveAlong', 'onTouchStart', 'onTouchMove', 'onTouchEnd']);\n return {\n marker,\n setMarker,\n MarkerPortal: Portal\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useImperativeHandle, forwardRef } from 'react';\nimport { useMarker } from './useMarker';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useMarker';\nexport var Marker = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n marker,\n MarkerPortal\n } = useMarker(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n marker\n }), [marker]);\n return /*#__PURE__*/_jsx(MarkerPortal, {\n children: props.children\n });\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"children\", \"text\", \"icon\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useLabelMarker = function useLabelMarker(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable,\n text,\n icon\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map,\n AMap\n } = useMapContext();\n var [labelMarker, setLabelMarker] = useState();\n // const { container, Portal } = usePortal();\n\n useEffect(() => {\n if (!labelMarker && map) {\n var _v;\n var initText = text;\n if (!text) {\n initText = {\n // 要展示的文字内容\n content: '',\n // 文字方向,有 icon 时为围绕文字的方向,没有 icon 时,则为相对 position 的位置\n direction: 'right',\n // 在 direction 基础上的偏移量\n offset: [-20, -5],\n // 文字样式\n style: {\n // 字体大小\n fontSize: 12,\n // 字体颜色\n fillColor: '#22886f',\n // 描边颜色\n strokeColor: '#fff',\n // 描边宽度\n strokeWidth: 2\n }\n };\n }\n var initIcon = icon;\n if (!initIcon) {\n initIcon = {\n // 图标类型,现阶段只支持 image 类型\n // 图片 url\n image: 'http://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png',\n // 图片尺寸\n size: [19, 32],\n // 图片相对 position 的锚点,默认为 bottom-center\n anchor: 'center'\n };\n }\n\n // if (props.children) {\n // other.content = container;\n // }\n var instance = new AMap.LabelMarker(_extends({\n style: initIcon,\n icon: initIcon,\n text: initText\n }, other));\n setLabelMarker(instance);\n\n // issue #259 兼容 v1.4.xxx 版本\n if ((AMap == null || (_v = AMap.v) == null ? void 0 : _v.indexOf('1.4')) === 0) {\n var labelMarkersLayer;\n if (map.labelMarkersLayer) {\n labelMarkersLayer = map.labelMarkersLayer;\n } else {\n map.labelMarkersLayer = labelMarkersLayer = new AMap.LabelsLayer({\n zooms: [3, 20],\n zIndex: 101,\n collision: true,\n animation: true\n });\n map.add(labelMarkersLayer);\n }\n labelMarkersLayer.add(instance);\n }\n map.add(instance);\n }\n return () => {\n if (labelMarker) {\n var _v2;\n // issue #259 兼容 v1.4.xxx 版本\n if ((AMap == null || (_v2 = AMap.v) == null ? void 0 : _v2.indexOf('1.4')) === 0) {\n var _labelMarkersLayer;\n map == null || (_labelMarkersLayer = map.labelMarkersLayer) == null ? void 0 : _labelMarkersLayer.remove(labelMarker);\n }\n setLabelMarker(undefined);\n }\n };\n }, [labelMarker, map]);\n useVisiable(labelMarker, visiable);\n useSettingProperties(labelMarker, props, ['Name', 'Position', 'Zooms', 'Opacity', 'zIndex', 'Rank', 'Text', 'Icon', 'ExtData', 'Top']);\n useEventProperties(labelMarker, props, ['onMousedown', 'onMouseup', 'onTouchstart', 'onTouchmove', 'onTouchend', 'onClick', 'onMousemove', 'onMouseover', 'onMouseout']);\n return {\n labelMarker,\n setLabelMarker\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useImperativeHandle, forwardRef } from 'react';\nimport { useLabelMarker } from './useLabelMarker';\nexport var LabelMarker = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n labelMarker\n } = useLabelMarker(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n labelMarker\n }), [labelMarker]);\n return null;\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useMassMarks = function useMassMarks(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var {\n opacity = 1,\n zIndex = 1111,\n style,\n data\n } = other || {};\n var [massMarks, setMassMarks] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!massMarks) {\n var initStyle = style;\n if (!initStyle) {\n // JSAPI 2.0 支持显示设置 zIndex, zIndex 越大约靠前,默认按顺序排列\n initStyle = [{\n url: 'https://webapi.amap.com/images/mass/mass0.png',\n anchor: new AMap.Pixel(6, 6),\n size: new AMap.Size(11, 11),\n zIndex: 3\n }, {\n url: 'https://webapi.amap.com/images/mass/mass1.png',\n anchor: new AMap.Pixel(4, 4),\n size: new AMap.Size(7, 7),\n zIndex: 2\n }, {\n url: 'https://webapi.amap.com/images/mass/mass2.png',\n anchor: new AMap.Pixel(3, 3),\n size: new AMap.Size(5, 5),\n zIndex: 1\n }];\n }\n var instance = new AMap.MassMarks(data || [], {\n opacity,\n zIndex,\n style: initStyle\n });\n // 将海量点实例添加到地图上\n // map.add(instance);\n setMassMarks(instance);\n instance.setMap(map);\n return () => {\n if (instance) {\n instance.clear();\n setMassMarks(undefined);\n }\n };\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [map]);\n useVisiable(massMarks, visiable);\n useSettingProperties(massMarks, props, ['Map', 'Data', 'Style', 'Opacity', 'zIndex', 'Zooms']);\n useEventProperties(massMarks, props, [\n // 'onRightClick',\n // 'onDragStart',\n // 'onDragging',\n // 'onDragEnd',\n // 'onMoving',\n // 'onMoveEnd',\n // 'onMoveAlong',\n 'onClick', 'onDblClick', 'onMouseMove', 'onMouseOut', 'onMouseUp', 'onMouseDown', 'onMouseOver', 'onTouchStart', 'onTouchEnd']);\n return {\n massMarks,\n setMassMarks\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useMassMarks } from './useMassMarks';\nexport * from './useMassMarks';\nexport var MassMarks = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n massMarks\n } = useMassMarks(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n massMarks\n }), [massMarks, props]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var usePolygon = function usePolygon(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [polygon, setPolygon] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!polygon) {\n var instance = new AMap.Polygon(_extends({}, other));\n map.add(instance);\n setPolygon(instance);\n return () => {\n if (instance) {\n try {\n map && map.remove(instance);\n } catch (e) {}\n // if (AMap.v) {\n // map && map.remove(instance);\n // } else {\n // // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n // map && map.removeLayer(instance);\n // }\n }\n\n setPolygon(undefined);\n };\n }\n }, [map]);\n useEffect(() => {\n if (polygon) {\n polygon.setOptions(other);\n }\n }, [polygon, other]);\n useVisiable(polygon, visiable);\n useSettingProperties(polygon, props, ['Path', 'Options', 'Map', 'ExtData', 'Draggable']);\n useEventProperties(polygon, props, ['onClick', 'onDblClick', 'onRightClick', 'onHide', 'onShow', 'onMouseDown', 'onMouseUp', 'onMouseOver', 'onMouseOut', 'onChange', 'onDragStart', 'onDragging', 'onDragEnd', 'onTouchStart', 'onTouchMove', 'onTouchEnd']);\n return {\n polygon,\n setPolygon\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useImperativeHandle, forwardRef, isValidElement, cloneElement } from 'react';\nimport { usePolygon } from './usePolygon';\nexport * from './usePolygon';\nexport var Polygon = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n children\n } = props;\n var {\n polygon\n } = usePolygon(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n polygon\n }), [polygon]);\n if (children && /*#__PURE__*/isValidElement(children) && polygon) {\n var oProps = {\n polygon,\n polyElement: polygon\n };\n return /*#__PURE__*/cloneElement(children, _extends({}, props, oProps));\n }\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var PolygonEditor = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n polygon\n } = props;\n var {\n map\n } = useMapContext();\n var [visiable, setVisiable] = useState(true);\n var [polyEditor, setPolyEditor] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n polyEditor\n }));\n useEffect(() => {\n if (polygon && map && !polyEditor && AMap && AMap.PolygonEditor) {\n var instance = new AMap.PolygonEditor(map, polygon);\n polygon.on('hide', () => setVisiable(false));\n polygon.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polygon]);\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polygon\n });\n } else if (visiable && active) {\n polyEditor.open();\n props.onAdd && props.onAdd({\n target: props.polygon\n });\n } else if (!visiable && active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polygon\n });\n }\n }, [active, visiable]);\n useEventProperties(polyEditor, props, ['onEnd', 'onAddnode', 'onRemovenode', 'onAdjust', 'onMove', 'onAdd']);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var PolyEditor = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n polyElement\n } = props;\n var {\n map\n } = useMapContext();\n var [visiable, setVisiable] = useState(true);\n var [polyEditor, setPolyEditor] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n polyEditor\n }));\n useEffect(() => {\n if (polyElement && map && !polyEditor && AMap && AMap.PolyEditor) {\n var instance = new AMap.PolyEditor(map, polyElement);\n polyElement.on('hide', () => setVisiable(false));\n polyElement.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polyElement]);\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n type: 'end',\n target: props.polyElement\n });\n } else if (visiable && active) {\n polyEditor.open();\n } else if (!visiable && active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n type: 'end',\n target: props.polyElement\n });\n }\n }, [active, visiable]);\n useEventProperties(polyEditor, props, ['onEnd', 'onAddnode', 'onAdjust', 'onRemovenode']);\n return null;\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useEffect, useState } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function usePolyline(props) {\n if (props === void 0) {\n props = {};\n }\n var [polyline, setPolyline] = useState();\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !polyline) {\n var instance = new AMap.Polyline(other);\n map.add(instance);\n setPolyline(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setPolyline(undefined);\n }\n };\n }\n }, [map]);\n useEffect(() => {\n if (polyline) {\n polyline.setOptions(other);\n }\n }, [polyline, other]);\n useVisiable(polyline, visiable);\n useSettingProperties(polyline, props, ['Path', 'Options', 'Map', 'ExtData', 'Draggable']);\n useEventProperties(polyline, props, ['onHide', 'onShow', 'onMouseOut', 'onChange', 'onDragStart', 'onDragging', 'onDragEnd', 'onRightClick', 'onDblClick', 'onMouseDown', 'onClick', 'onMouseOver', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onMouseUp']);\n return {\n polyline,\n setPolyline\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { isValidElement, useImperativeHandle, cloneElement } from 'react';\nimport { usePolyline } from './usePolyline';\nexport * from './usePolyline';\nexport var Polyline = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n children\n } = props;\n var {\n polyline\n } = usePolyline(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n polyline\n }), [polyline]);\n if (children && /*#__PURE__*/isValidElement(children) && polyline) {\n var oProps = {\n polyElement: polyline,\n polyline\n };\n return /*#__PURE__*/cloneElement(children, _extends({}, props, oProps));\n }\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var PolylineEditor = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n polyline\n } = props;\n var {\n map\n } = useMapContext();\n var [visiable, setVisiable] = useState(true);\n var [polyEditor, setPolyEditor] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n polyEditor\n }));\n useEffect(() => {\n if (polyline && map && !polyEditor && AMap && AMap.PolylineEditor) {\n var instance = new AMap.PolylineEditor(map, polyline);\n polyline.on('hide', () => setVisiable(false));\n polyline.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polyline]);\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polyline\n });\n } else if (visiable && active) {\n polyEditor.open();\n props.onAdd && props.onAdd({\n target: props.polyline\n });\n } else if (!visiable && active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polyline\n });\n }\n }, [active, visiable, polyEditor]);\n useEventProperties(polyEditor, props, ['onEnd', 'onAddnode', 'onRemovenode', 'onAdjust', 'onAdd']);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var MouseToolDrawType = /*#__PURE__*/function (MouseToolDrawType) {\n MouseToolDrawType[MouseToolDrawType[\"MARKER\"] = 0] = \"MARKER\";\n MouseToolDrawType[MouseToolDrawType[\"POLYLINE\"] = 1] = \"POLYLINE\";\n MouseToolDrawType[MouseToolDrawType[\"POLYGON\"] = 2] = \"POLYGON\";\n MouseToolDrawType[MouseToolDrawType[\"CIRCLE\"] = 3] = \"CIRCLE\";\n MouseToolDrawType[MouseToolDrawType[\"RECTANGLE\"] = 4] = \"RECTANGLE\";\n MouseToolDrawType[MouseToolDrawType[\"MEASUREAREA\"] = 5] = \"MEASUREAREA\";\n MouseToolDrawType[MouseToolDrawType[\"RULE\"] = 6] = \"RULE\";\n MouseToolDrawType[MouseToolDrawType[\"RECTZOOMIN\"] = 7] = \"RECTZOOMIN\";\n MouseToolDrawType[MouseToolDrawType[\"RECTZOOMOUT\"] = 8] = \"RECTZOOMOUT\";\n return MouseToolDrawType;\n}({});\nexport var MouseTool = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n type,\n drawElementOptions,\n ifClear\n } = props;\n var {\n map\n } = useMapContext();\n var [mouseTool, setMouseTool] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n mouseTool: mouseTool\n }));\n useEffect(() => {\n if (map && !mouseTool && AMap && AMap.MouseTool) {\n var instance = new AMap.MouseTool(map);\n setMouseTool(instance);\n }\n }, [map, Map, AMap.MouseTool]);\n useEffect(() => {\n if (!mouseTool) {\n return;\n }\n if (!active) {\n mouseTool.close(ifClear);\n } else {\n switch (type) {\n case MouseToolDrawType.MARKER:\n mouseTool.marker(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.POLYLINE:\n mouseTool.polyline(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.POLYGON:\n mouseTool.polygon(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.CIRCLE:\n mouseTool.circle(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RECTANGLE:\n mouseTool.rectangle(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.MEASUREAREA:\n mouseTool.measureArea(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RULE:\n mouseTool.rule(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RECTZOOMIN:\n mouseTool.rectZoomIn(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RECTZOOMOUT:\n mouseTool.rectZoomOut(drawElementOptions ? drawElementOptions : {});\n break;\n }\n }\n }, [active, ifClear]);\n useEventProperties(mouseTool, props, ['onDraw']);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useRectangle = function useRectangle(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [rectangle, setRectangle] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!rectangle) {\n var instance = new AMap.Rectangle(_extends({}, other));\n map.add(instance);\n setRectangle(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setRectangle(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(rectangle, visiable);\n useSettingProperties(rectangle, props, ['Bounds', 'Options', 'Map', 'ExtData']);\n useEventProperties(rectangle, props, ['onHide', 'onShow', 'onClick', 'onDblClick', 'onRightClick', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseDown', 'onTouchEnd', 'onTouchMove', 'onTouchStart']);\n return {\n rectangle,\n setRectangle\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useRectangle } from './useRectangle';\nexport * from './useRectangle';\nexport var Rectangle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n rectangle\n } = useRectangle(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n rectangle\n }));\n return null;\n});","var _importedScript = {};\n\n/**\n * load dependency by css tag\n */\nexport function requireCss(src, id) {\n if (id === void 0) {\n id = '_react_amap_css';\n }\n var headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n var dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n var script = document.createElement('link');\n script.type = 'text/css';\n script.rel = 'stylesheet';\n script.id = id;\n script.href = src;\n script.onerror = err => {\n headElement.removeChild(script);\n reject(new URIError(\"The css \" + src + \" is no accessible.\"));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}\n\n/**\n * load dependency by script tag\n */\nexport function requireScript(src, id) {\n if (id === void 0) {\n id = '_react_amap_plugin';\n }\n var headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n var dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n var script = document.createElement('script');\n script.type = 'text/javascript';\n script.id = id;\n script.async = true;\n script.defer = true;\n script.src = src;\n script.onerror = err => {\n headElement.removeChild(script);\n reject(new URIError(\"The Script \" + src + \" is no accessible.\"));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useScaleControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [scaleControl, setScaleControl] = useState();\n var {\n position,\n visiable,\n offset\n } = props;\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !scaleControl) {\n var instance;\n map.plugin(['AMap.Scale'], () => {\n instance = new AMap.Scale({\n offset: offset,\n position\n });\n map.addControl(instance);\n setScaleControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(scaleControl, visiable);\n return {\n scaleControl,\n setScaleControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useScaleControl } from './useScaleControl';\nexport * from './useScaleControl';\nexport var ScaleControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n scaleControl\n } = useScaleControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n scaleControl\n }), [scaleControl]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, usePortal } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useText = function useText(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var [text, setText] = useState();\n var {\n map\n } = useMapContext();\n var {\n container,\n Portal\n } = usePortal();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!text) {\n if (props.children) {\n other.text = container.innerHTML;\n }\n var instance = new AMap.Text(_extends({}, other));\n map.add(instance);\n setText(instance);\n return () => {\n if (instance) {\n instance.remove();\n setText(undefined);\n }\n };\n }\n }, [map]);\n useEffect(() => {\n if (text) {\n text.setText(props.children ? container.innerHTML : props.text || '');\n }\n }, [props.children, props.text, container, text]);\n useVisiable(text, visiable);\n useSettingProperties(text, props, ['Style', 'Title', 'Clickable', 'Draggable', 'Map', 'Position', 'Offset', 'Angle', 'zIndex', 'Top', 'Cursor', 'ExtData']);\n useEventProperties(text, props, ['onMoving', 'onTouchMove', 'onTouchEnd', 'onMoveaLong', 'onTouchStart', 'onMoveEnd', 'onClick', 'onDblClick', 'onRightClick', 'onMouseMove', 'onMouseOver', 'onMouseOut', 'onMouseDown', 'onMouseUp', 'onDragStart', 'onDragEnd', 'onDragging']);\n return {\n text,\n setText,\n TextPortal: Portal\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useImperativeHandle } from 'react';\nimport { useText } from './useText';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useText';\nexport var Text = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n text,\n TextPortal\n } = useText(_extends({}, props));\n useImperativeHandle(ref, () => _extends({}, props, {\n text\n }));\n if (!props.children) return null;\n return /*#__PURE__*/_jsx(TextPortal, {\n children: props.children\n });\n});","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useToolBarControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [toolBarControl, setToolBarControl] = useState();\n var {\n position,\n visiable,\n offset\n } = props;\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !toolBarControl) {\n var instance;\n map.plugin(['AMap.ToolBar'], () => {\n instance = new AMap.ToolBar({\n offset,\n position\n });\n map.addControl(instance);\n setToolBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(toolBarControl, visiable);\n return {\n toolBarControl,\n setToolBarControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useToolBarControl } from './useToolBarControl';\nexport * from './useToolBarControl';\nexport var ToolBarControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n toolBarControl\n } = useToolBarControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n toolBarControl\n }), [toolBarControl]);\n return null;\n});","import { useState, useMemo, useEffect } from 'react';\nexport var useWeather = function useWeather(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n city = '',\n type = 'live',\n onComplete,\n onError\n } = props;\n var [weather, setWeather] = useState();\n var funName = type === 'live' ? 'getLive' : 'getForecast';\n function getData(instance) {\n if (type && city && /^(live|forecast)$/.test(type)) {\n instance[funName](city, (err, data) => {\n if (err && onError) {\n onError(err);\n } else if (data && onComplete) {\n onComplete(data);\n }\n });\n }\n }\n useEffect(() => {\n if (AMap && !weather) {\n var instance;\n AMap.plugin(['AMap.Weather'], () => {\n instance = new AMap.Weather();\n setWeather(instance);\n });\n return () => {\n if (instance) {\n setWeather(undefined);\n }\n };\n }\n }, []);\n useMemo(() => {\n if (weather && city && type) {\n getData(weather);\n }\n }, [weather, city, type]);\n return {\n weather,\n setWeather\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useWeather } from './useWeather';\nexport * from './useWeather';\nexport var Weather = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n weather\n } = useWeather(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n weather\n }));\n return null;\n});"],"names":["module","exports","m","a","b","AMapUI","push","p","Loca","r","Promise","all","h","c","f","plugins","e","length","d","indexOf","g","failed","notload","loading","version","l","document","body","head","k","createElement","type","src","onerror","onload","loaded","window","loadUI","split","slice","arguments","n","splice","appendChild","AMap","startsWith","key","Error","q","t","load","location","host","___onAPILoaded","then","join","plugin","reset","_excluded","APILoader","props","children","config","_objectWithoutPropertiesLoose","_useState","useState","_useState2","_slicedToArray","setLoaded","_useState3","_useState4","error","setError","useEffect","aKey","akey","akay","undefined","catch","err","_jsx","style","color","message","Fragment","usePortal","_React$useState","React","container","render","remove","portal","setPortal","ReactCreatePortal","elmm","_ref","createPortal","elm","unmountComponentAtNode","newPortal","Portal","useSetStatus","instance","propsName","forEach","name","eName","state","setState","status","getStatus","setStatus","_extends","_defineProperty","useVisiable","visiable","show","hide","usePrevious","value","ref","useRef","current","useEventProperties","eventName","eventHandle","toLocaleLowerCase","replace","on","off","useSettingProperties","vName","charAt","toLowerCase","_useState5","_useState6","useAutoComplete","autoComplete","setAutoComplete","v","Autocomplete","AutoComplete","useImperativeHandle","initialState","map","reducer","action","Context","dispatch","useMapContext","_useContext","useContext","useMap","other","obj","TypeError","_objectDestructuringEmpty","setMap","zoom","setZoom","setContainer","className","Map","clearInfoWindow","clearLimitBounds","clearMap","destroy","useMemo","center","setCenter","Provider","_useReducer","useReducer","_useReducer2","forwardRef","_useReducer3","_useReducer4","elmRef","_useMap","childs","Children","toArray","_jsxs","fontSize","width","height","child","isValidElement","cloneElement","useBezierCurve","bezierCurve","setBezierCurve","BezierCurve","add","removeLayer","useCircle","circle","setCircle","Circle","useCircleMarker","circleMarker","setCircleMarker","CircleMarker","useContextMenu","position","contextMenu","setContextMenu","ContextMenu","rightclick","open","lnglat","close","noop","useControlBarControl","_props","offset","controlBarControl","setControlBarControl","ControlBar","addControl","removeControl","Item","_props$text","text","_props$onClick","onClick","addItem","removeItem","ControlBarControl","useEllipse","ellipse","setEllipse","Ellipse","useGeolocation","_props$type","onComplete","onError","geolocation","setGeolocation","callback","result","Geolocation","test","funName","useHawkEyeControl","hawkEyeControl","setHawkEyeControl","HawkEye","HawkEyeControl","useInfoWindow","isOpen","setIsOpen","infoWindow","setInfoWindow","_usePortal","positionCenter","getCenter","content","InfoWindow","setContent","InfoWindowPortal","_useInfoWindow","useMapTypeControl","mapTypeControl","setMapTypeControl","_props$defaultType","defaultType","MapType","MapTypeControl","useTileLayer","tileLayer","setTileLayer","options","TileLayerType","ROADNET","TileLayer","RoadNet","SATELLITE","Satellite","TRAFFIC","Traffic","onAdded","onRemoved","useMarker","marker","setMarker","Marker","MarkerPortal","_useMarker","LabelMarker","_useLabelMarker","icon","_useMapContext","labelMarker","setLabelMarker","_v","initText","direction","fillColor","strokeColor","strokeWidth","initIcon","image","size","anchor","labelMarkersLayer","LabelsLayer","zooms","zIndex","collision","animation","_v2","_labelMarkersLayer","useLabelMarker","useMassMarks","_ref$opacity","opacity","_ref$zIndex","data","massMarks","setMassMarks","initStyle","url","Pixel","Size","MassMarks","clear","usePolygon","polygon","setPolygon","Polygon","setOptions","oProps","polyElement","PolygonEditor","active","setVisiable","polyEditor","setPolyEditor","onEnd","target","onAdd","PolyEditor","usePolyline","polyline","setPolyline","Polyline","PolylineEditor","MouseToolDrawType","MouseTool","drawElementOptions","ifClear","mouseTool","setMouseTool","MARKER","POLYLINE","POLYGON","CIRCLE","RECTANGLE","rectangle","MEASUREAREA","measureArea","RULE","rule","RECTZOOMIN","rectZoomIn","RECTZOOMOUT","rectZoomOut","useRectangle","setRectangle","Rectangle","_importedScript","requireCss","id","headElement","getElementsByTagName","dom","getElementById","resolve","reject","script","rel","href","removeChild","URIError","requireScript","async","defer","useScaleControl","scaleControl","setScaleControl","Scale","ScaleControl","useText","setText","innerHTML","Text","TextPortal","_useText","useToolBarControl","toolBarControl","setToolBarControl","ToolBar","ToolBarControl","useWeather","_props$city","city","weather","setWeather","Weather"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5775.b3985d06.chunk.js b/static/js/5775.b3985d06.chunk.js new file mode 100644 index 000000000..2d3bf4b4c --- /dev/null +++ b/static/js/5775.b3985d06.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[5775],{6017:function(e){e.exports=function(){function e(e){var t=[];return e.AMapUI&&t.push(n(e.AMapUI)),e.Loca&&t.push(o(e.Loca)),Promise.all(t)}function n(e){return new Promise((function(n,o){var r=[];if(e.plugins)for(var c=0;c=2&&e.zoom<=20&&(p(e.zoom),i.setZoom(e.zoom))}),[f,e.zoom]),(0,a.useMemo)((function(){e.center&&i&&i.setCenter(e.center)}),[i,e.center]),v(i,e,["dragEnable","zoomEnable","jogEnable","pitchEnable","rotateEnable","animateEnable","keyboardEnable"]),h(i,e,["Zoom","LabelzIndex","Layers","City","Bounds","LimitBounds","Lang","Rotation","DefaultCursor","MapStyle","Features","DefaultLayer","Pitch"]),A(i,e,["onMouseMove","onZoomChange","onMapMove","onMouseWheel","onZoomStart","onMouseOver","onMouseOut","onDblClick","onClick","onZoomEnd","onMoveEnd","onMouseUp","onMouseDown","onRightClick","onMoveStart","onDragStart","onDragging","onDragEnd","onHotspotOut","onHotspotOver","onTouchStart","onComplete","onHotspotClick","onTouchMove","onTouchEnd","onResize"]),{map:i,setMap:u,zoom:f,setZoom:p,container:m,setContainer:E}},I=["className","children"],b=function(e){var n=(0,a.useReducer)(C,w),o=(0,t.Z)(n,2),r=o[0],i=o[1];return(0,u.jsx)(y.Provider,{value:(0,s.Z)({},r,{state:r,dispatch:i}),children:e.children})},T=(0,a.forwardRef)((function(e,n){var o=e.className,i=e.children,c=(0,r.Z)(e,I),l=window.AMap,f=(0,a.useReducer)(C,w),p=(0,t.Z)(f,2),d=p[0],v=p[1],M=(0,a.useRef)(null),m=Z((0,s.Z)({container:c.container||M.current},c)),A=m.setContainer,h=m.container,E=m.map;(0,a.useEffect)((function(){return A(M.current)}),[M.current]),(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},c,{map:E,AMap:l,container:c.container||M.current})}),[E]);var g=a.Children.toArray(i);return(0,a.useEffect)((function(){E&&v({map:E,container:M.current,AMap:l})}),[E]),(0,u.jsxs)(y.Provider,{value:(0,s.Z)({},d,{state:d,dispatch:v}),children:[!c.container&&(0,u.jsx)("div",{ref:M,className:o,style:(0,s.Z)({fontSize:1,width:"100%",height:"100%"},c.style)}),l&&E&&"function"===typeof i&&i({AMap:l,map:E,container:h}),l&&E&&g.map((function(e,n){return(0,a.isValidElement)(e)?"string"===typeof e?(0,a.cloneElement)((0,u.jsx)(a.Fragment,{children:e}),{key:n}):e.type&&"string"===typeof e.type?(0,a.cloneElement)(e,{key:n}):(0,a.cloneElement)(e,(0,s.Z)({},e.props,{AMap:l,map:E,container:h,key:n})):null}))]})})),S=["visiable"],L=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,S),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.BezierCurve((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Options","Path","ExtData","ExtData"]),A(l,e,["onHide","onShow","onDblClick","onMouseOver","onMouseUp","onMouseDown","onclick","onTouchEnd","onTouchMove","onTouchStart","onRightClick","onMouseOut"]),{bezierCurve:l,setBezierCurve:f}},R=a.forwardRef((function(e,n){var o=L(e).bezierCurve;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{bezierCurve:o})})),null})),x=["visiable"],O=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,x),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Circle((0,s.Z)({},o));i.add(e),f(e)}return function(){f((function(e){e&&i&&i.remove(e)}))}}),[i]),M(l,n),h(l,e,["Center","Raius","Options","ExtData"]),A(l,e,["onHide","onShow","onRightClick","onClick","onTouchEnd","onDblClick","onTouchMove","onTouchStart","onMouseOut","onMouseOver","onMouseUp","onMouseDown"]),{circle:l,setCircle:f}},P=a.forwardRef((function(e,n){var o=O(e).circle;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{circle:o})})),null})),U=["visiable"],D=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,U),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.CircleMarker((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Center","Raius","zIndex","Bubble","Cursor","StrokeColor","StrokeOpacity","StrokeWeight","FillColor","FillOpacity","Draggable","ExtData"]),A(l,e,["onHide","onShow","onMouseover","onTouchend","onClick","onTouchmove","onRightclick","onMouseup","onMouseout","onTouchstart","onMousedown","onDblclick"]),{circleMarker:l,setCircleMarker:f}},H=a.forwardRef((function(e,n){var o=D(e).circleMarker;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{circleMarker:o})})),null})),z=["position"],B=function(e){void 0===e&&(e={});var n=e.position,o=(0,r.Z)(e,z),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.ContextMenu((0,s.Z)({},o));f(e);var t=function(o){return e.open(i,n||o.lnglat)};return i.on("rightclick",t),function(){e&&(e.close(),i.off("rightclick",t),f(void 0))}}}),[i]),A(l,e,["onOpen","onClose"]),{contextMenu:l,setContextMenu:f}},N=function(){},j=a.forwardRef((function(e,n){var o=B(e).contextMenu;(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{contextMenu:o})}));var t=a.Children.toArray(e.children);return(0,u.jsx)(a.Fragment,{children:AMap&&o&&t.map((function(n,t){return a.isValidElement(n)?a.cloneElement(n,(0,s.Z)({},n.props,{AMap:AMap,map:e.map,contextMenu:o,key:t})):null}))})}));function W(e){void 0===e&&(e={});var n=e,o=n.position,r=n.visiable,i=n.offset,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],s=c[1],f=k().map;return(0,a.useEffect)((function(){var e;if(f&&!l)return f.plugin(["AMap.ControlBar","AMap.HawkEye"],(function(){e=new AMap.ControlBar({offset:i,position:o}),f.addControl(e),s(e)})),function(){e&&f.removeControl(e)}}),[f]),M(l,r),{controlBarControl:l,setControlBarControl:s}}j.Item=function(e){void 0===e&&(e={});var n=e,o=n.text,t=void 0===o?"":o,r=n.onClick,i=void 0===r?N:r;return(0,a.useEffect)((function(){return e.contextMenu&&e.contextMenu.addItem(t,i,1),function(){e.contextMenu&&e.contextMenu.removeItem(t,i)}}),[e.contextMenu,e.text,e.onClick]),null};var _=a.forwardRef((function(e,n){var o=W(e).controlBarControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{controlBarControl:o})}),[o]),null})),F=["visiable"],G=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,F),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Ellipse((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Center","Radius","Options","ExtData"]),A(l,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{ellipse:l,setEllipse:f}},Y=a.forwardRef((function(e,n){var o=G(e).ellipse;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{ellipse:o})})),null})),V=["type","onComplete","onError"],J=function(e){void 0===e&&(e={});var n=e,o=n.type,i=void 0===o?"position":o,u=n.onComplete,c=n.onError,l=(0,r.Z)(e,V),f=(0,a.useState)(),p=(0,t.Z)(f,2),d=p[0],v=p[1],M=k().map;function m(e,n){"complete"===e&&u?u(n):c&&c(n)}return(0,a.useEffect)((function(){var e;if(AMap&&!d)return AMap.plugin(["AMap.Geolocation"],(function(){e=new AMap.Geolocation((0,s.Z)({},l)),v(e)})),function(){e&&v(void 0)}}),[AMap]),(0,a.useMemo)((function(){if(/^(position|cityInfo)$/.test(i)){var e="position"===i?"getCurrentPosition":"getCityInfo";d&&M?(d[e](m),M.addControl(d)):d&&d[e](m)}}),[d]),{geolocation:d,setGeolocation:v}},K=a.forwardRef((function(e,n){var o=J(e).geolocation;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{geolocation:o})})),null})),q=["offset","visiable"];function $(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),i=o[0],u=o[1],c=e,l=c.offset,f=c.visiable,p=(0,r.Z)(e,q),d=k().map;return(0,a.useEffect)((function(){var e;if(d&&!i)return d.plugin(["AMap.HawkEye"],(function(){e=new AMap.HawkEye((0,s.Z)({offset:l},p)),d.addControl(e),u(e)})),function(){e&&d&&(d&&d.removeControl(e),u(void 0))}}),[d]),M(i,f),{hawkEyeControl:i,setHawkEyeControl:u}}var Q=a.forwardRef((function(e,n){var o=$(e).hawkEyeControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{hawkEyeControl:o})}),[o]),null})),X=["visiable","position"],ee=function(e){void 0===e&&(e={});var n=e,o=n.visiable,i=n.position,u=(0,r.Z)(e,X),c=k().map,l=(0,a.useState)(o),f=(0,t.Z)(l,2),p=f[0],v=f[1],M=(0,a.useState)(),m=(0,t.Z)(M,2),E=m[0],g=m[1],w=d(),C=w.container,y=w.Portal;return(0,a.useEffect)((function(){if(AMap&&c&&!E){var n=c.getCenter();e.children&&(u.content=C);var o=new AMap.InfoWindow((0,s.Z)({},u,{position:i||n}));return g(o),p&&o.open(c,i||n),function(){o&&(c&&c.remove(o),g(void 0))}}}),[c]),(0,a.useEffect)((function(){E&&E.setContent(e.children?C:u.content||"")}),[e.children,C,u.content,E]),(0,a.useMemo)((function(){if(p!==o&&E&&c)if(v(o),o){var e=c.getCenter();E.open(c,i||e)}else E.close()}),[o,E]),(0,a.useEffect)((function(){if(c&&E&&o){var e=c.getCenter();E.open(c,i||e)}}),[i]),h(E,e,["Content","Anchor","Size"]),A(E,e,["onOpen","onClose","onChange"]),{isOpen:p,setIsOpen:v,infoWindow:E,setInfoWindow:g,InfoWindowPortal:y}},ne=a.forwardRef((function(e,n){var o=ee(e),t=o.infoWindow,r=o.InfoWindowPortal;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{infoWindow:t})})),(0,u.jsx)(r,{children:e.children})})),oe=["visiable","defaultType"];function te(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),i=o[0],u=o[1],c=e,l=c.visiable,f=c.defaultType,p=void 0===f?0:f,d=(0,r.Z)(e,oe),v=k().map;return(0,a.useEffect)((function(){var e;if(v&&!i)return v.plugin(["AMap.MapType"],(function(){e=new AMap.MapType((0,s.Z)({defaultType:p},d)),v.addControl(e),u(e)})),function(){e&&v.removeControl(e)}}),[v]),M(i,l),{mapTypeControl:i,setMapTypeControl:u}}var re=a.forwardRef((function(e,n){var o=te(e).mapTypeControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{mapTypeControl:o})}),[o]),null}));function ae(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),r=o[0],i=o[1],u=e,c=u.visiable,l=u.type,s=u.options,f=k().map;return(0,a.useEffect)((function(){if(f){var n=null;if(l)switch(l){case ie.ROADNET:n=new AMap.TileLayer.RoadNet({});break;case ie.SATELLITE:n=new AMap.TileLayer.Satellite({});break;case ie.TRAFFIC:n=new AMap.TileLayer.Traffic({})}return s&&(n=new AMap.TileLayer(s)),n&&(f.add(n),e.onAdded&&e.onAdded(),i(n)),function(){n&&(AMap.v?f&&f.remove(n):f&&f.removeLayer(n),i(null),e.onRemoved&&e.onRemoved())}}}),[f,l,s]),M(r,c),{tileLayer:r,setTileLayer:i}}var ie=function(e){return e.SATELLITE="satellite",e.TRAFFIC="traffic",e.ROADNET="roadnet",e}({}),ue=a.forwardRef((function(e,n){var o=ae(e).tileLayer;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{tileLayer:o})}),[o]),null})),ce=["visiable","children"],le=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,ce),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=d(),v=p.container,m=p.Portal;return(0,a.useEffect)((function(){if(!l&&i){e.children&&(o.content=v);var n=new AMap.Marker((0,s.Z)({},o));i.add(n),f(n)}return function(){l&&(l.setMap(null),f(void 0))}}),[i,l]),M(l,n),h(l,e,["Path","Anchor","Offset","Animation","Clickable","Position","Angle","Label","zIndex","Icon","Draggable","Cursor","Content","Map","Title","Top","Shadow","Shape","ExtData"]),A(l,e,["onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragging","onDragEnd","onMoving","onMoveEnd","onMoveAlong","onTouchStart","onTouchMove","onTouchEnd"]),{marker:l,setMarker:f,MarkerPortal:m}},se=(0,a.forwardRef)((function(e,n){var o=le(e),t=o.marker,r=o.MarkerPortal;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{marker:t})}),[t]),(0,u.jsx)(r,{children:e.children})})),fe=["visiable","children","text","icon"],pe=(0,a.forwardRef)((function(e,n){var o=function(e){void 0===e&&(e={});var n=e,o=n.visiable,i=n.text,u=n.icon,c=(0,r.Z)(e,fe),l=k(),f=l.map,p=l.AMap,d=(0,a.useState)(),v=(0,t.Z)(d,2),m=v[0],E=v[1];return(0,a.useEffect)((function(){if(!m&&f){var e,n=i;i||(n={content:"",direction:"right",offset:[-20,-5],style:{fontSize:12,fillColor:"#22886f",strokeColor:"#fff",strokeWidth:2}});var o=u;o||(o={image:"http://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png",size:[19,32],anchor:"center"});var t,r=new p.LabelMarker((0,s.Z)({style:o,icon:o,text:n},c));E(r),0===(null==p||null==(e=p.v)?void 0:e.indexOf("1.4"))&&(f.labelMarkersLayer?t=f.labelMarkersLayer:(f.labelMarkersLayer=t=new p.LabelsLayer({zooms:[3,20],zIndex:101,collision:!0,animation:!0}),f.add(t)),t.add(r)),f.add(r)}return function(){var e,n;m&&(0===(null==p||null==(e=p.v)?void 0:e.indexOf("1.4"))&&(null==f||null==(n=f.labelMarkersLayer)||n.remove(m)),E(void 0))}}),[m,f]),M(m,o),h(m,e,["Name","Position","Zooms","Opacity","zIndex","Rank","Text","Icon","ExtData","Top"]),A(m,e,["onMousedown","onMouseup","onTouchstart","onTouchmove","onTouchend","onClick","onMousemove","onMouseover","onMouseout"]),{labelMarker:m,setLabelMarker:E}}(e),i=o.labelMarker;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{labelMarker:i})}),[i]),null})),de=["visiable"],ve=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,de),i=k().map,u=o||{},c=u.opacity,l=void 0===c?1:c,s=u.zIndex,f=void 0===s?1111:s,p=u.style,d=u.data,v=(0,a.useState)(),m=(0,t.Z)(v,2),E=m[0],g=m[1];return(0,a.useEffect)((function(){if(AMap&&i&&!E){var e=p;e||(e=[{url:"https://webapi.amap.com/images/mass/mass0.png",anchor:new AMap.Pixel(6,6),size:new AMap.Size(11,11),zIndex:3},{url:"https://webapi.amap.com/images/mass/mass1.png",anchor:new AMap.Pixel(4,4),size:new AMap.Size(7,7),zIndex:2},{url:"https://webapi.amap.com/images/mass/mass2.png",anchor:new AMap.Pixel(3,3),size:new AMap.Size(5,5),zIndex:1}]);var n=new AMap.MassMarks(d||[],{opacity:l,zIndex:f,style:e});return g(n),n.setMap(i),function(){n&&(n.clear(),g(void 0))}}}),[i]),M(E,n),h(E,e,["Map","Data","Style","Opacity","zIndex","Zooms"]),A(E,e,["onClick","onDblClick","onMouseMove","onMouseOut","onMouseUp","onMouseDown","onMouseOver","onTouchStart","onTouchEnd"]),{massMarks:E,setMassMarks:g}},Me=a.forwardRef((function(e,n){var o=ve(e).massMarks;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{massMarks:o})}),[o,e]),null})),me=["visiable"],Ae=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,me),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Polygon((0,s.Z)({},o));return i.add(e),f(e),function(){if(e)try{i&&i.remove(e)}catch(n){}f(void 0)}}}),[i]),(0,a.useEffect)((function(){l&&l.setOptions(o)}),[l,o]),M(l,n),h(l,e,["Path","Options","Map","ExtData","Draggable"]),A(l,e,["onClick","onDblClick","onRightClick","onHide","onShow","onMouseDown","onMouseUp","onMouseOver","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onTouchStart","onTouchMove","onTouchEnd"]),{polygon:l,setPolygon:f}},he=(0,a.forwardRef)((function(e,n){var o=e.children,t=Ae(e).polygon;if((0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polygon:t})}),[t]),o&&(0,a.isValidElement)(o)&&t){var r={polygon:t,polyElement:t};return(0,a.cloneElement)(o,(0,s.Z)({},e,r))}return null})),Ee=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.polygon,i=k().map,u=(0,a.useState)(!0),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=(0,a.useState)(),d=(0,t.Z)(p,2),v=d[0],M=d[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyEditor:v})})),(0,a.useEffect)((function(){if(r&&i&&!v&&AMap&&AMap.PolygonEditor){var e=new AMap.PolygonEditor(i,r);r.on("hide",(function(){return f(!1)})),r.on("show",(function(){return f(!0)})),M(e)}}),[r]),(0,a.useEffect)((function(){v&&(l&&!o?(v.close(),e.onEnd&&e.onEnd({target:e.polygon})):l&&o?(v.open(),e.onAdd&&e.onAdd({target:e.polygon})):!l&&o&&(v.close(),e.onEnd&&e.onEnd({target:e.polygon})))}),[o,l]),A(v,e,["onEnd","onAddnode","onRemovenode","onAdjust","onMove","onAdd"]),null})),ge=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.polyElement,i=k().map,u=(0,a.useState)(!0),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=(0,a.useState)(),d=(0,t.Z)(p,2),v=d[0],M=d[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyEditor:v})})),(0,a.useEffect)((function(){if(r&&i&&!v&&AMap&&AMap.PolyEditor){var e=new AMap.PolyEditor(i,r);r.on("hide",(function(){return f(!1)})),r.on("show",(function(){return f(!0)})),M(e)}}),[r]),(0,a.useEffect)((function(){v&&(l&&!o?(v.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})):l&&o?v.open():!l&&o&&(v.close(),e.onEnd&&e.onEnd({type:"end",target:e.polyElement})))}),[o,l]),A(v,e,["onEnd","onAddnode","onAdjust","onRemovenode"]),null})),we=["visiable"];function Ce(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),i=o[0],u=o[1],c=e.visiable,l=(0,r.Z)(e,we),s=k().map;return(0,a.useEffect)((function(){if(s&&!i){var e=new AMap.Polyline(l);return s.add(e),u(e),function(){e&&(AMap.v?s&&s.remove(e):s&&s.removeLayer(e),u(void 0))}}}),[s]),(0,a.useEffect)((function(){i&&i.setOptions(l)}),[i,l]),M(i,c),h(i,e,["Path","Options","Map","ExtData","Draggable"]),A(i,e,["onHide","onShow","onMouseOut","onChange","onDragStart","onDragging","onDragEnd","onRightClick","onDblClick","onMouseDown","onClick","onMouseOver","onTouchEnd","onTouchMove","onTouchStart","onMouseUp"]),{polyline:i,setPolyline:u}}var ye=a.forwardRef((function(e,n){var o=e.children,t=Ce(e).polyline;if((0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyline:t})}),[t]),o&&(0,a.isValidElement)(o)&&t){var r={polyElement:t,polyline:t};return(0,a.cloneElement)(o,(0,s.Z)({},e,r))}return null})),ke=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.polyline,i=k().map,u=(0,a.useState)(!0),c=(0,t.Z)(u,2),l=c[0],f=c[1],p=(0,a.useState)(),d=(0,t.Z)(p,2),v=d[0],M=d[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{polyEditor:v})})),(0,a.useEffect)((function(){if(r&&i&&!v&&AMap&&AMap.PolylineEditor){var e=new AMap.PolylineEditor(i,r);r.on("hide",(function(){return f(!1)})),r.on("show",(function(){return f(!0)})),M(e)}}),[r]),(0,a.useEffect)((function(){v&&(l&&!o?(v.close(),e.onEnd&&e.onEnd({target:e.polyline})):l&&o?(v.open(),e.onAdd&&e.onAdd({target:e.polyline})):!l&&o&&(v.close(),e.onEnd&&e.onEnd({target:e.polyline})))}),[o,l,v]),A(v,e,["onEnd","onAddnode","onRemovenode","onAdjust","onAdd"]),null})),Ze=function(e){return e[e.MARKER=0]="MARKER",e[e.POLYLINE=1]="POLYLINE",e[e.POLYGON=2]="POLYGON",e[e.CIRCLE=3]="CIRCLE",e[e.RECTANGLE=4]="RECTANGLE",e[e.MEASUREAREA=5]="MEASUREAREA",e[e.RULE=6]="RULE",e[e.RECTZOOMIN=7]="RECTZOOMIN",e[e.RECTZOOMOUT=8]="RECTZOOMOUT",e}({}),Ie=(0,a.forwardRef)((function(e,n){var o=e.active,r=e.type,i=e.drawElementOptions,u=e.ifClear,c=k().map,l=(0,a.useState)(),f=(0,t.Z)(l,2),p=f[0],d=f[1];return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{mouseTool:p})})),(0,a.useEffect)((function(){if(c&&!p&&AMap&&AMap.MouseTool){var e=new AMap.MouseTool(c);d(e)}}),[c,Map,AMap.MouseTool]),(0,a.useEffect)((function(){if(p)if(o)switch(r){case Ze.MARKER:p.marker(i||{});break;case Ze.POLYLINE:p.polyline(i||{});break;case Ze.POLYGON:p.polygon(i||{});break;case Ze.CIRCLE:p.circle(i||{});break;case Ze.RECTANGLE:p.rectangle(i||{});break;case Ze.MEASUREAREA:p.measureArea(i||{});break;case Ze.RULE:p.rule(i||{});break;case Ze.RECTZOOMIN:p.rectZoomIn(i||{});break;case Ze.RECTZOOMOUT:p.rectZoomOut(i||{})}else p.close(u)}),[o,u]),A(p,e,["onDraw"]),null})),be=["visiable"],Te=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,be),i=k().map,u=(0,a.useState)(),c=(0,t.Z)(u,2),l=c[0],f=c[1];return(0,a.useEffect)((function(){if(AMap&&i&&!l){var e=new AMap.Rectangle((0,s.Z)({},o));return i.add(e),f(e),function(){e&&(AMap.v?i&&i.remove(e):i&&i.removeLayer(e),f(void 0))}}}),[i]),M(l,n),h(l,e,["Bounds","Options","Map","ExtData"]),A(l,e,["onHide","onShow","onClick","onDblClick","onRightClick","onMouseOut","onMouseOver","onMouseUp","onMouseDown","onTouchEnd","onTouchMove","onTouchStart"]),{rectangle:l,setRectangle:f}},Se=a.forwardRef((function(e,n){var o=Te(e).rectangle;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{rectangle:o})})),null})),Le={};function Re(e,n){void 0===n&&(n="_react_amap_css");var o=document&&(document.head||document.getElementsByTagName("head")[0]),t=document.getElementById(n);return new Promise((function(r,a){if(!document||e in Le||t)r();else{var i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.id=n,i.href=e,i.onerror=function(n){o.removeChild(i),a(new URIError("The css "+e+" is no accessible."))},i.onload=function(){Le[e]=!0,r()},o.appendChild(i)}}))}function xe(e,n){void 0===n&&(n="_react_amap_plugin");var o=document&&(document.head||document.getElementsByTagName("head")[0]),t=document.getElementById(n);return new Promise((function(r,a){if(!document||e in Le||t)r();else{var i=document.createElement("script");i.type="text/javascript",i.id=n,i.async=!0,i.defer=!0,i.src=e,i.onerror=function(n){o.removeChild(i),a(new URIError("The Script "+e+" is no accessible."))},i.onload=function(){Le[e]=!0,r()},o.appendChild(i)}}))}function Oe(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),r=o[0],i=o[1],u=e,c=u.position,l=u.visiable,s=u.offset,f=k().map;return(0,a.useEffect)((function(){var e;if(f&&!r)return f.plugin(["AMap.Scale"],(function(){e=new AMap.Scale({offset:s,position:c}),f.addControl(e),i(e)})),function(){e&&f.removeControl(e)}}),[f]),M(r,l),{scaleControl:r,setScaleControl:i}}var Pe=a.forwardRef((function(e,n){var o=Oe(e).scaleControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{scaleControl:o})}),[o]),null})),Ue=["visiable"],De=function(e){void 0===e&&(e={});var n=e.visiable,o=(0,r.Z)(e,Ue),i=(0,a.useState)(),u=(0,t.Z)(i,2),c=u[0],l=u[1],f=k().map,p=d(),v=p.container,m=p.Portal;return(0,a.useEffect)((function(){if(AMap&&f&&!c){e.children&&(o.text=v.innerHTML);var n=new AMap.Text((0,s.Z)({},o));return f.add(n),l(n),function(){n&&(n.remove(),l(void 0))}}}),[f]),(0,a.useEffect)((function(){c&&c.setText(e.children?v.innerHTML:e.text||"")}),[e.children,e.text,v,c]),M(c,n),h(c,e,["Style","Title","Clickable","Draggable","Map","Position","Offset","Angle","zIndex","Top","Cursor","ExtData"]),A(c,e,["onMoving","onTouchMove","onTouchEnd","onMoveaLong","onTouchStart","onMoveEnd","onClick","onDblClick","onRightClick","onMouseMove","onMouseOver","onMouseOut","onMouseDown","onMouseUp","onDragStart","onDragEnd","onDragging"]),{text:c,setText:l,TextPortal:m}},He=(0,a.forwardRef)((function(e,n){var o=De((0,s.Z)({},e)),t=o.text,r=o.TextPortal;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{text:t})})),e.children?(0,u.jsx)(r,{children:e.children}):null}));function ze(e){void 0===e&&(e={});var n=(0,a.useState)(),o=(0,t.Z)(n,2),r=o[0],i=o[1],u=e,c=u.position,l=u.visiable,s=u.offset,f=k().map;return(0,a.useEffect)((function(){var e;if(f&&!r)return f.plugin(["AMap.ToolBar"],(function(){e=new AMap.ToolBar({offset:s,position:c}),f.addControl(e),i(e)})),function(){e&&f.removeControl(e)}}),[f]),M(r,l),{toolBarControl:r,setToolBarControl:i}}var Be=a.forwardRef((function(e,n){var o=ze(e).toolBarControl;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{toolBarControl:o})}),[o]),null})),Ne=function(e){void 0===e&&(e={});var n=e,o=n.city,r=void 0===o?"":o,i=n.type,u=void 0===i?"live":i,c=n.onComplete,l=n.onError,s=(0,a.useState)(),f=(0,t.Z)(s,2),p=f[0],d=f[1],v="live"===u?"getLive":"getForecast";return(0,a.useEffect)((function(){var e;if(AMap&&!p)return AMap.plugin(["AMap.Weather"],(function(){e=new AMap.Weather,d(e)})),function(){e&&d(void 0)}}),[]),(0,a.useMemo)((function(){var e;p&&r&&u&&(e=p,u&&r&&/^(live|forecast)$/.test(u)&&e[v](r,(function(e,n){e&&l?l(e):n&&c&&c(n)})))}),[p,r,u]),{weather:p,setWeather:d}},je=a.forwardRef((function(e,n){var o=Ne(e).weather;return(0,a.useImperativeHandle)(n,(function(){return(0,s.Z)({},e,{weather:o})})),null}))}}]); +//# sourceMappingURL=5775.b3985d06.chunk.js.map \ No newline at end of file diff --git a/static/js/5775.b3985d06.chunk.js.map b/static/js/5775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AC,EAAGpD,EAAO,CACjD2V,QAAAA,GACA,IACK,IACT,G","sources":["../../node_modules/@amap/amap-jsapi-loader/dist/index.js","../../packages/api-loader/esm/index.js","../../packages/utils/esm/usePortal.js","../../packages/utils/esm/index.js","../../packages/auto-complete/esm/useAutoComplete.js","../../packages/auto-complete/esm/index.js","../../packages/map/esm/context.js","../../packages/map/esm/useMap.js","../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js","../../packages/map/esm/index.js","../../packages/bezier-curve/esm/useBezierCurve.js","../../packages/bezier-curve/esm/index.js","../../packages/circle/esm/useCircle.js","../../packages/circle/esm/index.js","../../packages/circle-marker/esm/useCircleMarker.js","../../packages/circle-marker/esm/index.js","../../packages/context-menu/esm/useContextMenu.js","../../packages/context-menu/esm/Item.js","../../packages/context-menu/esm/index.js","../../packages/control-bar-control/esm/useControlBarControl.js","../../packages/control-bar-control/esm/index.js","../../packages/ellipse/esm/useEllipse.js","../../packages/ellipse/esm/index.js","../../packages/geolocation/esm/useGeolocation.js","../../packages/geolocation/esm/index.js","../../packages/hawk-eye-control/esm/useHawkEyeControl.js","../../packages/hawk-eye-control/esm/index.js","../../packages/info-window/esm/useInfoWindow.js","../../packages/info-window/esm/index.js","../../packages/map-type-control/esm/useMapTypeControl.js","../../packages/map-type-control/esm/index.js","../../packages/tile-layer/esm/useTileLayer.js","../../packages/tile-layer/esm/index.js","../../packages/marker/esm/useMarker.js","../../packages/marker/esm/index.js","../../packages/label-marker/esm/useLabelMarker.js","../../packages/label-marker/esm/index.js","../../packages/mass-marks/esm/useMassMarks.js","../../packages/mass-marks/esm/index.js","../../packages/polygon/esm/usePolygon.js","../../packages/polygon/esm/index.js","../../packages/polygon-editor/esm/index.js","../../packages/poly-editor/esm/index.js","../../packages/polyline/esm/usePolyline.js","../../packages/polyline/esm/index.js","../../packages/polyline-editor/esm/index.js","../../packages/mouse-tool/esm/index.js","../../packages/rectangle/esm/useRectangle.js","../../packages/rectangle/esm/index.js","../../packages/require-script/esm/index.js","../../packages/scale-control/esm/useScaleControl.js","../../packages/scale-control/esm/index.js","../../packages/text/esm/useText.js","../../packages/text/esm/index.js","../../packages/tool-bar-control/esm/useToolBarControl.js","../../packages/tool-bar-control/esm/index.js","../../packages/weather/esm/useWeather.js","../../packages/weather/esm/index.js"],"sourcesContent":["'use strict';(function(m,p){\"object\"===typeof exports&&\"undefined\"!==typeof module?module.exports=p():\"function\"===typeof define&&define.amd?define(p):(m=m||self,m.AMapLoader=p())})(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\n\nimport { Fragment, useEffect, useState } from 'react';\nimport { load } from '@amap/amap-jsapi-loader';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * APILoader 用于加载百度地图依赖\n */\nexport var APILoader = props => {\n var {\n children\n } = props,\n config = _objectWithoutPropertiesLoose(props, _excluded);\n var [loaded, setLoaded] = useState(false);\n var [error, setError] = useState();\n useEffect(() => {\n var aKey = config.akey || config.akay || '';\n var plugins = config.plugins || (config.plugin ? config.plugin.split(',') : []);\n load({\n key: aKey,\n plugins,\n version: config.version || '2.0',\n AMapUI: config.AMapUI,\n Loca: config.Loca\n }).then(() => {\n setError(undefined);\n setLoaded(true);\n }).catch(err => {\n setError(err);\n });\n }, [config.akey, config.akay]);\n if (error) {\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n color: 'red'\n },\n children: error.message\n });\n } else if (loaded) {\n return /*#__PURE__*/_jsx(Fragment, {\n children: children\n });\n }\n return null;\n};","import React, { useState, useEffect } from 'react';\nimport { createPortal, unmountComponentAtNode } from 'react-dom';\nexport var usePortal = () => {\n var [container] = React.useState(() => {\n var el = document.createElement('div');\n return el;\n });\n var [portal, setPortal] = useState({\n render: () => null,\n remove: () => null\n });\n var ReactCreatePortal = React.useCallback(elmm => {\n var Portal = _ref => {\n var {\n children\n } = _ref;\n if (!children) return null;\n return /*#__PURE__*/createPortal(children, elmm);\n };\n var remove = elm => {\n elm && unmountComponentAtNode(elm);\n };\n return {\n render: Portal,\n remove\n };\n }, []);\n useEffect(() => {\n if (container) portal.remove();\n var newPortal = ReactCreatePortal(container);\n setPortal(newPortal);\n return () => {\n newPortal.remove(container);\n };\n }, [container]);\n return {\n Portal: portal.render,\n container\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\n/// \nimport { useEffect, useState, useRef } from 'react';\nexport * from './usePortal';\n\n/**\n * 对实例有 setStatus 更改状态的处理\n * @param instance\n * @param props\n * @param propsName\n */\nexport function useSetStatus(instance, props, propsName) {\n if (props === void 0) {\n props = {};\n }\n if (propsName === void 0) {\n propsName = [];\n }\n propsName.forEach(name => {\n var eName = name;\n // eslint-disable-next-line react-hooks/rules-of-hooks\n var [state, setState] = useState(props[eName]);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && props[eName] !== undefined) {\n if (props[eName] !== state) {\n // map.setStatus({\n // dragEnable: true,\n // keyboardEnable: true,\n // doubleClickZoom: true,\n // zoomEnable: true,\n // rotateEnable: true\n // });\n var status = instance.getStatus();\n instance.setStatus(_extends({}, status, {\n [eName]: props[eName]\n }));\n setState(props[eName]);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, props[eName]]);\n });\n}\n\n/**\n * 针对 Overlay 类型的组件,有公共的是否显示 对象处理\n * 通过参数 `visiable` 来控制执行 `show()` or `hide()`\n */\nexport function useVisiable(instance, visiable) {\n var [state, setState] = useState(visiable);\n useEffect(() => {\n if (instance && visiable !== undefined) {\n if (visiable) {\n instance.show && instance.show();\n } else {\n instance.hide && instance.hide();\n }\n if (visiable !== state) {\n setState(visiable);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [instance, visiable]);\n}\n\n/**\n * 获取上一轮的 props 或 state\n * How to get the previous props or state?\n * https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state\n * @example\n * ```js\n * function Counter() {\n * const [count, setCount] = useState(0);\n * const prevCount = usePrevious(count);\n * return

Now: {count}, before: {prevCount}

;\n * }\n * ```\n */\nexport function usePrevious(value) {\n var ref = useRef();\n useEffect(() => {\n ref.current = value;\n });\n return ref.current;\n}\n/**\n * 绑定事件\n * @param instance 实例对象\n * @param props 传递进来的 props\n * @param eventName 事件的名字,如,我们使用 `onClick` 事件,最终被转换成,`click` 绑定到实例中,`onDblClick` => `dblclick`\n *\n * @example\n * ```js\n * useEventProperties(marker!, props, [\n * 'onMouseMove', 'onZoomChange', 'onMapMove', 'onMouseWheel', 'onZoomStart'\n * ]);\n * ```\n */\nexport function useEventProperties(instance, props, eventName, type) {\n if (props === void 0) {\n props = {};\n }\n if (eventName === void 0) {\n eventName = [];\n }\n eventName.forEach(name => {\n var eventName = name;\n var eventHandle = props[eventName];\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (!instance) return;\n var eName = name.toLocaleLowerCase().replace(/^on/, '');\n if (eventHandle && eName) {\n instance.on(eName, eventHandle);\n }\n return () => {\n if (eName && eventHandle) {\n instance.off(eName, eventHandle);\n }\n };\n }, [instance, eventHandle]);\n });\n}\n\n/**\n * 属性受控\n * @param instance 实例对象\n * @param props 属性值\n * @param propsName 多个属性设置的名称\n * @example\n * ```ts\n * useSettingProperties(polyline!, props, [\n * 'Path'\n * ]);\n * ```\n */\nexport function useSettingProperties(instance, props, propsName) {\n if (instance === void 0) {\n instance = {};\n }\n if (props === void 0) {\n props = {};\n }\n if (propsName === void 0) {\n propsName = [];\n }\n propsName.forEach(name => {\n var eName = \"set\" + name;\n var vName = \"\" + name.charAt(0).toLowerCase() + name.slice(1);\n var eventHandle = props[vName];\n var [state, setState] = useState(eventHandle);\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(() => {\n if (instance && eventHandle !== undefined) {\n if (eventHandle !== state && instance[eName] && typeof instance[eName] === 'function') {\n instance[eName](eventHandle);\n setState(eventHandle);\n }\n }\n }, [instance, eventHandle]);\n });\n}","import { useState, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nexport var useAutoComplete = function useAutoComplete(props) {\n if (props === void 0) {\n props = {};\n }\n var [autoComplete, setAutoComplete] = useState();\n useEffect(() => {\n if (AMap && !autoComplete) {\n var instance;\n if (AMap.v) {\n AMap.plugin(['AMap.Autocomplete'], () => {\n instance = new AMap.Autocomplete(props);\n setAutoComplete(instance);\n });\n } else {\n AMap.plugin(['AMap.AutoComplete'], () => {\n instance = new AMap.AutoComplete(props);\n setAutoComplete(instance);\n });\n }\n return () => {\n if (instance) {\n setAutoComplete(undefined);\n }\n };\n }\n }, []);\n useSettingProperties(autoComplete, props, ['Type', 'City', 'CityLimit']);\n useEventProperties(autoComplete, props, ['onChoose', 'onSelect']);\n return {\n autoComplete,\n setAutoComplete\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useAutoComplete } from './useAutoComplete';\nexport * from './useAutoComplete';\nexport var AutoComplete = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n autoComplete\n } = useAutoComplete(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n autoComplete\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport React from 'react';\nimport { useContext } from 'react';\nexport var initialState = {\n map: undefined,\n AMap: undefined,\n container: undefined\n};\nexport var reducer = (state, action) => {\n return _extends({}, state, action);\n};\nexport var Context = /*#__PURE__*/React.createContext({\n state: initialState,\n dispatch: () => null\n});\nexport function useMapContext() {\n var {\n state,\n dispatch\n } = useContext(Context);\n return _extends({}, state, {\n state,\n dispatch\n });\n}","import _objectDestructuringEmpty from \"@babel/runtime/helpers/objectDestructuringEmpty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport { useState, useMemo, useEffect, useContext } from 'react';\nimport { useSetStatus, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { Context } from './context';\n\n/**\n * 此类型是 `` 组件传递给子组件(如 ``)的两个 props\n */\n\nexport var useMap = function useMap(props) {\n if (props === void 0) {\n props = {};\n }\n var other = _extends({}, (_objectDestructuringEmpty(props), props));\n var [map, setMap] = useState();\n var [zoom, setZoom] = useState(props.zoom || 15);\n var [container, setContainer] = useState(props.container);\n var {\n dispatch\n } = useContext(Context);\n useEffect(() => {\n if (container && !map && AMap) {\n container.className = container.className + ' react-amap-wapper';\n var instance = new AMap.Map(container, _extends({\n zoom\n }, other));\n setMap(instance);\n }\n return () => {\n if (map) {\n map.clearInfoWindow();\n map.clearLimitBounds();\n map.clearMap();\n map.destroy();\n setMap(undefined);\n }\n };\n }, [container, map]);\n useEffect(() => {\n if (map && container) {\n dispatch({\n map,\n container,\n AMap\n });\n }\n return () => {\n dispatch({\n map: undefined,\n container: undefined,\n AMap: undefined\n });\n };\n }, [map, container]);\n useMemo(() => {\n if (map && typeof props.zoom === 'number' && zoom !== props.zoom && props.zoom >= 2 && props.zoom <= 20) {\n setZoom(props.zoom);\n map.setZoom(props.zoom);\n }\n }, [zoom, props.zoom]);\n useMemo(() => {\n if (props.center && map) {\n map.setCenter(props.center);\n }\n }, [map, props.center]);\n useSetStatus(map, props, ['dragEnable', 'zoomEnable', 'jogEnable', 'pitchEnable', 'rotateEnable', 'animateEnable', 'keyboardEnable']);\n // setStatus, setZoomAndCenter, setFitView\n // 'Center',\n useSettingProperties(map, props, ['Zoom', 'LabelzIndex', 'Layers', 'City', 'Bounds', 'LimitBounds', 'Lang', 'Rotation', 'DefaultCursor', 'MapStyle', 'Features', 'DefaultLayer', 'Pitch']);\n useEventProperties(map, props, ['onMouseMove', 'onZoomChange', 'onMapMove', 'onMouseWheel', 'onZoomStart', 'onMouseOver', 'onMouseOut', 'onDblClick', 'onClick', 'onZoomEnd', 'onMoveEnd', 'onMouseUp', 'onMouseDown', 'onRightClick', 'onMoveStart', 'onDragStart', 'onDragging', 'onDragEnd', 'onHotspotOut', 'onHotspotOver', 'onTouchStart', 'onComplete', 'onHotspotClick', 'onTouchMove', 'onTouchEnd', 'onResize']);\n return {\n map,\n setMap,\n zoom,\n setZoom,\n container,\n setContainer\n };\n};","export default function _objectDestructuringEmpty(obj) {\n if (obj == null) throw new TypeError(\"Cannot destructure \" + obj);\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nvar _excluded = [\"className\", \"children\"];\n/// \nimport React, { useRef, useEffect, useImperativeHandle, Fragment, Children, cloneElement, isValidElement, forwardRef, useReducer } from 'react';\nimport { useMap } from './useMap';\nimport { Context, reducer, initialState } from './context';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nexport * from './useMap';\nexport * from './context';\nexport var Provider = props => {\n var [state, dispatch] = useReducer(reducer, initialState);\n return /*#__PURE__*/_jsx(Context.Provider, {\n value: _extends({}, state, {\n state,\n dispatch\n }),\n children: props.children\n });\n};\nexport var Map = /*#__PURE__*/forwardRef((_ref, ref) => {\n var {\n className,\n children\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n var AMap = window.AMap;\n var [state, dispatch] = useReducer(reducer, initialState);\n var elmRef = useRef(null);\n var {\n setContainer,\n container,\n map\n } = useMap(_extends({\n container: props.container || elmRef.current\n }, props));\n useEffect(() => setContainer(elmRef.current), [elmRef.current]);\n useImperativeHandle(ref, () => _extends({}, props, {\n map,\n AMap,\n container: props.container || elmRef.current\n }), [map]);\n var childs = Children.toArray(children);\n useEffect(() => {\n if (map) {\n dispatch({\n map,\n container: elmRef.current,\n AMap\n });\n }\n }, [map]);\n return /*#__PURE__*/_jsxs(Context.Provider, {\n value: _extends({}, state, {\n state,\n dispatch\n }),\n children: [!props.container && /*#__PURE__*/_jsx(\"div\", {\n ref: elmRef,\n className: className,\n style: _extends({\n fontSize: 1,\n width: '100%',\n height: '100%'\n }, props.style)\n }), AMap && map && typeof children === 'function' && children({\n AMap,\n map,\n container\n }), AMap && map && childs.map((child, key) => {\n if (! /*#__PURE__*/isValidElement(child)) return null;\n if (typeof child === 'string') {\n return /*#__PURE__*/cloneElement( /*#__PURE__*/_jsx(Fragment, {\n children: child\n }), {\n key\n });\n }\n if (child.type && typeof child.type === 'string') {\n return /*#__PURE__*/cloneElement(child, {\n key\n });\n }\n return /*#__PURE__*/cloneElement(child, _extends({}, child.props, {\n AMap,\n map,\n container,\n key\n }));\n })]\n });\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useBezierCurve = function useBezierCurve(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [bezierCurve, setBezierCurve] = useState();\n useEffect(() => {\n if (AMap && map && !bezierCurve) {\n var instance = new AMap.BezierCurve(_extends({}, other));\n map.add(instance);\n setBezierCurve(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setBezierCurve(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(bezierCurve, visiable);\n useSettingProperties(bezierCurve, props, ['Options', 'Path', 'ExtData', 'ExtData']);\n useEventProperties(bezierCurve, props, ['onHide', 'onShow', 'onDblClick', 'onMouseOver', 'onMouseUp', 'onMouseDown', 'onclick', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onRightClick', 'onMouseOut']);\n return {\n bezierCurve,\n setBezierCurve\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useBezierCurve } from './useBezierCurve';\nexport * from './useBezierCurve';\nexport var BezierCurve = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n bezierCurve\n } = useBezierCurve(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n bezierCurve\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useCircle = function useCircle(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [circle, setCircle] = useState();\n useEffect(() => {\n if (AMap && map && !circle) {\n var instance = new AMap.Circle(_extends({}, other));\n map.add(instance);\n setCircle(instance);\n }\n return () => {\n setCircle(circle => {\n if (circle) {\n map && map.remove(circle);\n }\n return undefined;\n });\n };\n }, [map]);\n useVisiable(circle, visiable);\n useSettingProperties(circle, props, ['Center', 'Raius', 'Options', 'ExtData']);\n useEventProperties(circle, props, ['onHide', 'onShow', 'onRightClick', 'onClick', 'onTouchEnd', 'onDblClick', 'onTouchMove', 'onTouchStart', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseDown']);\n return {\n circle,\n setCircle\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useCircle } from './useCircle';\nexport * from './useCircle';\nexport var Circle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n circle\n } = useCircle(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n circle\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useCircleMarker = function useCircleMarker(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [circleMarker, setCircleMarker] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!circleMarker) {\n var instance = new AMap.CircleMarker(_extends({}, other));\n map.add(instance);\n setCircleMarker(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setCircleMarker(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(circleMarker, visiable);\n useSettingProperties(circleMarker, props, ['Center', 'Raius', 'zIndex', 'Bubble', 'Cursor', 'StrokeColor', 'StrokeOpacity', 'StrokeWeight', 'FillColor', 'FillOpacity', 'Draggable', 'ExtData']);\n useEventProperties(circleMarker, props, ['onHide', 'onShow', 'onMouseover', 'onTouchend', 'onClick', 'onTouchmove', 'onRightclick', 'onMouseup', 'onMouseout', 'onTouchstart', 'onMousedown', 'onDblclick']);\n return {\n circleMarker,\n setCircleMarker\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useCircleMarker } from './useCircleMarker';\nexport * from './useCircleMarker';\nexport var CircleMarker = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n circleMarker\n } = useCircleMarker(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n circleMarker\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"position\"];\nimport { useState, useEffect } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useContextMenu = function useContextMenu(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n position\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [contextMenu, setContextMenu] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!contextMenu) {\n var instance = new AMap.ContextMenu(_extends({}, other));\n setContextMenu(instance);\n var rightclick = e => instance.open(map, position || e.lnglat);\n map.on('rightclick', rightclick);\n return () => {\n if (instance) {\n instance.close();\n map.off('rightclick', rightclick);\n setContextMenu(undefined);\n }\n };\n }\n }, [map]);\n useEventProperties(contextMenu, props, ['onOpen', 'onClose']);\n return {\n contextMenu,\n setContextMenu\n };\n};","import { useEffect } from 'react';\nvar noop = function noop() {};\nexport default (function (props) {\n if (props === void 0) {\n props = {};\n }\n var {\n text = '',\n onClick = noop\n } = props;\n useEffect(() => {\n if (props.contextMenu) {\n props.contextMenu.addItem(text, onClick, 1);\n }\n return () => {\n if (props.contextMenu) {\n props.contextMenu.removeItem(text, onClick);\n }\n };\n }, [props.contextMenu, props.text, props.onClick]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle, Fragment } from 'react';\nimport { useContextMenu } from './useContextMenu';\nimport Item from './Item';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useContextMenu';\nexport * from './Item';\nexport var ContextMenu = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n contextMenu\n } = useContextMenu(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n contextMenu\n }));\n var childs = React.Children.toArray(props.children);\n return /*#__PURE__*/_jsx(Fragment, {\n children: AMap && contextMenu && childs.map((child, key) => {\n if (! /*#__PURE__*/React.isValidElement(child)) return null;\n return /*#__PURE__*/React.cloneElement(child, _extends({}, child.props, {\n AMap,\n map: props.map,\n contextMenu,\n key\n }));\n })\n });\n});\nContextMenu.Item = Item;","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useControlBarControl(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n position,\n visiable,\n offset\n } = props;\n var [controlBarControl, setControlBarControl] = useState();\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !controlBarControl) {\n var instance;\n map.plugin(['AMap.ControlBar', 'AMap.HawkEye'], () => {\n instance = new AMap.ControlBar({\n offset: offset,\n position\n });\n map.addControl(instance);\n setControlBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(controlBarControl, visiable);\n return {\n controlBarControl,\n setControlBarControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useControlBarControl } from './useControlBarControl';\nexport * from './useControlBarControl';\nexport var ControlBarControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n controlBarControl\n } = useControlBarControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n controlBarControl\n }), [controlBarControl]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useEllipse = function useEllipse(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [ellipse, setEllipse] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!ellipse) {\n var instance = new AMap.Ellipse(_extends({}, other));\n map.add(instance);\n setEllipse(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setEllipse(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(ellipse, visiable);\n useSettingProperties(ellipse, props, ['Center', 'Radius', 'Options', 'ExtData']);\n useEventProperties(ellipse, props, ['onHide', 'onShow', 'onClick', 'onDblClick', 'onRightClick', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseDown', 'onTouchEnd', 'onTouchMove', 'onTouchStart']);\n return {\n ellipse,\n setEllipse\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useEllipse } from './useEllipse';\nexport * from './useEllipse';\nexport var Ellipse = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n ellipse\n } = useEllipse(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n ellipse\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"type\", \"onComplete\", \"onError\"];\nimport { useState, useMemo, useEffect } from 'react';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useGeolocation = function useGeolocation(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n type = 'position',\n onComplete,\n onError\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var [geolocation, setGeolocation] = useState();\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (AMap && !geolocation) {\n var instance;\n AMap.plugin(['AMap.Geolocation'], () => {\n instance = new AMap.Geolocation(_extends({}, other));\n setGeolocation(instance);\n });\n return () => {\n if (instance) {\n setGeolocation(undefined);\n }\n };\n }\n }, [AMap]);\n function callback(status, result) {\n if (status === 'complete' && onComplete) {\n onComplete(result);\n } else if (onError) {\n onError(result);\n }\n }\n useMemo(() => {\n if (!/^(position|cityInfo)$/.test(type)) return;\n var funName = type === 'position' ? 'getCurrentPosition' : 'getCityInfo';\n if (geolocation && map) {\n geolocation[funName](callback);\n map.addControl(geolocation);\n } else if (geolocation) {\n geolocation[funName](callback);\n }\n }, [geolocation]);\n return {\n geolocation,\n setGeolocation\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useGeolocation } from './useGeolocation';\nexport * from './useGeolocation';\nexport var Geolocation = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n geolocation\n } = useGeolocation(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n geolocation\n }));\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"offset\", \"visiable\"];\nimport { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useHawkEyeControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [hawkEyeControl, setHawkEyeControl] = useState();\n var {\n offset,\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !hawkEyeControl) {\n var instance;\n map.plugin(['AMap.HawkEye'], () => {\n instance = new AMap.HawkEye(_extends({\n offset: offset\n }, other));\n map.addControl(instance);\n setHawkEyeControl(instance);\n });\n return () => {\n if (instance && map) {\n map && map.removeControl(instance);\n setHawkEyeControl(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(hawkEyeControl, visiable);\n return {\n hawkEyeControl,\n setHawkEyeControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useHawkEyeControl } from './useHawkEyeControl';\nexport * from './useHawkEyeControl';\nexport var HawkEyeControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n hawkEyeControl\n } = useHawkEyeControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n hawkEyeControl\n }), [hawkEyeControl]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"position\"];\nimport { useState, useMemo, useEffect } from 'react';\nimport { useEventProperties, useSettingProperties, usePortal } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useInfoWindow = function useInfoWindow(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable,\n position\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [isOpen, setIsOpen] = useState(visiable);\n var [infoWindow, setInfoWindow] = useState();\n var {\n container,\n Portal\n } = usePortal();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!infoWindow) {\n var positionCenter = map.getCenter();\n if (props.children) {\n other.content = container;\n }\n var instance = new AMap.InfoWindow(_extends({}, other, {\n position: position || positionCenter\n }));\n setInfoWindow(instance);\n if (isOpen) {\n instance.open(map, position || positionCenter);\n }\n return () => {\n if (instance) {\n map && map.remove(instance);\n setInfoWindow(undefined);\n }\n };\n }\n }, [map]);\n useEffect(() => {\n if (infoWindow) {\n infoWindow.setContent(props.children ? container : other.content || '');\n }\n }, [props.children, container, other.content, infoWindow]);\n useMemo(() => {\n if (isOpen !== visiable && infoWindow && map) {\n setIsOpen(visiable);\n if (visiable) {\n var positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n } else {\n infoWindow.close();\n }\n }\n }, [visiable, infoWindow]);\n useEffect(() => {\n if (!map || !infoWindow || !visiable) return;\n var positionCenter = map.getCenter();\n infoWindow.open(map, position || positionCenter);\n }, [position]);\n useSettingProperties(infoWindow, props, ['Content', 'Anchor', 'Size']);\n useEventProperties(infoWindow, props, ['onOpen', 'onClose', 'onChange']);\n return {\n isOpen,\n setIsOpen,\n infoWindow,\n setInfoWindow,\n InfoWindowPortal: Portal\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useInfoWindow } from './useInfoWindow';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useInfoWindow';\nexport var InfoWindow = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n infoWindow,\n InfoWindowPortal\n } = useInfoWindow(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n infoWindow\n }));\n return /*#__PURE__*/_jsx(InfoWindowPortal, {\n children: props.children\n });\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"defaultType\"];\nimport { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useMapTypeControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [mapTypeControl, setMapTypeControl] = useState();\n var {\n visiable,\n defaultType = 0\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !mapTypeControl) {\n var instance;\n map.plugin(['AMap.MapType'], () => {\n instance = new AMap.MapType(_extends({\n defaultType\n }, other));\n map.addControl(instance);\n setMapTypeControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(mapTypeControl, visiable);\n return {\n mapTypeControl,\n setMapTypeControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useMapTypeControl } from './useMapTypeControl';\nexport * from './useMapTypeControl';\nexport var MapTypeControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n mapTypeControl\n } = useMapTypeControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n mapTypeControl\n }), [mapTypeControl]);\n return null;\n});","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nimport { TileLayerType } from './index';\nexport function useTileLayer(props) {\n if (props === void 0) {\n props = {};\n }\n var [tileLayer, setTileLayer] = useState();\n var {\n visiable,\n type,\n options\n } = props;\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map) {\n var instance = null;\n if (type) {\n switch (type) {\n case TileLayerType.ROADNET:\n instance = new AMap.TileLayer.RoadNet({});\n break;\n case TileLayerType.SATELLITE:\n instance = new AMap.TileLayer.Satellite({});\n break;\n case TileLayerType.TRAFFIC:\n instance = new AMap.TileLayer.Traffic({});\n break;\n }\n }\n if (options) {\n instance = new AMap.TileLayer(options);\n }\n if (!!instance) {\n // 暂不使用这个 API,这个不兼容 v1.4.xx\n // map.addLayer(instance);\n map.add(instance);\n props.onAdded && props.onAdded();\n setTileLayer(instance);\n }\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setTileLayer(null);\n props.onRemoved && props.onRemoved();\n }\n };\n }\n }, [map, type, options]);\n useVisiable(tileLayer, visiable);\n return {\n tileLayer,\n setTileLayer\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useTileLayer } from './useTileLayer';\nexport * from './useTileLayer';\nexport var TileLayerType = /*#__PURE__*/function (TileLayerType) {\n TileLayerType[\"SATELLITE\"] = \"satellite\";\n TileLayerType[\"TRAFFIC\"] = \"traffic\";\n TileLayerType[\"ROADNET\"] = \"roadnet\";\n return TileLayerType;\n}({});\nexport var TileLayer = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n tileLayer\n } = useTileLayer(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n tileLayer\n }), [tileLayer]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"children\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, usePortal } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useMarker = function useMarker(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [marker, setMarker] = useState();\n var {\n container,\n Portal\n } = usePortal();\n useEffect(() => {\n if (!marker && map) {\n if (props.children) {\n other.content = container;\n }\n var instance = new AMap.Marker(_extends({}, other));\n map.add(instance);\n setMarker(instance);\n }\n return () => {\n if (marker) {\n // @fix [244] https://github.com/uiwjs/react-amap/issues/244\n // typeof marker.remove === 'function' && marker.remove();\n marker.setMap(null);\n setMarker(undefined);\n }\n };\n }, [map, marker]);\n useVisiable(marker, visiable);\n useSettingProperties(marker, props, ['Path', 'Anchor', 'Offset', 'Animation', 'Clickable', 'Position', 'Angle', 'Label', 'zIndex', 'Icon', 'Draggable', 'Cursor', 'Content', 'Map', 'Title', 'Top', 'Shadow', 'Shape', 'ExtData']);\n useEventProperties(marker, props, ['onClick', 'onDblClick', 'onRightClick', 'onMouseMove', 'onMouseOver', 'onMouseOut', 'onMouseDown', 'onMouseUp', 'onDragStart', 'onDragging', 'onDragEnd', 'onMoving', 'onMoveEnd', 'onMoveAlong', 'onTouchStart', 'onTouchMove', 'onTouchEnd']);\n return {\n marker,\n setMarker,\n MarkerPortal: Portal\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useImperativeHandle, forwardRef } from 'react';\nimport { useMarker } from './useMarker';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useMarker';\nexport var Marker = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n marker,\n MarkerPortal\n } = useMarker(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n marker\n }), [marker]);\n return /*#__PURE__*/_jsx(MarkerPortal, {\n children: props.children\n });\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\", \"children\", \"text\", \"icon\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useLabelMarker = function useLabelMarker(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable,\n text,\n icon\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map,\n AMap\n } = useMapContext();\n var [labelMarker, setLabelMarker] = useState();\n // const { container, Portal } = usePortal();\n\n useEffect(() => {\n if (!labelMarker && map) {\n var _v;\n var initText = text;\n if (!text) {\n initText = {\n // 要展示的文字内容\n content: '',\n // 文字方向,有 icon 时为围绕文字的方向,没有 icon 时,则为相对 position 的位置\n direction: 'right',\n // 在 direction 基础上的偏移量\n offset: [-20, -5],\n // 文字样式\n style: {\n // 字体大小\n fontSize: 12,\n // 字体颜色\n fillColor: '#22886f',\n // 描边颜色\n strokeColor: '#fff',\n // 描边宽度\n strokeWidth: 2\n }\n };\n }\n var initIcon = icon;\n if (!initIcon) {\n initIcon = {\n // 图标类型,现阶段只支持 image 类型\n // 图片 url\n image: 'http://webapi.amap.com/theme/v1.3/markers/b/mark_bs.png',\n // 图片尺寸\n size: [19, 32],\n // 图片相对 position 的锚点,默认为 bottom-center\n anchor: 'center'\n };\n }\n\n // if (props.children) {\n // other.content = container;\n // }\n var instance = new AMap.LabelMarker(_extends({\n style: initIcon,\n icon: initIcon,\n text: initText\n }, other));\n setLabelMarker(instance);\n\n // issue #259 兼容 v1.4.xxx 版本\n if ((AMap == null || (_v = AMap.v) == null ? void 0 : _v.indexOf('1.4')) === 0) {\n var labelMarkersLayer;\n if (map.labelMarkersLayer) {\n labelMarkersLayer = map.labelMarkersLayer;\n } else {\n map.labelMarkersLayer = labelMarkersLayer = new AMap.LabelsLayer({\n zooms: [3, 20],\n zIndex: 101,\n collision: true,\n animation: true\n });\n map.add(labelMarkersLayer);\n }\n labelMarkersLayer.add(instance);\n }\n map.add(instance);\n }\n return () => {\n if (labelMarker) {\n var _v2;\n // issue #259 兼容 v1.4.xxx 版本\n if ((AMap == null || (_v2 = AMap.v) == null ? void 0 : _v2.indexOf('1.4')) === 0) {\n var _labelMarkersLayer;\n map == null || (_labelMarkersLayer = map.labelMarkersLayer) == null ? void 0 : _labelMarkersLayer.remove(labelMarker);\n }\n setLabelMarker(undefined);\n }\n };\n }, [labelMarker, map]);\n useVisiable(labelMarker, visiable);\n useSettingProperties(labelMarker, props, ['Name', 'Position', 'Zooms', 'Opacity', 'zIndex', 'Rank', 'Text', 'Icon', 'ExtData', 'Top']);\n useEventProperties(labelMarker, props, ['onMousedown', 'onMouseup', 'onTouchstart', 'onTouchmove', 'onTouchend', 'onClick', 'onMousemove', 'onMouseover', 'onMouseout']);\n return {\n labelMarker,\n setLabelMarker\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useImperativeHandle, forwardRef } from 'react';\nimport { useLabelMarker } from './useLabelMarker';\nexport var LabelMarker = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n labelMarker\n } = useLabelMarker(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n labelMarker\n }), [labelMarker]);\n return null;\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useMassMarks = function useMassMarks(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var {\n opacity = 1,\n zIndex = 1111,\n style,\n data\n } = other || {};\n var [massMarks, setMassMarks] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!massMarks) {\n var initStyle = style;\n if (!initStyle) {\n // JSAPI 2.0 支持显示设置 zIndex, zIndex 越大约靠前,默认按顺序排列\n initStyle = [{\n url: 'https://webapi.amap.com/images/mass/mass0.png',\n anchor: new AMap.Pixel(6, 6),\n size: new AMap.Size(11, 11),\n zIndex: 3\n }, {\n url: 'https://webapi.amap.com/images/mass/mass1.png',\n anchor: new AMap.Pixel(4, 4),\n size: new AMap.Size(7, 7),\n zIndex: 2\n }, {\n url: 'https://webapi.amap.com/images/mass/mass2.png',\n anchor: new AMap.Pixel(3, 3),\n size: new AMap.Size(5, 5),\n zIndex: 1\n }];\n }\n var instance = new AMap.MassMarks(data || [], {\n opacity,\n zIndex,\n style: initStyle\n });\n // 将海量点实例添加到地图上\n // map.add(instance);\n setMassMarks(instance);\n instance.setMap(map);\n return () => {\n if (instance) {\n instance.clear();\n setMassMarks(undefined);\n }\n };\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [map]);\n useVisiable(massMarks, visiable);\n useSettingProperties(massMarks, props, ['Map', 'Data', 'Style', 'Opacity', 'zIndex', 'Zooms']);\n useEventProperties(massMarks, props, [\n // 'onRightClick',\n // 'onDragStart',\n // 'onDragging',\n // 'onDragEnd',\n // 'onMoving',\n // 'onMoveEnd',\n // 'onMoveAlong',\n 'onClick', 'onDblClick', 'onMouseMove', 'onMouseOut', 'onMouseUp', 'onMouseDown', 'onMouseOver', 'onTouchStart', 'onTouchEnd']);\n return {\n massMarks,\n setMassMarks\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useMassMarks } from './useMassMarks';\nexport * from './useMassMarks';\nexport var MassMarks = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n massMarks\n } = useMassMarks(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n massMarks\n }), [massMarks, props]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var usePolygon = function usePolygon(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [polygon, setPolygon] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!polygon) {\n var instance = new AMap.Polygon(_extends({}, other));\n map.add(instance);\n setPolygon(instance);\n return () => {\n if (instance) {\n try {\n map && map.remove(instance);\n } catch (e) {}\n // if (AMap.v) {\n // map && map.remove(instance);\n // } else {\n // // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n // map && map.removeLayer(instance);\n // }\n }\n\n setPolygon(undefined);\n };\n }\n }, [map]);\n useEffect(() => {\n if (polygon) {\n polygon.setOptions(other);\n }\n }, [polygon, other]);\n useVisiable(polygon, visiable);\n useSettingProperties(polygon, props, ['Path', 'Options', 'Map', 'ExtData', 'Draggable']);\n useEventProperties(polygon, props, ['onClick', 'onDblClick', 'onRightClick', 'onHide', 'onShow', 'onMouseDown', 'onMouseUp', 'onMouseOver', 'onMouseOut', 'onChange', 'onDragStart', 'onDragging', 'onDragEnd', 'onTouchStart', 'onTouchMove', 'onTouchEnd']);\n return {\n polygon,\n setPolygon\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { useImperativeHandle, forwardRef, isValidElement, cloneElement } from 'react';\nimport { usePolygon } from './usePolygon';\nexport * from './usePolygon';\nexport var Polygon = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n children\n } = props;\n var {\n polygon\n } = usePolygon(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n polygon\n }), [polygon]);\n if (children && /*#__PURE__*/isValidElement(children) && polygon) {\n var oProps = {\n polygon,\n polyElement: polygon\n };\n return /*#__PURE__*/cloneElement(children, _extends({}, props, oProps));\n }\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var PolygonEditor = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n polygon\n } = props;\n var {\n map\n } = useMapContext();\n var [visiable, setVisiable] = useState(true);\n var [polyEditor, setPolyEditor] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n polyEditor\n }));\n useEffect(() => {\n if (polygon && map && !polyEditor && AMap && AMap.PolygonEditor) {\n var instance = new AMap.PolygonEditor(map, polygon);\n polygon.on('hide', () => setVisiable(false));\n polygon.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polygon]);\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polygon\n });\n } else if (visiable && active) {\n polyEditor.open();\n props.onAdd && props.onAdd({\n target: props.polygon\n });\n } else if (!visiable && active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polygon\n });\n }\n }, [active, visiable]);\n useEventProperties(polyEditor, props, ['onEnd', 'onAddnode', 'onRemovenode', 'onAdjust', 'onMove', 'onAdd']);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var PolyEditor = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n polyElement\n } = props;\n var {\n map\n } = useMapContext();\n var [visiable, setVisiable] = useState(true);\n var [polyEditor, setPolyEditor] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n polyEditor\n }));\n useEffect(() => {\n if (polyElement && map && !polyEditor && AMap && AMap.PolyEditor) {\n var instance = new AMap.PolyEditor(map, polyElement);\n polyElement.on('hide', () => setVisiable(false));\n polyElement.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polyElement]);\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n type: 'end',\n target: props.polyElement\n });\n } else if (visiable && active) {\n polyEditor.open();\n } else if (!visiable && active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n type: 'end',\n target: props.polyElement\n });\n }\n }, [active, visiable]);\n useEventProperties(polyEditor, props, ['onEnd', 'onAddnode', 'onAdjust', 'onRemovenode']);\n return null;\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useEffect, useState } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function usePolyline(props) {\n if (props === void 0) {\n props = {};\n }\n var [polyline, setPolyline] = useState();\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !polyline) {\n var instance = new AMap.Polyline(other);\n map.add(instance);\n setPolyline(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setPolyline(undefined);\n }\n };\n }\n }, [map]);\n useEffect(() => {\n if (polyline) {\n polyline.setOptions(other);\n }\n }, [polyline, other]);\n useVisiable(polyline, visiable);\n useSettingProperties(polyline, props, ['Path', 'Options', 'Map', 'ExtData', 'Draggable']);\n useEventProperties(polyline, props, ['onHide', 'onShow', 'onMouseOut', 'onChange', 'onDragStart', 'onDragging', 'onDragEnd', 'onRightClick', 'onDblClick', 'onMouseDown', 'onClick', 'onMouseOver', 'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onMouseUp']);\n return {\n polyline,\n setPolyline\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { isValidElement, useImperativeHandle, cloneElement } from 'react';\nimport { usePolyline } from './usePolyline';\nexport * from './usePolyline';\nexport var Polyline = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n children\n } = props;\n var {\n polyline\n } = usePolyline(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n polyline\n }), [polyline]);\n if (children && /*#__PURE__*/isValidElement(children) && polyline) {\n var oProps = {\n polyElement: polyline,\n polyline\n };\n return /*#__PURE__*/cloneElement(children, _extends({}, props, oProps));\n }\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var PolylineEditor = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n polyline\n } = props;\n var {\n map\n } = useMapContext();\n var [visiable, setVisiable] = useState(true);\n var [polyEditor, setPolyEditor] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n polyEditor\n }));\n useEffect(() => {\n if (polyline && map && !polyEditor && AMap && AMap.PolylineEditor) {\n var instance = new AMap.PolylineEditor(map, polyline);\n polyline.on('hide', () => setVisiable(false));\n polyline.on('show', () => setVisiable(true));\n setPolyEditor(instance);\n }\n }, [polyline]);\n useEffect(() => {\n if (!polyEditor) {\n return;\n }\n if (visiable && !active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polyline\n });\n } else if (visiable && active) {\n polyEditor.open();\n props.onAdd && props.onAdd({\n target: props.polyline\n });\n } else if (!visiable && active) {\n polyEditor.close();\n props.onEnd && props.onEnd({\n target: props.polyline\n });\n }\n }, [active, visiable, polyEditor]);\n useEventProperties(polyEditor, props, ['onEnd', 'onAddnode', 'onRemovenode', 'onAdjust', 'onAdd']);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useEffect, useImperativeHandle, useState } from 'react';\nimport { useEventProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var MouseToolDrawType = /*#__PURE__*/function (MouseToolDrawType) {\n MouseToolDrawType[MouseToolDrawType[\"MARKER\"] = 0] = \"MARKER\";\n MouseToolDrawType[MouseToolDrawType[\"POLYLINE\"] = 1] = \"POLYLINE\";\n MouseToolDrawType[MouseToolDrawType[\"POLYGON\"] = 2] = \"POLYGON\";\n MouseToolDrawType[MouseToolDrawType[\"CIRCLE\"] = 3] = \"CIRCLE\";\n MouseToolDrawType[MouseToolDrawType[\"RECTANGLE\"] = 4] = \"RECTANGLE\";\n MouseToolDrawType[MouseToolDrawType[\"MEASUREAREA\"] = 5] = \"MEASUREAREA\";\n MouseToolDrawType[MouseToolDrawType[\"RULE\"] = 6] = \"RULE\";\n MouseToolDrawType[MouseToolDrawType[\"RECTZOOMIN\"] = 7] = \"RECTZOOMIN\";\n MouseToolDrawType[MouseToolDrawType[\"RECTZOOMOUT\"] = 8] = \"RECTZOOMOUT\";\n return MouseToolDrawType;\n}({});\nexport var MouseTool = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n active,\n type,\n drawElementOptions,\n ifClear\n } = props;\n var {\n map\n } = useMapContext();\n var [mouseTool, setMouseTool] = useState();\n useImperativeHandle(ref, () => _extends({}, props, {\n mouseTool: mouseTool\n }));\n useEffect(() => {\n if (map && !mouseTool && AMap && AMap.MouseTool) {\n var instance = new AMap.MouseTool(map);\n setMouseTool(instance);\n }\n }, [map, Map, AMap.MouseTool]);\n useEffect(() => {\n if (!mouseTool) {\n return;\n }\n if (!active) {\n mouseTool.close(ifClear);\n } else {\n switch (type) {\n case MouseToolDrawType.MARKER:\n mouseTool.marker(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.POLYLINE:\n mouseTool.polyline(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.POLYGON:\n mouseTool.polygon(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.CIRCLE:\n mouseTool.circle(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RECTANGLE:\n mouseTool.rectangle(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.MEASUREAREA:\n mouseTool.measureArea(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RULE:\n mouseTool.rule(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RECTZOOMIN:\n mouseTool.rectZoomIn(drawElementOptions ? drawElementOptions : {});\n break;\n case MouseToolDrawType.RECTZOOMOUT:\n mouseTool.rectZoomOut(drawElementOptions ? drawElementOptions : {});\n break;\n }\n }\n }, [active, ifClear]);\n useEventProperties(mouseTool, props, ['onDraw']);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useRectangle = function useRectangle(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n map\n } = useMapContext();\n var [rectangle, setRectangle] = useState();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!rectangle) {\n var instance = new AMap.Rectangle(_extends({}, other));\n map.add(instance);\n setRectangle(instance);\n return () => {\n if (instance) {\n if (AMap.v) {\n map && map.remove(instance);\n } else {\n // 暂不使用这个 API,这个不兼容 v1.4.xx,改用 map.remove API\n map && map.removeLayer(instance);\n }\n setRectangle(undefined);\n }\n };\n }\n }, [map]);\n useVisiable(rectangle, visiable);\n useSettingProperties(rectangle, props, ['Bounds', 'Options', 'Map', 'ExtData']);\n useEventProperties(rectangle, props, ['onHide', 'onShow', 'onClick', 'onDblClick', 'onRightClick', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onMouseDown', 'onTouchEnd', 'onTouchMove', 'onTouchStart']);\n return {\n rectangle,\n setRectangle\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useRectangle } from './useRectangle';\nexport * from './useRectangle';\nexport var Rectangle = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n rectangle\n } = useRectangle(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n rectangle\n }));\n return null;\n});","var _importedScript = {};\n\n/**\n * load dependency by css tag\n */\nexport function requireCss(src, id) {\n if (id === void 0) {\n id = '_react_amap_css';\n }\n var headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n var dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n var script = document.createElement('link');\n script.type = 'text/css';\n script.rel = 'stylesheet';\n script.id = id;\n script.href = src;\n script.onerror = err => {\n headElement.removeChild(script);\n reject(new URIError(\"The css \" + src + \" is no accessible.\"));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}\n\n/**\n * load dependency by script tag\n */\nexport function requireScript(src, id) {\n if (id === void 0) {\n id = '_react_amap_plugin';\n }\n var headElement = document && (document.head || document.getElementsByTagName('head')[0]);\n var dom = document.getElementById(id);\n return new Promise((resolve, reject) => {\n if (!document || src in _importedScript || dom) {\n resolve();\n return;\n }\n var script = document.createElement('script');\n script.type = 'text/javascript';\n script.id = id;\n script.async = true;\n script.defer = true;\n script.src = src;\n script.onerror = err => {\n headElement.removeChild(script);\n reject(new URIError(\"The Script \" + src + \" is no accessible.\"));\n };\n script.onload = () => {\n _importedScript[src] = true;\n resolve();\n };\n headElement.appendChild(script);\n });\n}","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useScaleControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [scaleControl, setScaleControl] = useState();\n var {\n position,\n visiable,\n offset\n } = props;\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !scaleControl) {\n var instance;\n map.plugin(['AMap.Scale'], () => {\n instance = new AMap.Scale({\n offset: offset,\n position\n });\n map.addControl(instance);\n setScaleControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(scaleControl, visiable);\n return {\n scaleControl,\n setScaleControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useScaleControl } from './useScaleControl';\nexport * from './useScaleControl';\nexport var ScaleControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n scaleControl\n } = useScaleControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n scaleControl\n }), [scaleControl]);\n return null;\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"visiable\"];\nimport { useState, useEffect } from 'react';\nimport { useVisiable, useEventProperties, useSettingProperties, usePortal } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport var useText = function useText(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n visiable\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var [text, setText] = useState();\n var {\n map\n } = useMapContext();\n var {\n container,\n Portal\n } = usePortal();\n useEffect(() => {\n if (!AMap || !map) return;\n if (!text) {\n if (props.children) {\n other.text = container.innerHTML;\n }\n var instance = new AMap.Text(_extends({}, other));\n map.add(instance);\n setText(instance);\n return () => {\n if (instance) {\n instance.remove();\n setText(undefined);\n }\n };\n }\n }, [map]);\n useEffect(() => {\n if (text) {\n text.setText(props.children ? container.innerHTML : props.text || '');\n }\n }, [props.children, props.text, container, text]);\n useVisiable(text, visiable);\n useSettingProperties(text, props, ['Style', 'Title', 'Clickable', 'Draggable', 'Map', 'Position', 'Offset', 'Angle', 'zIndex', 'Top', 'Cursor', 'ExtData']);\n useEventProperties(text, props, ['onMoving', 'onTouchMove', 'onTouchEnd', 'onMoveaLong', 'onTouchStart', 'onMoveEnd', 'onClick', 'onDblClick', 'onRightClick', 'onMouseMove', 'onMouseOver', 'onMouseOut', 'onMouseDown', 'onMouseUp', 'onDragStart', 'onDragEnd', 'onDragging']);\n return {\n text,\n setText,\n TextPortal: Portal\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { forwardRef, useImperativeHandle } from 'react';\nimport { useText } from './useText';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport * from './useText';\nexport var Text = /*#__PURE__*/forwardRef((props, ref) => {\n var {\n text,\n TextPortal\n } = useText(_extends({}, props));\n useImperativeHandle(ref, () => _extends({}, props, {\n text\n }));\n if (!props.children) return null;\n return /*#__PURE__*/_jsx(TextPortal, {\n children: props.children\n });\n});","import { useEffect, useState } from 'react';\nimport { useVisiable } from '@uiw/react-amap-utils';\nimport { useMapContext } from '@uiw/react-amap-map';\nexport function useToolBarControl(props) {\n if (props === void 0) {\n props = {};\n }\n var [toolBarControl, setToolBarControl] = useState();\n var {\n position,\n visiable,\n offset\n } = props;\n var {\n map\n } = useMapContext();\n useEffect(() => {\n if (map && !toolBarControl) {\n var instance;\n map.plugin(['AMap.ToolBar'], () => {\n instance = new AMap.ToolBar({\n offset,\n position\n });\n map.addControl(instance);\n setToolBarControl(instance);\n });\n return () => {\n if (instance) {\n map.removeControl(instance);\n }\n };\n }\n }, [map]);\n useVisiable(toolBarControl, visiable);\n return {\n toolBarControl,\n setToolBarControl\n };\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useToolBarControl } from './useToolBarControl';\nexport * from './useToolBarControl';\nexport var ToolBarControl = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n toolBarControl\n } = useToolBarControl(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n toolBarControl\n }), [toolBarControl]);\n return null;\n});","import { useState, useMemo, useEffect } from 'react';\nexport var useWeather = function useWeather(props) {\n if (props === void 0) {\n props = {};\n }\n var {\n city = '',\n type = 'live',\n onComplete,\n onError\n } = props;\n var [weather, setWeather] = useState();\n var funName = type === 'live' ? 'getLive' : 'getForecast';\n function getData(instance) {\n if (type && city && /^(live|forecast)$/.test(type)) {\n instance[funName](city, (err, data) => {\n if (err && onError) {\n onError(err);\n } else if (data && onComplete) {\n onComplete(data);\n }\n });\n }\n }\n useEffect(() => {\n if (AMap && !weather) {\n var instance;\n AMap.plugin(['AMap.Weather'], () => {\n instance = new AMap.Weather();\n setWeather(instance);\n });\n return () => {\n if (instance) {\n setWeather(undefined);\n }\n };\n }\n }, []);\n useMemo(() => {\n if (weather && city && type) {\n getData(weather);\n }\n }, [weather, city, type]);\n return {\n weather,\n setWeather\n };\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { useImperativeHandle } from 'react';\nimport { useWeather } from './useWeather';\nexport * from './useWeather';\nexport var Weather = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n weather\n } = useWeather(props);\n useImperativeHandle(ref, () => _extends({}, props, {\n weather\n }));\n return null;\n});"],"names":["module","exports","m","a","b","AMapUI","push","p","Loca","r","Promise","all","h","c","f","plugins","e","length","d","indexOf","g","failed","notload","loading","version","l","document","body","head","k","createElement","type","src","onerror","onload","loaded","window","loadUI","split","slice","arguments","n","splice","appendChild","AMap","startsWith","key","Error","q","t","load","location","host","___onAPILoaded","then","join","plugin","reset","_excluded","APILoader","props","children","config","_objectWithoutPropertiesLoose","_useState","useState","_useState2","_slicedToArray","setLoaded","_useState3","_useState4","error","setError","useEffect","aKey","akey","akay","undefined","catch","err","_jsx","style","color","message","Fragment","usePortal","_React$useState","React","container","render","remove","portal","setPortal","ReactCreatePortal","elmm","_ref","createPortal","elm","unmountComponentAtNode","newPortal","Portal","useSetStatus","instance","propsName","forEach","name","eName","state","setState","status","getStatus","setStatus","_extends","_defineProperty","useVisiable","visiable","show","hide","usePrevious","value","ref","useRef","current","useEventProperties","eventName","eventHandle","toLocaleLowerCase","replace","on","off","useSettingProperties","vName","charAt","toLowerCase","_useState5","_useState6","useAutoComplete","autoComplete","setAutoComplete","v","Autocomplete","AutoComplete","useImperativeHandle","initialState","map","reducer","action","Context","dispatch","useMapContext","_useContext","useContext","useMap","other","obj","TypeError","_objectDestructuringEmpty","setMap","zoom","setZoom","setContainer","className","Map","clearInfoWindow","clearLimitBounds","clearMap","destroy","useMemo","center","setCenter","Provider","_useReducer","useReducer","_useReducer2","forwardRef","_useReducer3","_useReducer4","elmRef","_useMap","childs","Children","toArray","_jsxs","fontSize","width","height","child","isValidElement","cloneElement","useBezierCurve","bezierCurve","setBezierCurve","BezierCurve","add","removeLayer","useCircle","circle","setCircle","Circle","useCircleMarker","circleMarker","setCircleMarker","CircleMarker","useContextMenu","position","contextMenu","setContextMenu","ContextMenu","rightclick","open","lnglat","close","noop","useControlBarControl","_props","offset","controlBarControl","setControlBarControl","ControlBar","addControl","removeControl","Item","_props$text","text","_props$onClick","onClick","addItem","removeItem","ControlBarControl","useEllipse","ellipse","setEllipse","Ellipse","useGeolocation","_props$type","onComplete","onError","geolocation","setGeolocation","callback","result","Geolocation","test","funName","useHawkEyeControl","hawkEyeControl","setHawkEyeControl","HawkEye","HawkEyeControl","useInfoWindow","isOpen","setIsOpen","infoWindow","setInfoWindow","_usePortal","positionCenter","getCenter","content","InfoWindow","setContent","InfoWindowPortal","_useInfoWindow","useMapTypeControl","mapTypeControl","setMapTypeControl","_props$defaultType","defaultType","MapType","MapTypeControl","useTileLayer","tileLayer","setTileLayer","options","TileLayerType","ROADNET","TileLayer","RoadNet","SATELLITE","Satellite","TRAFFIC","Traffic","onAdded","onRemoved","useMarker","marker","setMarker","Marker","MarkerPortal","_useMarker","LabelMarker","_useLabelMarker","icon","_useMapContext","labelMarker","setLabelMarker","_v","initText","direction","fillColor","strokeColor","strokeWidth","initIcon","image","size","anchor","labelMarkersLayer","LabelsLayer","zooms","zIndex","collision","animation","_v2","_labelMarkersLayer","useLabelMarker","useMassMarks","_ref$opacity","opacity","_ref$zIndex","data","massMarks","setMassMarks","initStyle","url","Pixel","Size","MassMarks","clear","usePolygon","polygon","setPolygon","Polygon","setOptions","oProps","polyElement","PolygonEditor","active","setVisiable","polyEditor","setPolyEditor","onEnd","target","onAdd","PolyEditor","usePolyline","polyline","setPolyline","Polyline","PolylineEditor","MouseToolDrawType","MouseTool","drawElementOptions","ifClear","mouseTool","setMouseTool","MARKER","POLYLINE","POLYGON","CIRCLE","RECTANGLE","rectangle","MEASUREAREA","measureArea","RULE","rule","RECTZOOMIN","rectZoomIn","RECTZOOMOUT","rectZoomOut","useRectangle","setRectangle","Rectangle","_importedScript","requireCss","id","headElement","getElementsByTagName","dom","getElementById","resolve","reject","script","rel","href","removeChild","URIError","requireScript","async","defer","useScaleControl","scaleControl","setScaleControl","Scale","ScaleControl","useText","setText","innerHTML","Text","TextPortal","_useText","useToolBarControl","toolBarControl","setToolBarControl","ToolBar","ToolBarControl","useWeather","_props$city","city","weather","setWeather","Weather"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/main.6dd73f8f.js b/static/js/main.bbd0dd67.js similarity index 98% rename from static/js/main.6dd73f8f.js rename to static/js/main.bbd0dd67.js index 2708ccfb7..db08894e5 100644 --- a/static/js/main.6dd73f8f.js +++ b/static/js/main.bbd0dd67.js @@ -1,2 +1,2 @@ -!function(){"use strict";var e={8444:function(e,t,n){var r,a,l,o,i,c,p,d,u,f,b,h,s,m,g,v=n(8650),y=n(669),x=n(8573),k=n(623),w=n(3279),j=n(2864),P=n(3655),z=n(645),E=(n(6155),[{path:"/",exact:!0,component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(7365)]).then(n.bind(n,1147))}))},{path:"/api-loader",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(3034)]).then(n.bind(n,5749))}))},{path:"/map",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(4004)]).then(n.bind(n,2029))}))},{path:"/scale-control",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9606)]).then(n.bind(n,9209))}))},{path:"/tool-bar-control",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(2387)]).then(n.bind(n,4863))}))},{path:"/control-bar-control",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(3919)]).then(n.bind(n,1579))}))},{path:"/map-type-control",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(1899)]).then(n.bind(n,5287))}))},{path:"/tile-layer",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(5254)]).then(n.bind(n,962))}))},{path:"/hawk-eye-control",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(741)]).then(n.bind(n,6982))}))},{path:"/polyline",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(2577)]).then(n.bind(n,2340))}))},{path:"/polyline-editor",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(7911)]).then(n.bind(n,9877))}))},{path:"/marker",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(3885)]).then(n.bind(n,1704))}))},{path:"/mass-marks",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9559)]).then(n.bind(n,5386))}))},{path:"/label-marker",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9987)]).then(n.bind(n,1852))}))},{path:"/text",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(110)]).then(n.bind(n,4116))}))},{path:"/circle",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(3527)]).then(n.bind(n,308))}))},{path:"/ellipse",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(410)]).then(n.bind(n,259))}))},{path:"/rectangle",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(6627)]).then(n.bind(n,3257))}))},{path:"/beizer-curve",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9121)]).then(n.bind(n,1063))}))},{path:"/poly-editor",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9624)]).then(n.bind(n,2534))}))},{path:"/polygon",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(2085)]).then(n.bind(n,5501))}))},{path:"/polygon-editor",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(1432)]).then(n.bind(n,132))}))},{path:"/info-window",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(2937)]).then(n.bind(n,9564))}))},{path:"/circle-marker",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(6141)]).then(n.bind(n,6234))}))},{path:"/mouse-tool",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(6323)]).then(n.bind(n,4922))}))},{path:"/weather",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9426)]).then(n.bind(n,110))}))},{path:"/geolocation",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(19)]).then(n.bind(n,519))}))},{path:"/auto-complete",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(4215)]).then(n.bind(n,2712))}))},{path:"/context-menu",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(6382)]).then(n.bind(n,6104))}))},{path:"/require-script",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(9759)]).then(n.bind(n,8862))}))},{path:"/types",component:(0,x.lazy)((function(){return Promise.all([n.e(6137),n.e(9438),n.e(177),n.e(658),n.e(5761)]).then(n.bind(n,9014))}))}]),_=[{label:"\u5feb\u901f\u5f00\u59cb",path:"/"},{label:"\u56fd\u5185\u955c\u50cf \ud83c\udde8\ud83c\uddf3",target:"__blank",path:"https://uiw.gitee.io/react-amap"},{divider:!0,label:"\u5bb9\u5668"},{label:"APILoader \u7ec4\u4ef6",path:"/api-loader"},{label:"Map \u7ec4\u4ef6",path:"/map"},{divider:!0,label:"\u63a7\u4ef6"},{label:"ScaleControl \u6bd4\u4f8b\u5c3a\u63a7\u4ef6",path:"/scale-control"},{label:"ToolBarControl \u7f29\u653e\u5de5\u5177\u6761",path:"/tool-bar-control"},{label:"MapTypeControl \u56fe\u5c42\u5207\u6362",path:"/map-type-control"},{label:"TileLayer \u5207\u7247\u56fe\u5c42",path:"/tile-layer"},{label:"ControlBarControl \u5730\u56fe\u63a7\u4ef6",path:"/control-bar-control"},{label:"HawkEyeControl \u9e70\u773c\u63a7\u4ef6",path:"/hawk-eye-control"},{divider:!0,label:"\u70b9\u6807\u8bb0"},{label:"Marker \u70b9\u6807\u8bb0",path:"/marker"},{label:"MassMarks \u6d77\u91cf\u70b9\u6807\u8bb0",path:"/mass-marks"},{label:"Text \u6587\u672c\u6807\u8bb0",path:"/text"},{label:"LabelMarker \u6807\u6ce8\u7c7b",path:"/label-marker"},{divider:!0,label:"\u77e2\u91cf\u56fe\u5f62"},{label:"Polygon \u591a\u8fb9\u5f62",path:"/polygon"},{label:"PolygonEditor \u7f16\u8f91\u5668",path:"/polygon-editor"},{label:"Polyline \u6298\u7ebf",path:"/polyline"},{label:"PolylineEditor \u6298\u7ebf\u7f16\u8f91\u5668",path:"/polyline-editor"},{label:"PolyEditor \u7f16\u8f91\u5668",path:"/poly-editor"},{label:"MouseTool \u7ed8\u5236\u5de5\u5177",path:"/mouse-tool"},{label:"BesizerCurve \u8d1d\u585e\u5c14\u66f2\u7ebf",path:"/beizer-curve"},{label:"Circle \u5706\u5f62",path:"/circle"},{label:"CircleMarker \u5706\u70b9\u6807\u8bb0",path:"/circle-marker"},{label:"Ellipse \u5706\u5f62\u7ec4\u4ef6",path:"/ellipse"},{label:"Rectangle \u77e9\u5f62",path:"/rectangle"},{divider:!0,label:"\u4fe1\u606f\u7a97\u4f53"},{label:"InfoWindow \u4fe1\u606f\u7a97\u4f53",path:"/info-window"},{divider:!0,label:"\u53f3\u952e\u83dc\u5355"},{label:"ContextMenu \u53f3\u952e\u83dc\u5355",path:"/context-menu"},{divider:!0,label:"\u5de5\u5177"},{label:"Require Script",path:"/require-script"},{divider:!0,label:"\u670d\u52a1"},{label:"Weather \u5929\u6c14\u67e5\u8be2\u670d\u52a1",path:"/weather"},{label:"Geolocation \u5b9a\u4f4d",path:"/geolocation"},{divider:!0,label:"\u641c\u7d22"},{label:"AutoComplete \u8f93\u5165\u63d0\u793a",path:"/auto-complete"},{divider:!0,label:"\u5176\u5b83"},{label:"\u9ad8\u5fb7\u5730\u56fe API \u7c7b\u578b types \u5b9a\u4e49",path:"/types"},{label:"\u9ad8\u5fb7\u62fe\u53d6\u5750\u6807\u7cfb\u7edf",target:"__blank",path:"https://lbs.amap.com/console/show/picker"},{label:"\u5b98\u65b9\u793a\u4f8b\u4e2d\u5fc3",target:"__blank",path:"https://lbs.amap.com/demo-center/jsapi-v2"},{label:"\u9ad8\u5fb7\u5730\u56fe JSAPI 2.0",target:"__blank",path:"https://a.amap.com/jsapi/static/doc/index.html"},{label:"AMapUI \u7ec4\u4ef6\u5e93",target:"__blank",path:"https://lbs.amap.com/api/amap-ui/intro"},{label:"\u6e90\u7801 Github \u4ed3\u5e93",target:"__blank",path:"https://github.com/uiwjs/react-amap"},{label:"\u6e90\u7801 Gitee \u4ed3\u5e93",target:"__blank",path:"https://gitee.com/uiw/react-amap"},{divider:!0,label:"\u76f8\u5173\u8fde\u63a5"},{label:"\u767e\u5ea6\u5730\u56fe React \u7ec4\u4ef6",target:"__blank",path:"https://uiwjs.github.io/react-baidu-map/"},{label:"React Web \u7ec4\u4ef6\u5e93",target:"__blank",path:"https://uiwjs.github.io/"},{label:"React Native \u7ec4\u4ef6\u5e93",target:"__blank",path:"https://uimjs.github.io/"}],O=n(189),M=n(3782),C=["title","titleId"];function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Z(e,t){var n=e.title,v=e.titleId,y=A(e,C);return x.createElement("svg",F({viewBox:"0 0 1024 1024",width:42,height:42,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":v},y),n?x.createElement("title",{id:v},n):null,r||(r=x.createElement("path",{d:"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z",fill:"#F1F1F1"})),a||(a=x.createElement("path",{d:"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z",fill:"#AFE881"})),l||(l=x.createElement("path",{d:"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z",fill:"#A3CAFF"})),o||(o=x.createElement("path",{d:"M0 408.560849V315.471035h1023.98795v93.089814z",fill:"#FFFFFF"})),i||(i=x.createElement("path",{d:"M620.097107 1023.998293V0h78.102354v1023.998293z",fill:"#FFFFFF"})),c||(c=x.createElement("path",{d:"M0 796.435072v-124.119751h1023.98795v124.119751z",fill:"#FFDF48"})),p||(p=x.createElement("path",{d:"M206.866253 1023.998293V0h155.149689v1023.998293z",fill:"#FFCF68"})),d||(d=x.createElement("path",{d:"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z",fill:"#D6D7D4"})),u||(u=x.createElement("path",{d:"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z",fill:"#E5BA5E"})),f||(f=x.createElement("path",{d:"M392.663177 796.435072h209.545171l-141.263792-62.059876z",fill:"#E4C84A"})),b||(b=x.createElement("path",{d:"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z",fill:"#D6D7D4"})),h||(h=x.createElement("path",{d:"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z",fill:"#E7E7E8"})),s||(s=x.createElement("path",{d:"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z",fill:"#0066BD"})),m||(m=x.createElement("path",{d:"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z",fill:"#014E9D"})),g||(g=x.createElement("path",{d:"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z",fill:"#0093FD"})))}var L,S,T,D,B,I,N=x.forwardRef(Z),V=(n.p,n(4760)),H=["label","path","divider"],R=z.ZP.div(L||(L=(0,y.Z)(["\n width: 250px;\n height: 100%;\n overflow: auto;\n position: fixed;\n background: #202225;\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 10px;\n height: 10px;\n }\n &::-webkit-scrollbar-thumb {\n cursor: pointer;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.25);\n transition: color 0.2s ease;\n }\n &::-webkit-scrollbar-track {\n background: rgba(255, 255, 255, 0.1);\n border-radius: 0;\n }\n a {\n color: #dcdcdc;\n display: block;\n padding: 8px 10px 8px 15px;\n text-decoration: none;\n display: flex;\n justify-content: space-between;\n > svg {\n fill: #888;\n }\n &:hover {\n text-decoration: underline;\n color: #eaeaea;\n background-color: #3e3e3e;\n }\n &:global(.active) {\n text-decoration: underline;\n background: #333;\n color: #fff;\n }\n }\n"]))),q=z.ZP.div(S||(S=(0,y.Z)(["\n padding: 18px 0 20px 0;\n margin-bottom: 6px;\n color: #fff;\n text-align: center;\n border-bottom: 1px solid rgba(255, 255, 255, 0.12);\n svg {\n margin-bottom: 10px;\n }\n sup {\n color: #6f6f6f;\n margin-left: 5px;\n margin-top: -5px;\n position: absolute;\n }\n"]))),W=z.ZP.div(T||(T=(0,y.Z)(["\n padding-bottom: 20px;\n .divider {\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n }\n"]))),G=z.ZP.div(D||(D=(0,y.Z)(["\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n"])));function U(){return(0,V.jsxs)(R,{children:[(0,V.jsxs)(q,{children:[(0,V.jsx)(N,{}),(0,V.jsxs)("div",{children:["\u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6",(0,V.jsx)("sup",{children:"5.0.8"})]})]}),(0,V.jsx)(W,{children:_.map((function(e,t){var n=e.label,r=e.path,a=e.divider,l=(0,M.Z)(e,H);return a?(0,V.jsx)(G,{children:n},t):r&&/^http/.test(r)?(0,V.jsxs)("a",(0,O.Z)((0,O.Z)({href:r,target:"__blank"},l),{},{children:[n,(0,V.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,V.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,V.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]}),t):(0,V.jsx)(k.OL,{to:r||"",children:n},t)}))})]})}var J=z.ZP.div(B||(B=(0,y.Z)(["\n width: 100%;\n height: 500px;\n"]))),K=z.ZP.div(I||(I=(0,y.Z)(["\n margin-left: 250px;\n"]))),X=(0,V.jsx)("div",{style:{padding:30},children:(0,V.jsx)(P.Z,{tip:"loading..."})});function Q(){return(0,V.jsx)(k.UT,{children:(0,V.jsxs)(J,{children:[(0,V.jsx)(j.Z,{fixed:!0,zIndex:99,size:60,target:"__blank",href:"https://github.com/uiwjs/react-amap"}),(0,V.jsx)(U,{}),(0,V.jsxs)(K,{children:[(0,V.jsx)("dark-mode",{permanent:!0,light:"Light",dark:"Dark",style:{marginLeft:16,top:12,position:"relative"}}),(0,V.jsx)(w.Z5,{children:E.map((function(e,t){var n=e.component,r=e.path,a=n;return(0,V.jsx)(w.AW,{path:r,element:(0,V.jsx)(x.Suspense,{fallback:X,children:(0,V.jsx)(a,{})})},t)}))})]})]})})}var Y=document.getElementById("root");(0,v.s)(Y).render((0,V.jsx)(Q,{}))}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.m=e,function(){var e=[];n.O=function(t,r,a,l){if(!r){var o=1/0;for(d=0;d=l)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(i=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,a,l]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var l=Object.create(null);n.r(l);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){o[e]=function(){return r[e]}}));return o.default=function(){return r},n.d(l,o),l}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+({177:"micromark-vendor",6137:"refractor-prismjs-vendor",9438:"parse5-vendor"}[e]||e)+"."+{19:"7d9adbdf",96:"17626b7a",110:"aa7de6e9",177:"73df6cf1",410:"6b4389d1",643:"ba91b576",658:"9e987835",741:"99ae6856",837:"7768b398",882:"b4e88d35",1259:"90afee00",1285:"c012d81a",1432:"49a1d805",1899:"03a3726e",2085:"ccb0a5a5",2097:"6c0d24b7",2156:"7c904b42",2166:"6d6979b4",2196:"8a39ea67",2387:"18642fe8",2528:"4c205083",2577:"4be3256b",2673:"9da27a67",2937:"ca762130",3025:"3a615311",3034:"e2fff638",3527:"732635dd",3559:"4c982ab0",3727:"122c854f",3885:"7c849b53",3919:"99af9f81",4004:"f4a9c51e",4215:"9aab7851",4290:"861bb548",4702:"3106727c",4753:"71532b3b",4930:"05f0f73c",5254:"fc2fa12a",5409:"a76d74bd",5516:"8260e620",5531:"ab6bc09c",5761:"f774855c",5775:"4a5d7cbf",5828:"bd721cc3",6090:"88b48848",6137:"653ee587",6141:"0dd8b110",6220:"c93c4325",6323:"1635b109",6382:"0a622b10",6627:"80f0a64a",7359:"b3b8a913",7365:"f4a91d19",7865:"a0b8cdd0",7911:"ec5a3199",9121:"695e36da",9345:"f276a6de",9426:"e13ffd90",9438:"ffd5b4fb",9467:"7c7aabe0",9559:"0cbd8e10",9603:"070f3d6c",9606:"9cbe2eb2",9624:"4c580ae4",9759:"1ae4b3dc",9973:"3ef2b39a",9987:"fcbd3fa8"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+"."+{19:"bf0e21c2",110:"bf0e21c2",410:"bf0e21c2",741:"bf0e21c2",1432:"bf0e21c2",1899:"453962f9",2085:"bf0e21c2",2387:"bf0e21c2",2577:"bf0e21c2",2937:"bf0e21c2",3034:"bf0e21c2",3527:"bf0e21c2",3885:"bf0e21c2",3919:"bf0e21c2",4004:"bf0e21c2",4215:"bf0e21c2",5254:"a8bb3b2e",5761:"bf0e21c2",6141:"bf0e21c2",6323:"bf0e21c2",6382:"bf0e21c2",6627:"bf0e21c2",7365:"bf0e21c2",7911:"bf0e21c2",9121:"bf0e21c2",9426:"bf0e21c2",9559:"bf0e21c2",9606:"bf0e21c2",9624:"bf0e21c2",9759:"bf0e21c2",9987:"bf0e21c2"}[e]+".chunk.css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="website:";n.l=function(r,a,l,o){if(e[r])e[r].push(a);else{var i,c;if(void 0!==l)for(var p=document.getElementsByTagName("script"),d=0;d=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Z(e,t){var n=e.title,v=e.titleId,y=A(e,C);return x.createElement("svg",F({viewBox:"0 0 1024 1024",width:42,height:42,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",ref:t,"aria-labelledby":v},y),n?x.createElement("title",{id:v},n):null,r||(r=x.createElement("path",{d:"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z",fill:"#F1F1F1"})),a||(a=x.createElement("path",{d:"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z",fill:"#AFE881"})),l||(l=x.createElement("path",{d:"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z",fill:"#A3CAFF"})),o||(o=x.createElement("path",{d:"M0 408.560849V315.471035h1023.98795v93.089814z",fill:"#FFFFFF"})),i||(i=x.createElement("path",{d:"M620.097107 1023.998293V0h78.102354v1023.998293z",fill:"#FFFFFF"})),c||(c=x.createElement("path",{d:"M0 796.435072v-124.119751h1023.98795v124.119751z",fill:"#FFDF48"})),p||(p=x.createElement("path",{d:"M206.866253 1023.998293V0h155.149689v1023.998293z",fill:"#FFCF68"})),d||(d=x.createElement("path",{d:"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z",fill:"#D6D7D4"})),u||(u=x.createElement("path",{d:"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z",fill:"#E5BA5E"})),f||(f=x.createElement("path",{d:"M392.663177 796.435072h209.545171l-141.263792-62.059876z",fill:"#E4C84A"})),b||(b=x.createElement("path",{d:"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z",fill:"#D6D7D4"})),h||(h=x.createElement("path",{d:"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z",fill:"#E7E7E8"})),s||(s=x.createElement("path",{d:"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z",fill:"#0066BD"})),m||(m=x.createElement("path",{d:"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z",fill:"#014E9D"})),g||(g=x.createElement("path",{d:"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z",fill:"#0093FD"})))}var L,S,T,D,B,I,N=x.forwardRef(Z),V=(n.p,n(4760)),H=["label","path","divider"],R=z.ZP.div(L||(L=(0,y.Z)(["\n width: 250px;\n height: 100%;\n overflow: auto;\n position: fixed;\n background: #202225;\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 10px;\n height: 10px;\n }\n &::-webkit-scrollbar-thumb {\n cursor: pointer;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.25);\n transition: color 0.2s ease;\n }\n &::-webkit-scrollbar-track {\n background: rgba(255, 255, 255, 0.1);\n border-radius: 0;\n }\n a {\n color: #dcdcdc;\n display: block;\n padding: 8px 10px 8px 15px;\n text-decoration: none;\n display: flex;\n justify-content: space-between;\n > svg {\n fill: #888;\n }\n &:hover {\n text-decoration: underline;\n color: #eaeaea;\n background-color: #3e3e3e;\n }\n &:global(.active) {\n text-decoration: underline;\n background: #333;\n color: #fff;\n }\n }\n"]))),q=z.ZP.div(S||(S=(0,y.Z)(["\n padding: 18px 0 20px 0;\n margin-bottom: 6px;\n color: #fff;\n text-align: center;\n border-bottom: 1px solid rgba(255, 255, 255, 0.12);\n svg {\n margin-bottom: 10px;\n }\n sup {\n color: #6f6f6f;\n margin-left: 5px;\n margin-top: -5px;\n position: absolute;\n }\n"]))),W=z.ZP.div(T||(T=(0,y.Z)(["\n padding-bottom: 20px;\n .divider {\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n }\n"]))),G=z.ZP.div(D||(D=(0,y.Z)(["\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n"])));function U(){return(0,V.jsxs)(R,{children:[(0,V.jsxs)(q,{children:[(0,V.jsx)(N,{}),(0,V.jsxs)("div",{children:["\u9ad8\u5fb7\u5730\u56fe React \u7ec4\u4ef6",(0,V.jsx)("sup",{children:"5.0.9"})]})]}),(0,V.jsx)(W,{children:_.map((function(e,t){var n=e.label,r=e.path,a=e.divider,l=(0,M.Z)(e,H);return a?(0,V.jsx)(G,{children:n},t):r&&/^http/.test(r)?(0,V.jsxs)("a",(0,O.Z)((0,O.Z)({href:r,target:"__blank"},l),{},{children:[n,(0,V.jsxs)("svg",{viewBox:"0 0 1024 1024",width:14,children:[(0,V.jsx)("path",{d:"M821.1456 276.8384c-235.9296 25.1392-449.1776 226.7136-490.5472 452.352a38.4 38.4 0 1 1-75.5712-13.824c45.568-248.576 269.312-468.48 526.6944-510.6688l-117.8112-69.1712a38.4 38.4 0 0 1 38.912-66.2528l223.3344 131.1744a38.4 38.4 0 0 1 10.1376 57.6l-170.752 206.6432a38.4 38.4 0 1 1-59.1872-48.9472l114.7904-138.9056z"}),(0,V.jsx)("path",{d:"M832 620.0832a38.4 38.4 0 0 1 76.8 0v158.208c0 85.9648-61.5936 157.8496-140.8 157.8496H204.8c-79.2064 0-140.8-71.8848-140.8-157.9008V300.3904c0-86.016 61.5936-157.8496 140.8-157.8496h220.2112a38.4 38.4 0 1 1 0 76.8H204.8c-33.8944 0-64 35.072-64 81.0496V778.24c0 45.9776 30.1056 81.1008 64 81.1008h563.2c33.8944 0 64-35.1232 64-81.1008v-158.1568z"})]})]}),t):(0,V.jsx)(k.OL,{to:r||"",children:n},t)}))})]})}var J=z.ZP.div(B||(B=(0,y.Z)(["\n width: 100%;\n height: 500px;\n"]))),K=z.ZP.div(I||(I=(0,y.Z)(["\n margin-left: 250px;\n"]))),X=(0,V.jsx)("div",{style:{padding:30},children:(0,V.jsx)(P.Z,{tip:"loading..."})});function Q(){return(0,V.jsx)(k.UT,{children:(0,V.jsxs)(J,{children:[(0,V.jsx)(j.Z,{fixed:!0,zIndex:99,size:60,target:"__blank",href:"https://github.com/uiwjs/react-amap"}),(0,V.jsx)(U,{}),(0,V.jsxs)(K,{children:[(0,V.jsx)("dark-mode",{permanent:!0,light:"Light",dark:"Dark",style:{marginLeft:16,top:12,position:"relative"}}),(0,V.jsx)(w.Z5,{children:E.map((function(e,t){var n=e.component,r=e.path,a=n;return(0,V.jsx)(w.AW,{path:r,element:(0,V.jsx)(x.Suspense,{fallback:X,children:(0,V.jsx)(a,{})})},t)}))})]})]})})}var Y=document.getElementById("root");(0,v.s)(Y).render((0,V.jsx)(Q,{}))}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.m=e,function(){var e=[];n.O=function(t,r,a,l){if(!r){var o=1/0;for(d=0;d=l)&&Object.keys(n.O).every((function(e){return n.O[e](r[c])}))?r.splice(c--,1):(i=!1,l0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,a,l]}}(),n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var l=Object.create(null);n.r(l);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&a&&r;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((function(e){o[e]=function(){return r[e]}}));return o.default=function(){return r},n.d(l,o),l}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+({177:"micromark-vendor",6137:"refractor-prismjs-vendor",9438:"parse5-vendor"}[e]||e)+"."+{19:"7d9adbdf",96:"17626b7a",110:"aa7de6e9",177:"73df6cf1",410:"6b4389d1",643:"ba91b576",658:"9e987835",741:"99ae6856",837:"7768b398",882:"b4e88d35",1259:"90afee00",1285:"c012d81a",1432:"49a1d805",1899:"03a3726e",2085:"ccb0a5a5",2097:"6c0d24b7",2156:"7c904b42",2166:"6d6979b4",2196:"8a39ea67",2387:"18642fe8",2528:"4c205083",2577:"4be3256b",2673:"9da27a67",2937:"ca762130",3025:"3a615311",3034:"e2fff638",3527:"732635dd",3559:"4c982ab0",3727:"122c854f",3885:"7c849b53",3919:"99af9f81",4004:"f4a9c51e",4215:"9aab7851",4290:"861bb548",4702:"f6787a44",4753:"71532b3b",4930:"05f0f73c",5254:"fc2fa12a",5409:"a76d74bd",5516:"8260e620",5531:"ab6bc09c",5761:"f774855c",5775:"b3985d06",5828:"bd721cc3",6090:"88b48848",6137:"653ee587",6141:"0dd8b110",6220:"c93c4325",6323:"1635b109",6382:"0a622b10",6627:"80f0a64a",7359:"b3b8a913",7365:"f4a91d19",7865:"a0b8cdd0",7911:"ec5a3199",9121:"695e36da",9345:"f276a6de",9426:"e13ffd90",9438:"ffd5b4fb",9467:"7c7aabe0",9559:"0cbd8e10",9603:"070f3d6c",9606:"9cbe2eb2",9624:"4c580ae4",9759:"1ae4b3dc",9973:"3ef2b39a",9987:"fcbd3fa8"}[e]+".chunk.js"},n.miniCssF=function(e){return"static/css/"+e+"."+{19:"bf0e21c2",110:"bf0e21c2",410:"bf0e21c2",741:"bf0e21c2",1432:"bf0e21c2",1899:"453962f9",2085:"bf0e21c2",2387:"bf0e21c2",2577:"bf0e21c2",2937:"bf0e21c2",3034:"bf0e21c2",3527:"bf0e21c2",3885:"bf0e21c2",3919:"bf0e21c2",4004:"bf0e21c2",4215:"bf0e21c2",5254:"a8bb3b2e",5761:"bf0e21c2",6141:"bf0e21c2",6323:"bf0e21c2",6382:"bf0e21c2",6627:"bf0e21c2",7365:"bf0e21c2",7911:"bf0e21c2",9121:"bf0e21c2",9426:"bf0e21c2",9559:"bf0e21c2",9606:"bf0e21c2",9624:"bf0e21c2",9759:"bf0e21c2",9987:"bf0e21c2"}[e]+".chunk.css"},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="website:";n.l=function(r,a,l,o){if(e[r])e[r].push(a);else{var i,c;if(void 0!==l)for(var p=document.getElementsByTagName("script"),d=0;d= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgLogo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 1024 1024\",\n width: 42,\n height: 42,\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z\",\n fill: \"#F1F1F1\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z\",\n fill: \"#AFE881\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z\",\n fill: \"#A3CAFF\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 408.560849V315.471035h1023.98795v93.089814z\",\n fill: \"#FFFFFF\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 1023.998293V0h78.102354v1023.998293z\",\n fill: \"#FFFFFF\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 796.435072v-124.119751h1023.98795v124.119751z\",\n fill: \"#FFDF48\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M206.866253 1023.998293V0h155.149689v1023.998293z\",\n fill: \"#FFCF68\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z\",\n fill: \"#D6D7D4\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z\",\n fill: \"#E5BA5E\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M392.663177 796.435072h209.545171l-141.263792-62.059876z\",\n fill: \"#E4C84A\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z\",\n fill: \"#D6D7D4\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z\",\n fill: \"#E7E7E8\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z\",\n fill: \"#0066BD\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z\",\n fill: \"#014E9D\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z\",\n fill: \"#0093FD\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogo);\nexport default __webpack_public_path__ + \"static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg\";\nexport { ForwardRef as ReactComponent };","import { lazy } from 'react';\n\nexport const routes = [\n {\n path: '/',\n exact: true,\n component: lazy(() => import('./pages/home')),\n },\n {\n path: '/api-loader',\n component: lazy(() => import('./pages/api-loader')),\n },\n {\n path: '/map',\n component: lazy(() => import('./pages/map')),\n },\n {\n path: '/scale-control',\n component: lazy(() => import('./pages/scale-control')),\n },\n {\n path: '/tool-bar-control',\n component: lazy(() => import('./pages/tool-bar-control')),\n },\n {\n path: '/control-bar-control',\n component: lazy(() => import('./pages/control-bar-control')),\n },\n {\n path: '/map-type-control',\n component: lazy(() => import('./pages/map-type-control')),\n },\n {\n path: '/tile-layer',\n component: lazy(() => import('./pages/tile-layer')),\n },\n {\n path: '/hawk-eye-control',\n component: lazy(() => import('./pages/hawk-eye-control')),\n },\n {\n path: '/polyline',\n component: lazy(() => import('./pages/polyline')),\n },\n {\n path: '/polyline-editor',\n component: lazy(() => import('./pages/polyline-editor')),\n },\n {\n path: '/marker',\n component: lazy(() => import('./pages/marker')),\n },\n {\n path: '/mass-marks',\n component: lazy(() => import('./pages/mass-marks')),\n },\n {\n path: '/label-marker',\n component: lazy(() => import('./pages/label-marker')),\n },\n {\n path: '/text',\n component: lazy(() => import('./pages/text')),\n },\n {\n path: '/circle',\n component: lazy(() => import('./pages/circle')),\n },\n {\n path: '/ellipse',\n component: lazy(() => import('./pages/ellipse')),\n },\n {\n path: '/rectangle',\n component: lazy(() => import('./pages/rectangle')),\n },\n {\n path: '/beizer-curve',\n component: lazy(() => import('./pages/beizer-curve')),\n },\n {\n path: '/poly-editor',\n component: lazy(() => import('./pages/poly-editor')),\n },\n {\n path: '/polygon',\n component: lazy(() => import('./pages/polygon')),\n },\n {\n path: '/polygon-editor',\n component: lazy(() => import('./pages/polygon-editor')),\n },\n {\n path: '/info-window',\n component: lazy(() => import('./pages/info-window')),\n },\n {\n path: '/circle-marker',\n component: lazy(() => import('./pages/circle-marker')),\n },\n {\n path: '/mouse-tool',\n component: lazy(() => import('./pages/mouse-tool')),\n },\n {\n path: '/weather',\n component: lazy(() => import('./pages/weather')),\n },\n {\n path: '/geolocation',\n component: lazy(() => import('./pages/geolocation')),\n },\n {\n path: '/auto-complete',\n component: lazy(() => import('./pages/auto-complete')),\n },\n {\n path: '/context-menu',\n component: lazy(() => import('./pages/context-menu')),\n },\n {\n path: '/require-script',\n component: lazy(() => import('./pages/require-script')),\n },\n {\n path: '/types',\n component: lazy(() => import('./pages/types')),\n },\n];\n\nexport const menus = [\n {\n label: '快速开始',\n path: '/',\n },\n {\n label: '国内镜像 🇨🇳',\n target: '__blank',\n path: 'https://uiw.gitee.io/react-amap',\n },\n {\n divider: true,\n label: '容器',\n },\n {\n label: 'APILoader 组件',\n path: '/api-loader',\n },\n {\n label: 'Map 组件',\n path: '/map',\n },\n {\n divider: true,\n label: '控件',\n },\n {\n label: 'ScaleControl 比例尺控件',\n path: '/scale-control',\n },\n {\n label: 'ToolBarControl 缩放工具条',\n path: '/tool-bar-control',\n },\n {\n label: 'MapTypeControl 图层切换',\n path: '/map-type-control',\n },\n {\n label: 'TileLayer 切片图层',\n path: '/tile-layer',\n },\n {\n label: 'ControlBarControl 地图控件',\n path: '/control-bar-control',\n },\n {\n label: 'HawkEyeControl 鹰眼控件',\n path: '/hawk-eye-control',\n },\n {\n divider: true,\n label: '点标记',\n },\n {\n label: 'Marker 点标记',\n path: '/marker',\n },\n {\n label: 'MassMarks 海量点标记',\n path: '/mass-marks',\n },\n {\n label: 'Text 文本标记',\n path: '/text',\n },\n {\n label: 'LabelMarker 标注类',\n path: '/label-marker',\n },\n {\n divider: true,\n label: '矢量图形',\n },\n {\n label: 'Polygon 多边形',\n path: '/polygon',\n },\n {\n label: 'PolygonEditor 编辑器',\n path: '/polygon-editor',\n },\n {\n label: 'Polyline 折线',\n path: '/polyline',\n },\n {\n label: 'PolylineEditor 折线编辑器',\n path: '/polyline-editor',\n },\n {\n label: 'PolyEditor 编辑器',\n path: '/poly-editor',\n },\n {\n label: 'MouseTool 绘制工具',\n path: '/mouse-tool',\n },\n {\n label: 'BesizerCurve 贝塞尔曲线',\n path: '/beizer-curve',\n },\n {\n label: 'Circle 圆形',\n path: '/circle',\n },\n {\n label: 'CircleMarker 圆点标记',\n path: '/circle-marker',\n },\n {\n label: 'Ellipse 圆形组件',\n path: '/ellipse',\n },\n {\n label: 'Rectangle 矩形',\n path: '/rectangle',\n },\n {\n divider: true,\n label: '信息窗体',\n },\n {\n label: 'InfoWindow 信息窗体',\n path: '/info-window',\n },\n {\n divider: true,\n label: '右键菜单',\n },\n {\n label: 'ContextMenu 右键菜单',\n path: '/context-menu',\n },\n {\n divider: true,\n label: '工具',\n },\n {\n label: 'Require Script',\n path: '/require-script',\n },\n {\n divider: true,\n label: '服务',\n },\n {\n label: 'Weather 天气查询服务',\n path: '/weather',\n },\n {\n label: 'Geolocation 定位',\n path: '/geolocation',\n },\n {\n divider: true,\n label: '搜索',\n },\n {\n label: 'AutoComplete 输入提示',\n path: '/auto-complete',\n },\n {\n divider: true,\n label: '其它',\n },\n {\n label: '高德地图 API 类型 types 定义',\n path: '/types',\n },\n {\n label: '高德拾取坐标系统',\n target: '__blank',\n path: 'https://lbs.amap.com/console/show/picker',\n },\n {\n label: '官方示例中心',\n target: '__blank',\n path: 'https://lbs.amap.com/demo-center/jsapi-v2',\n },\n {\n label: '高德地图 JSAPI 2.0',\n target: '__blank',\n path: 'https://a.amap.com/jsapi/static/doc/index.html',\n },\n {\n label: 'AMapUI 组件库',\n target: '__blank',\n path: 'https://lbs.amap.com/api/amap-ui/intro',\n },\n {\n label: '源码 Github 仓库',\n target: '__blank',\n path: 'https://github.com/uiwjs/react-amap',\n },\n {\n label: '源码 Gitee 仓库',\n target: '__blank',\n path: 'https://gitee.com/uiw/react-amap',\n },\n {\n divider: true,\n label: '相关连接',\n },\n {\n label: '百度地图 React 组件',\n target: '__blank',\n path: 'https://uiwjs.github.io/react-baidu-map/',\n },\n {\n label: 'React Web 组件库',\n target: '__blank',\n path: 'https://uiwjs.github.io/',\n },\n {\n label: 'React Native 组件库',\n target: '__blank',\n path: 'https://uimjs.github.io/',\n },\n];\n","import { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { menus } from '../../router';\nimport { ReactComponent as Logo } from './logo.svg';\n\nconst Side = styled.div`\n width: 250px;\n height: 100%;\n overflow: auto;\n position: fixed;\n background: #202225;\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 10px;\n height: 10px;\n }\n &::-webkit-scrollbar-thumb {\n cursor: pointer;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.25);\n transition: color 0.2s ease;\n }\n &::-webkit-scrollbar-track {\n background: rgba(255, 255, 255, 0.1);\n border-radius: 0;\n }\n a {\n color: #dcdcdc;\n display: block;\n padding: 8px 10px 8px 15px;\n text-decoration: none;\n display: flex;\n justify-content: space-between;\n > svg {\n fill: #888;\n }\n &:hover {\n text-decoration: underline;\n color: #eaeaea;\n background-color: #3e3e3e;\n }\n &:global(.active) {\n text-decoration: underline;\n background: #333;\n color: #fff;\n }\n }\n`;\n\nconst LogoWrapper = styled.div`\n padding: 18px 0 20px 0;\n margin-bottom: 6px;\n color: #fff;\n text-align: center;\n border-bottom: 1px solid rgba(255, 255, 255, 0.12);\n svg {\n margin-bottom: 10px;\n }\n sup {\n color: #6f6f6f;\n margin-left: 5px;\n margin-top: -5px;\n position: absolute;\n }\n`;\n\nconst Menus = styled.div`\n padding-bottom: 20px;\n .divider {\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n }\n`;\n\nconst Divider = styled.div`\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n`;\n\nexport default function SideMenu() {\n const version = VERSION;\n return (\n \n \n \n
\n 高德地图 React 组件{version}\n
\n
\n \n {menus.map(({ label, path, divider, ...otherItem }, idx) => {\n if (divider) {\n return {label};\n }\n if (path && /^http/.test(path)) {\n return (\n \n {label}\n \n \n \n \n \n );\n }\n return (\n \n {label}\n \n );\n })}\n \n
\n );\n}\n","import { Suspense } from 'react';\nimport { HashRouter, Route, Routes } from 'react-router-dom';\nimport GitHubCorners from '@uiw/react-github-corners';\nimport Loader from '@uiw/react-loader';\nimport styled from 'styled-components';\nimport '@wcj/dark-mode';\nimport { routes } from '../../router';\nimport SideMenu from '../../components/SideMenu';\n\nconst Wrapper = styled.div`\n width: 100%;\n height: 500px;\n`;\n\nconst Content = styled.div`\n margin-left: 250px;\n`;\n\nconst Loading = (\n
\n \n
\n);\n\nexport default function App() {\n return (\n \n \n \n \n \n \n \n {(routes as any[]).map(({ component: Child, path }, idx) => {\n const Com = Child;\n return (\n \n \n \n }\n />\n );\n })}\n \n \n \n \n );\n}\n","import { createRoot } from 'react-dom/client';\nimport './index.less';\nimport App from './pages/root/App';\n\nconst container = document.getElementById('root');\nconst root = createRoot(container!);\nroot.render();\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + ({\"177\":\"micromark-vendor\",\"6137\":\"refractor-prismjs-vendor\",\"9438\":\"parse5-vendor\"}[chunkId] || chunkId) + \".\" + {\"19\":\"7d9adbdf\",\"96\":\"17626b7a\",\"110\":\"aa7de6e9\",\"177\":\"73df6cf1\",\"410\":\"6b4389d1\",\"643\":\"ba91b576\",\"658\":\"9e987835\",\"741\":\"99ae6856\",\"837\":\"7768b398\",\"882\":\"b4e88d35\",\"1259\":\"90afee00\",\"1285\":\"c012d81a\",\"1432\":\"49a1d805\",\"1899\":\"03a3726e\",\"2085\":\"ccb0a5a5\",\"2097\":\"6c0d24b7\",\"2156\":\"7c904b42\",\"2166\":\"6d6979b4\",\"2196\":\"8a39ea67\",\"2387\":\"18642fe8\",\"2528\":\"4c205083\",\"2577\":\"4be3256b\",\"2673\":\"9da27a67\",\"2937\":\"ca762130\",\"3025\":\"3a615311\",\"3034\":\"e2fff638\",\"3527\":\"732635dd\",\"3559\":\"4c982ab0\",\"3727\":\"122c854f\",\"3885\":\"7c849b53\",\"3919\":\"99af9f81\",\"4004\":\"f4a9c51e\",\"4215\":\"9aab7851\",\"4290\":\"861bb548\",\"4702\":\"3106727c\",\"4753\":\"71532b3b\",\"4930\":\"05f0f73c\",\"5254\":\"fc2fa12a\",\"5409\":\"a76d74bd\",\"5516\":\"8260e620\",\"5531\":\"ab6bc09c\",\"5761\":\"f774855c\",\"5775\":\"4a5d7cbf\",\"5828\":\"bd721cc3\",\"6090\":\"88b48848\",\"6137\":\"653ee587\",\"6141\":\"0dd8b110\",\"6220\":\"c93c4325\",\"6323\":\"1635b109\",\"6382\":\"0a622b10\",\"6627\":\"80f0a64a\",\"7359\":\"b3b8a913\",\"7365\":\"f4a91d19\",\"7865\":\"a0b8cdd0\",\"7911\":\"ec5a3199\",\"9121\":\"695e36da\",\"9345\":\"f276a6de\",\"9426\":\"e13ffd90\",\"9438\":\"ffd5b4fb\",\"9467\":\"7c7aabe0\",\"9559\":\"0cbd8e10\",\"9603\":\"070f3d6c\",\"9606\":\"9cbe2eb2\",\"9624\":\"4c580ae4\",\"9759\":\"1ae4b3dc\",\"9973\":\"3ef2b39a\",\"9987\":\"fcbd3fa8\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + chunkId + \".\" + {\"19\":\"bf0e21c2\",\"110\":\"bf0e21c2\",\"410\":\"bf0e21c2\",\"741\":\"bf0e21c2\",\"1432\":\"bf0e21c2\",\"1899\":\"453962f9\",\"2085\":\"bf0e21c2\",\"2387\":\"bf0e21c2\",\"2577\":\"bf0e21c2\",\"2937\":\"bf0e21c2\",\"3034\":\"bf0e21c2\",\"3527\":\"bf0e21c2\",\"3885\":\"bf0e21c2\",\"3919\":\"bf0e21c2\",\"4004\":\"bf0e21c2\",\"4215\":\"bf0e21c2\",\"5254\":\"a8bb3b2e\",\"5761\":\"bf0e21c2\",\"6141\":\"bf0e21c2\",\"6323\":\"bf0e21c2\",\"6382\":\"bf0e21c2\",\"6627\":\"bf0e21c2\",\"7365\":\"bf0e21c2\",\"7911\":\"bf0e21c2\",\"9121\":\"bf0e21c2\",\"9426\":\"bf0e21c2\",\"9559\":\"bf0e21c2\",\"9606\":\"bf0e21c2\",\"9624\":\"bf0e21c2\",\"9759\":\"bf0e21c2\",\"9987\":\"bf0e21c2\"}[chunkId] + \".chunk.css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"website:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"./\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"19\":1,\"110\":1,\"410\":1,\"741\":1,\"1432\":1,\"1899\":1,\"2085\":1,\"2387\":1,\"2577\":1,\"2937\":1,\"3034\":1,\"3527\":1,\"3885\":1,\"3919\":1,\"4004\":1,\"4215\":1,\"5254\":1,\"5761\":1,\"6141\":1,\"6323\":1,\"6382\":1,\"6627\":1,\"7365\":1,\"7911\":1,\"9121\":1,\"9426\":1,\"9559\":1,\"9606\":1,\"9624\":1,\"9759\":1,\"9987\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkwebsite\"] = self[\"webpackChunkwebsite\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [8264,8665], function() { return __webpack_require__(8444); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_path","_path2","_path3","_path4","_path5","_path6","_path7","_path8","_path9","_path10","_path11","_path12","_path13","_path14","_path15","routes","path","exact","component","lazy","menus","label","target","divider","_excluded","_extends","Object","assign","bind","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogo","_ref","svgRef","title","titleId","props","viewBox","width","height","xmlns","xmlnsXlink","ref","id","d","fill","ForwardRef","Side","styled","div","_templateObject","_taggedTemplateLiteral","LogoWrapper","_templateObject2","Menus","_templateObject3","Divider","_templateObject4","SideMenu","_jsxs","children","_jsx","Logo","VERSION","map","idx","otherItem","test","_objectSpread","href","NavLink","to","Wrapper","Content","Loading","style","padding","Loader","tip","App","HashRouter","GitHubCorners","fixed","zIndex","size","permanent","light","dark","marginLeft","top","position","Routes","Child","Com","Route","element","Suspense","fallback","container","document","getElementById","createRoot","render","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","a","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","t","value","mode","then","ns","create","def","current","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","prop","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","type","head","appendChild","Symbol","toStringTag","p","loadStylesheet","resolve","reject","fullhref","existingLinkTags","dataHref","tag","rel","existingStyleTags","findStylesheet","oldTag","linkTag","errorType","realHref","err","Error","code","request","insertBefore","nextSibling","createStylesheet","installedCssChunks","miniCss","installedChunks","installedChunkData","promise","error","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/main.bbd0dd67.js","mappings":"yDAAIA,EAAOC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAAQC,EAASC,EAASC,EAASC,EAASC,EAASC,E,6ECE3GC,G,QAAS,CACpB,CACEC,KAAM,IACNC,OAAO,EACPC,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAsB,KAE9C,CACEH,KAAM,cACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAA4B,KAEpD,CACEH,KAAM,OACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAqB,KAE7C,CACEH,KAAM,iBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAA+B,KAEvD,CACEH,KAAM,oBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAkC,KAE1D,CACEH,KAAM,uBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAqC,KAE7D,CACEH,KAAM,oBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAkC,KAE1D,CACEH,KAAM,cACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,kFAA4B,KAEpD,CACEH,KAAM,oBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,kFAAkC,KAE1D,CACEH,KAAM,YACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAA0B,KAElD,CACEH,KAAM,mBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAiC,KAEzD,CACEH,KAAM,UACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAAwB,KAEhD,CACEH,KAAM,cACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAA4B,KAEpD,CACEH,KAAM,gBACNE,WAAWC,EAAAA,EAAAA,OAAK,kBAAM,mFAA8B,KAEtD,CACEH,KAAM,QACNE,WAAWC,EAAAA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AAS,EACTF,MAAO,gBAET,CACEA,MAAO,yBACPL,KAAM,eAER,CACEK,MAAO,mBACPL,KAAM,QAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,8CACPL,KAAM,kBAER,CACEK,MAAO,gDACPL,KAAM,qBAER,CACEK,MAAO,0CACPL,KAAM,qBAER,CACEK,MAAO,qCACPL,KAAM,eAER,CACEK,MAAO,6CACPL,KAAM,wBAER,CACEK,MAAO,0CACPL,KAAM,qBAER,CACEO,SAAS,EACTF,MAAO,sBAET,CACEA,MAAO,4BACPL,KAAM,WAER,CACEK,MAAO,2CACPL,KAAM,eAER,CACEK,MAAO,gCACPL,KAAM,SAER,CACEK,MAAO,iCACPL,KAAM,iBAER,CACEO,SAAS,EACTF,MAAO,4BAET,CACEA,MAAO,6BACPL,KAAM,YAER,CACEK,MAAO,mCACPL,KAAM,mBAER,CACEK,MAAO,wBACPL,KAAM,aAER,CACEK,MAAO,gDACPL,KAAM,oBAER,CACEK,MAAO,gCACPL,KAAM,gBAER,CACEK,MAAO,qCACPL,KAAM,eAER,CACEK,MAAO,8CACPL,KAAM,iBAER,CACEK,MAAO,sBACPL,KAAM,WAER,CACEK,MAAO,wCACPL,KAAM,kBAER,CACEK,MAAO,mCACPL,KAAM,YAER,CACEK,MAAO,yBACPL,KAAM,cAER,CACEO,SAAS,EACTF,MAAO,4BAET,CACEA,MAAO,sCACPL,KAAM,gBAER,CACEO,SAAS,EACTF,MAAO,4BAET,CACEA,MAAO,uCACPL,KAAM,iBAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,iBACPL,KAAM,mBAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,+CACPL,KAAM,YAER,CACEK,MAAO,2BACPL,KAAM,gBAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,wCACPL,KAAM,kBAER,CACEO,SAAS,EACTF,MAAO,gBAET,CACEA,MAAO,+DACPL,KAAM,UAER,CACEK,MAAO,mDACP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AM,IAC3D8N,EAAmBjE,KAAO2D,EAAqBxN,KAAK,KAAM8N,EAAmBjE,KAAK7J,KAAK8N,G,ICvFvFjI,EAAoB0E,QAAKvE,ECGzB,IAAIgI,EAAsBnI,EAAoBS,OAAEN,EAAW,CAAC,KAAK,OAAO,WAAa,OAAOH,EAAoB,KAAO,IACvHmI,EAAsBnI,EAAoBS,EAAE0H,E","sources":["components/SideMenu/logo.svg","router.tsx","components/SideMenu/index.tsx","pages/root/App.tsx","index.tsx","../webpack/bootstrap","../webpack/runtime/chunk loaded","../webpack/runtime/compat get default export","../webpack/runtime/create fake namespace object","../webpack/runtime/define property getters","../webpack/runtime/ensure chunk","../webpack/runtime/get javascript chunk filename","../webpack/runtime/get mini-css chunk filename","../webpack/runtime/global","../webpack/runtime/hasOwnProperty shorthand","../webpack/runtime/load script","../webpack/runtime/make namespace object","../webpack/runtime/publicPath","../webpack/runtime/css loading","../webpack/runtime/jsonp chunk loading","../webpack/runtime/nonce","../webpack/startup"],"sourcesContent":["var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13, _path14, _path15;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nfunction SvgLogo(_ref, svgRef) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 1024 1024\",\n width: 42,\n height: 42,\n xmlns: \"http://www.w3.org/2000/svg\",\n xmlnsXlink: \"http://www.w3.org/1999/xlink\",\n ref: svgRef,\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 801.787737c0 107.787661 92.888119 223.570702 230.061131 222.200213h570.123392c124.274901 0 223.803427-107.368757 223.803427-223.99995V224.8119C1023.98795 108.072102 927.888232 0 795.545547 0H225.018766C93.151874 0 0 111.397477 0 224.8119v576.975837z\",\n fill: \"#F1F1F1\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 0H225.018766C93.151874 0 0 111.397477 0 224.8119v91.450399l620.097107 0.584397V0z\",\n fill: \"#AFE881\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M697.206503 1023.98795h102.972848c124.274901 0 223.808599-107.368757 223.808599-223.99995V796.435072h-325.814348l-0.967099 227.552878z\",\n fill: \"#A3CAFF\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 408.560849V315.471035h1023.98795v93.089814z\",\n fill: \"#FFFFFF\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M620.097107 1023.998293V0h78.102354v1023.998293z\",\n fill: \"#FFFFFF\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 796.435072v-124.119751h1023.98795v124.119751z\",\n fill: \"#FFDF48\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M206.866253 1023.998293V0h155.149689v1023.998293z\",\n fill: \"#FFCF68\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l73.411662 116.103684 3.201255-101.002447z\",\n fill: \"#D6D7D4\"\n })), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M207.874726 653.014699l132.125475 208.965945 23.086274 2.482395v-280.122764l-155.211749-34.148446z\",\n fill: \"#E5BA5E\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M392.663177 796.435072h209.545171l-141.263792-62.059876z\",\n fill: \"#E4C84A\"\n })), _path11 || (_path11 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M362.776175 864.426838l253.281868 27.213255-0.630942-97.692587H363.086475z\",\n fill: \"#D6D7D4\"\n })), _path12 || (_path12 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M616.058043 891.640093l91.957221 9.877864L615.427101 793.952677z\",\n fill: \"#E7E7E8\"\n })), _path13 || (_path13 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M890.936748 186.179627L318.780895 664.216507l21.219306 197.764137 60.472177-157.616569z\",\n fill: \"#0066BD\"\n })), _path14 || (_path14 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M391.106509 702.884981l-51.106308 159.095663 120.944355-116.243319L419.814373 672.315321z\",\n fill: \"#014E9D\"\n })), _path15 || (_path15 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M134.463064 536.911015l184.317831 127.305492L890.936748 186.179627l-500.440495 513.690279 317.519011 201.648051L890.936748 186.179627z\",\n fill: \"#0093FD\"\n })));\n}\nvar ForwardRef = /*#__PURE__*/React.forwardRef(SvgLogo);\nexport default __webpack_public_path__ + \"static/media/logo.552138f67b47aa2ff9779e6ffc2abeed.svg\";\nexport { ForwardRef as ReactComponent };","import { lazy } from 'react';\n\nexport const routes = [\n {\n path: '/',\n exact: true,\n component: lazy(() => import('./pages/home')),\n },\n {\n path: '/api-loader',\n component: lazy(() => import('./pages/api-loader')),\n },\n {\n path: '/map',\n component: lazy(() => import('./pages/map')),\n },\n {\n path: '/scale-control',\n component: lazy(() => import('./pages/scale-control')),\n },\n {\n path: '/tool-bar-control',\n component: lazy(() => import('./pages/tool-bar-control')),\n },\n {\n path: '/control-bar-control',\n component: lazy(() => import('./pages/control-bar-control')),\n },\n {\n path: '/map-type-control',\n component: lazy(() => import('./pages/map-type-control')),\n },\n {\n path: '/tile-layer',\n component: lazy(() => import('./pages/tile-layer')),\n },\n {\n path: '/hawk-eye-control',\n component: lazy(() => import('./pages/hawk-eye-control')),\n },\n {\n path: '/polyline',\n component: lazy(() => import('./pages/polyline')),\n },\n {\n path: '/polyline-editor',\n component: lazy(() => import('./pages/polyline-editor')),\n },\n {\n path: '/marker',\n component: lazy(() => import('./pages/marker')),\n },\n {\n path: '/mass-marks',\n component: lazy(() => import('./pages/mass-marks')),\n },\n {\n path: '/label-marker',\n component: lazy(() => import('./pages/label-marker')),\n },\n {\n path: '/text',\n component: lazy(() => import('./pages/text')),\n },\n {\n path: '/circle',\n component: lazy(() => import('./pages/circle')),\n },\n {\n path: '/ellipse',\n component: lazy(() => import('./pages/ellipse')),\n },\n {\n path: '/rectangle',\n component: lazy(() => import('./pages/rectangle')),\n },\n {\n path: '/beizer-curve',\n component: lazy(() => import('./pages/beizer-curve')),\n },\n {\n path: '/poly-editor',\n component: lazy(() => import('./pages/poly-editor')),\n },\n {\n path: '/polygon',\n component: lazy(() => import('./pages/polygon')),\n },\n {\n path: '/polygon-editor',\n component: lazy(() => import('./pages/polygon-editor')),\n },\n {\n path: '/info-window',\n component: lazy(() => import('./pages/info-window')),\n },\n {\n path: '/circle-marker',\n component: lazy(() => import('./pages/circle-marker')),\n },\n {\n path: '/mouse-tool',\n component: lazy(() => import('./pages/mouse-tool')),\n },\n {\n path: '/weather',\n component: lazy(() => import('./pages/weather')),\n },\n {\n path: '/geolocation',\n component: lazy(() => import('./pages/geolocation')),\n },\n {\n path: '/auto-complete',\n component: lazy(() => import('./pages/auto-complete')),\n },\n {\n path: '/context-menu',\n component: lazy(() => import('./pages/context-menu')),\n },\n {\n path: '/require-script',\n component: lazy(() => import('./pages/require-script')),\n },\n {\n path: '/types',\n component: lazy(() => import('./pages/types')),\n },\n];\n\nexport const menus = [\n {\n label: '快速开始',\n path: '/',\n },\n {\n label: '国内镜像 🇨🇳',\n target: '__blank',\n path: 'https://uiw.gitee.io/react-amap',\n },\n {\n divider: true,\n label: '容器',\n },\n {\n label: 'APILoader 组件',\n path: '/api-loader',\n },\n {\n label: 'Map 组件',\n path: '/map',\n },\n {\n divider: true,\n label: '控件',\n },\n {\n label: 'ScaleControl 比例尺控件',\n path: '/scale-control',\n },\n {\n label: 'ToolBarControl 缩放工具条',\n path: '/tool-bar-control',\n },\n {\n label: 'MapTypeControl 图层切换',\n path: '/map-type-control',\n },\n {\n label: 'TileLayer 切片图层',\n path: '/tile-layer',\n },\n {\n label: 'ControlBarControl 地图控件',\n path: '/control-bar-control',\n },\n {\n label: 'HawkEyeControl 鹰眼控件',\n path: '/hawk-eye-control',\n },\n {\n divider: true,\n label: '点标记',\n },\n {\n label: 'Marker 点标记',\n path: '/marker',\n },\n {\n label: 'MassMarks 海量点标记',\n path: '/mass-marks',\n },\n {\n label: 'Text 文本标记',\n path: '/text',\n },\n {\n label: 'LabelMarker 标注类',\n path: '/label-marker',\n },\n {\n divider: true,\n label: '矢量图形',\n },\n {\n label: 'Polygon 多边形',\n path: '/polygon',\n },\n {\n label: 'PolygonEditor 编辑器',\n path: '/polygon-editor',\n },\n {\n label: 'Polyline 折线',\n path: '/polyline',\n },\n {\n label: 'PolylineEditor 折线编辑器',\n path: '/polyline-editor',\n },\n {\n label: 'PolyEditor 编辑器',\n path: '/poly-editor',\n },\n {\n label: 'MouseTool 绘制工具',\n path: '/mouse-tool',\n },\n {\n label: 'BesizerCurve 贝塞尔曲线',\n path: '/beizer-curve',\n },\n {\n label: 'Circle 圆形',\n path: '/circle',\n },\n {\n label: 'CircleMarker 圆点标记',\n path: '/circle-marker',\n },\n {\n label: 'Ellipse 圆形组件',\n path: '/ellipse',\n },\n {\n label: 'Rectangle 矩形',\n path: '/rectangle',\n },\n {\n divider: true,\n label: '信息窗体',\n },\n {\n label: 'InfoWindow 信息窗体',\n path: '/info-window',\n },\n {\n divider: true,\n label: '右键菜单',\n },\n {\n label: 'ContextMenu 右键菜单',\n path: '/context-menu',\n },\n {\n divider: true,\n label: '工具',\n },\n {\n label: 'Require Script',\n path: '/require-script',\n },\n {\n divider: true,\n label: '服务',\n },\n {\n label: 'Weather 天气查询服务',\n path: '/weather',\n },\n {\n label: 'Geolocation 定位',\n path: '/geolocation',\n },\n {\n divider: true,\n label: '搜索',\n },\n {\n label: 'AutoComplete 输入提示',\n path: '/auto-complete',\n },\n {\n divider: true,\n label: '其它',\n },\n {\n label: '高德地图 API 类型 types 定义',\n path: '/types',\n },\n {\n label: '高德拾取坐标系统',\n target: '__blank',\n path: 'https://lbs.amap.com/console/show/picker',\n },\n {\n label: '官方示例中心',\n target: '__blank',\n path: 'https://lbs.amap.com/demo-center/jsapi-v2',\n },\n {\n label: '高德地图 JSAPI 2.0',\n target: '__blank',\n path: 'https://a.amap.com/jsapi/static/doc/index.html',\n },\n {\n label: 'AMapUI 组件库',\n target: '__blank',\n path: 'https://lbs.amap.com/api/amap-ui/intro',\n },\n {\n label: '源码 Github 仓库',\n target: '__blank',\n path: 'https://github.com/uiwjs/react-amap',\n },\n {\n label: '源码 Gitee 仓库',\n target: '__blank',\n path: 'https://gitee.com/uiw/react-amap',\n },\n {\n divider: true,\n label: '相关连接',\n },\n {\n label: '百度地图 React 组件',\n target: '__blank',\n path: 'https://uiwjs.github.io/react-baidu-map/',\n },\n {\n label: 'React Web 组件库',\n target: '__blank',\n path: 'https://uiwjs.github.io/',\n },\n {\n label: 'React Native 组件库',\n target: '__blank',\n path: 'https://uimjs.github.io/',\n },\n];\n","import { NavLink } from 'react-router-dom';\nimport styled from 'styled-components';\nimport { menus } from '../../router';\nimport { ReactComponent as Logo } from './logo.svg';\n\nconst Side = styled.div`\n width: 250px;\n height: 100%;\n overflow: auto;\n position: fixed;\n background: #202225;\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 10px;\n height: 10px;\n }\n &::-webkit-scrollbar-thumb {\n cursor: pointer;\n border-radius: 5px;\n background: rgba(255, 255, 255, 0.25);\n transition: color 0.2s ease;\n }\n &::-webkit-scrollbar-track {\n background: rgba(255, 255, 255, 0.1);\n border-radius: 0;\n }\n a {\n color: #dcdcdc;\n display: block;\n padding: 8px 10px 8px 15px;\n text-decoration: none;\n display: flex;\n justify-content: space-between;\n > svg {\n fill: #888;\n }\n &:hover {\n text-decoration: underline;\n color: #eaeaea;\n background-color: #3e3e3e;\n }\n &:global(.active) {\n text-decoration: underline;\n background: #333;\n color: #fff;\n }\n }\n`;\n\nconst LogoWrapper = styled.div`\n padding: 18px 0 20px 0;\n margin-bottom: 6px;\n color: #fff;\n text-align: center;\n border-bottom: 1px solid rgba(255, 255, 255, 0.12);\n svg {\n margin-bottom: 10px;\n }\n sup {\n color: #6f6f6f;\n margin-left: 5px;\n margin-top: -5px;\n position: absolute;\n }\n`;\n\nconst Menus = styled.div`\n padding-bottom: 20px;\n .divider {\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n }\n`;\n\nconst Divider = styled.div`\n color: #9e9e9e;\n padding: 5px 10px 5px 20px;\n`;\n\nexport default function SideMenu() {\n const version = VERSION;\n return (\n \n \n \n
\n 高德地图 React 组件{version}\n
\n
\n \n {menus.map(({ label, path, divider, ...otherItem }, idx) => {\n if (divider) {\n return {label};\n }\n if (path && /^http/.test(path)) {\n return (\n \n {label}\n \n \n \n \n \n );\n }\n return (\n \n {label}\n \n );\n })}\n \n
\n );\n}\n","import { Suspense } from 'react';\nimport { HashRouter, Route, Routes } from 'react-router-dom';\nimport GitHubCorners from '@uiw/react-github-corners';\nimport Loader from '@uiw/react-loader';\nimport styled from 'styled-components';\nimport '@wcj/dark-mode';\nimport { routes } from '../../router';\nimport SideMenu from '../../components/SideMenu';\n\nconst Wrapper = styled.div`\n width: 100%;\n height: 500px;\n`;\n\nconst Content = styled.div`\n margin-left: 250px;\n`;\n\nconst Loading = (\n
\n \n
\n);\n\nexport default function App() {\n return (\n \n \n \n \n \n \n \n {(routes as any[]).map(({ component: Child, path }, idx) => {\n const Com = Child;\n return (\n \n \n \n }\n />\n );\n })}\n \n \n \n \n );\n}\n","import { createRoot } from 'react-dom/client';\nimport './index.less';\nimport App from './pages/root/App';\n\nconst container = document.getElementById('root');\nconst root = createRoot(container!);\nroot.render();\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + ({\"177\":\"micromark-vendor\",\"6137\":\"refractor-prismjs-vendor\",\"9438\":\"parse5-vendor\"}[chunkId] || chunkId) + \".\" + {\"19\":\"7d9adbdf\",\"96\":\"17626b7a\",\"110\":\"aa7de6e9\",\"177\":\"73df6cf1\",\"410\":\"6b4389d1\",\"643\":\"ba91b576\",\"658\":\"9e987835\",\"741\":\"99ae6856\",\"837\":\"7768b398\",\"882\":\"b4e88d35\",\"1259\":\"90afee00\",\"1285\":\"c012d81a\",\"1432\":\"49a1d805\",\"1899\":\"03a3726e\",\"2085\":\"ccb0a5a5\",\"2097\":\"6c0d24b7\",\"2156\":\"7c904b42\",\"2166\":\"6d6979b4\",\"2196\":\"8a39ea67\",\"2387\":\"18642fe8\",\"2528\":\"4c205083\",\"2577\":\"4be3256b\",\"2673\":\"9da27a67\",\"2937\":\"ca762130\",\"3025\":\"3a615311\",\"3034\":\"e2fff638\",\"3527\":\"732635dd\",\"3559\":\"4c982ab0\",\"3727\":\"122c854f\",\"3885\":\"7c849b53\",\"3919\":\"99af9f81\",\"4004\":\"f4a9c51e\",\"4215\":\"9aab7851\",\"4290\":\"861bb548\",\"4702\":\"f6787a44\",\"4753\":\"71532b3b\",\"4930\":\"05f0f73c\",\"5254\":\"fc2fa12a\",\"5409\":\"a76d74bd\",\"5516\":\"8260e620\",\"5531\":\"ab6bc09c\",\"5761\":\"f774855c\",\"5775\":\"b3985d06\",\"5828\":\"bd721cc3\",\"6090\":\"88b48848\",\"6137\":\"653ee587\",\"6141\":\"0dd8b110\",\"6220\":\"c93c4325\",\"6323\":\"1635b109\",\"6382\":\"0a622b10\",\"6627\":\"80f0a64a\",\"7359\":\"b3b8a913\",\"7365\":\"f4a91d19\",\"7865\":\"a0b8cdd0\",\"7911\":\"ec5a3199\",\"9121\":\"695e36da\",\"9345\":\"f276a6de\",\"9426\":\"e13ffd90\",\"9438\":\"ffd5b4fb\",\"9467\":\"7c7aabe0\",\"9559\":\"0cbd8e10\",\"9603\":\"070f3d6c\",\"9606\":\"9cbe2eb2\",\"9624\":\"4c580ae4\",\"9759\":\"1ae4b3dc\",\"9973\":\"3ef2b39a\",\"9987\":\"fcbd3fa8\"}[chunkId] + \".chunk.js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + chunkId + \".\" + {\"19\":\"bf0e21c2\",\"110\":\"bf0e21c2\",\"410\":\"bf0e21c2\",\"741\":\"bf0e21c2\",\"1432\":\"bf0e21c2\",\"1899\":\"453962f9\",\"2085\":\"bf0e21c2\",\"2387\":\"bf0e21c2\",\"2577\":\"bf0e21c2\",\"2937\":\"bf0e21c2\",\"3034\":\"bf0e21c2\",\"3527\":\"bf0e21c2\",\"3885\":\"bf0e21c2\",\"3919\":\"bf0e21c2\",\"4004\":\"bf0e21c2\",\"4215\":\"bf0e21c2\",\"5254\":\"a8bb3b2e\",\"5761\":\"bf0e21c2\",\"6141\":\"bf0e21c2\",\"6323\":\"bf0e21c2\",\"6382\":\"bf0e21c2\",\"6627\":\"bf0e21c2\",\"7365\":\"bf0e21c2\",\"7911\":\"bf0e21c2\",\"9121\":\"bf0e21c2\",\"9426\":\"bf0e21c2\",\"9559\":\"bf0e21c2\",\"9606\":\"bf0e21c2\",\"9624\":\"bf0e21c2\",\"9759\":\"bf0e21c2\",\"9987\":\"bf0e21c2\"}[chunkId] + \".chunk.css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"website:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"./\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"19\":1,\"110\":1,\"410\":1,\"741\":1,\"1432\":1,\"1899\":1,\"2085\":1,\"2387\":1,\"2577\":1,\"2937\":1,\"3034\":1,\"3527\":1,\"3885\":1,\"3919\":1,\"4004\":1,\"4215\":1,\"5254\":1,\"5761\":1,\"6141\":1,\"6323\":1,\"6382\":1,\"6627\":1,\"7365\":1,\"7911\":1,\"9121\":1,\"9426\":1,\"9559\":1,\"9606\":1,\"9624\":1,\"9759\":1,\"9987\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkwebsite\"] = self[\"webpackChunkwebsite\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [8264,8665], function() { return __webpack_require__(8444); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_path","_path2","_path3","_path4","_path5","_path6","_path7","_path8","_path9","_path10","_path11","_path12","_path13","_path14","_path15","routes","path","exact","component","lazy","menus","label","target","divider","_excluded","_extends","Object","assign","bind","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutProperties","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","SvgLogo","_ref","svgRef","title","titleId","props","viewBox","width","height","xmlns","xmlnsXlink","ref","id","d","fill","ForwardRef","Side","styled","div","_templateObject","_taggedTemplateLiteral","LogoWrapper","_templateObject2","Menus","_templateObject3","Divider","_templateObject4","SideMenu","_jsxs","children","_jsx","Logo","VERSION","map","idx","otherItem","test","_objectSpread","href","NavLink","to","Wrapper","Content","Loading","style","padding","Loader","tip","App","HashRouter","GitHubCorners","fixed","zIndex","size","permanent","light","dark","marginLeft","top","position","Routes","Child","Com","Route","element","Suspense","fallback","container","document","getElementById","createRoot","render","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","a","leafPrototypes","getProto","getPrototypeOf","obj","__proto__","t","value","mode","then","ns","create","def","current","getOwnPropertyNames","forEach","definition","o","defineProperty","enumerable","get","f","e","chunkId","Promise","all","reduce","promises","u","miniCssF","g","globalThis","Function","window","prop","inProgress","dataWebpackPrefix","l","url","done","push","script","needAttach","scripts","getElementsByTagName","s","getAttribute","createElement","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","setTimeout","type","head","appendChild","Symbol","toStringTag","p","loadStylesheet","resolve","reject","fullhref","existingLinkTags","dataHref","tag","rel","existingStyleTags","findStylesheet","oldTag","linkTag","errorType","realHref","err","Error","code","request","insertBefore","nextSibling","createStylesheet","installedCssChunks","miniCss","installedChunks","installedChunkData","promise","error","realSrc","message","name","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file