qlqz-frame 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -3
- package/dist/index.umd.js +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -158436,8 +158436,8 @@ function Mtr(e) {
|
|
|
158436
158436
|
mtkConfig: r
|
|
158437
158437
|
} = e, n = Mr(), i = Mr(), [a, o] = no(!1), s = Mr(), l = Mr(), u = Mr(), c = Mr(), f = Mr(), h = Mr(), d = Mr(), v = Mr(new Ttr());
|
|
158438
158438
|
Hi(() => {
|
|
158439
|
-
if (!r.mapCenter
|
|
158440
|
-
|
|
158439
|
+
if (!(r != null && r.mapCenter))
|
|
158440
|
+
throw new Error("mtkConfig 需要在地图组件生命周期最初就给到");
|
|
158441
158441
|
const x = r.mapCenter || [120.555, 36.198], w = r.mapDefaultZoom || 10, b = r.maxZoom || 20, T = r.minZoom || 2, C = r.pitch || null, P = r.bearing || 0, R = [233, 233, 233], O = r.sky || !1;
|
|
158442
158442
|
let k = new Nn(n.current, {
|
|
158443
158443
|
center: x,
|
|
@@ -158474,7 +158474,7 @@ function Mtr(e) {
|
|
|
158474
158474
|
}).catch((B) => {
|
|
158475
158475
|
}), () => {
|
|
158476
158476
|
};
|
|
158477
|
-
}, [
|
|
158477
|
+
}, []);
|
|
158478
158478
|
function p() {
|
|
158479
158479
|
return c.current = new str(), new Promise((x, w) => {
|
|
158480
158480
|
let b = new VU("three");
|
package/dist/index.umd.js
CHANGED
|
@@ -4122,4 +4122,4 @@ __p += '`),Vi&&(ir+=`' +
|
|
|
4122
4122
|
function print() { __p += __j.call(arguments, '') }
|
|
4123
4123
|
`:`;
|
|
4124
4124
|
`)+ir+`return __p
|
|
4125
|
-
}`;var Wn=od(function(){return Zi(Ie,fn+"return "+ir).apply(r,Xe)});if(Wn.source=ir,m0(Wn))throw Wn;return Wn}function p4(E){return ba(E).toLowerCase()}function n7(E){return ba(E).toUpperCase()}function i7(E,D,U){if(E=ba(E),E&&(U||D===r))return ng(E);if(!E||!(D=zi(D)))return E;var le=vc(E),Ee=vc(D),Ie=CR(le,Ee),Xe=TR(le,Ee)+1;return Uf(le,Ie,Xe).join("")}function yD(E,D,U){if(E=ba(E),E&&(U||D===r))return E.slice(0,Rf(E)+1);if(!E||!(D=zi(D)))return E;var le=vc(E),Ee=TR(le,vc(D))+1;return Uf(le,0,Ee).join("")}function a7(E,D,U){if(E=ba(E),E&&(U||D===r))return E.replace(or,"");if(!E||!(D=zi(D)))return E;var le=vc(E),Ee=CR(le,vc(D));return Uf(le,Ee).join("")}function lse(E,D){var U=k,le=N;if(Vo(D)){var Ee="separator"in D?D.separator:Ee;U="length"in D?Si(D.length):U,le="omission"in D?zi(D.omission):le}E=ba(E);var Ie=E.length;if(ig(E)){var Xe=vc(E);Ie=Xe.length}if(U>=Ie)return E;var rt=U-Lu(le);if(rt<1)return le;var ht=Xe?Uf(Xe,0,rt).join(""):E.slice(0,rt);if(Ee===r)return ht+le;if(Xe&&(rt+=ht.length-rt),s4(Ee)){if(E.slice(rt).search(Ee)){var Yt,Zt=ht;for(Ee.global||(Ee=og(Ee.source,ba(He.exec(Ee))+"g")),Ee.lastIndex=0;Yt=Ee.exec(Zt);)var ir=Yt.index;ht=ht.slice(0,ir===r?rt:ir)}}else if(E.indexOf(zi(Ee),rt)!=rt){var Fr=ht.lastIndexOf(Ee);Fr>-1&&(ht=ht.slice(0,Fr))}return ht+le}function g4(E){return E=ba(E),E&&en.test(E)?E.replace(jr,$3):E}var o7=Gf(function(E,D,U){return E+(U?" ":"")+D.toUpperCase()}),_D=xw("toUpperCase");function FE(E,D,U){return E=ba(E),D=U?r:D,D===r?VT(E)?UT(E):ew(E):E.match(D)||[]}var od=mi(function(E,D){try{return Ss(E,r,D)}catch(U){return m0(U)?U:new si(U)}}),jw=Xl(function(E,D){return $s(D,function(U){U=_c(U),jo(E,U,AE(E[U],E))}),E});function use(E){var D=E==null?0:E.length,U=vn();return E=D?xa(E,function(le){if(typeof le[1]!="function")throw new Iu(o);return[U(le[0]),le[1]]}):[],mi(function(le){for(var Ee=-1;++Ee<D;){var Ie=E[Ee];if(Ss(Ie[0],this,le))return Ss(Ie[1],this,le)}})}function cse(E){return $h(bo(E,f))}function m4(E){return function(){return E}}function fse(E,D){return E==null||E!==E?D:E}var hse=bw(),dse=bw(!0);function eu(E){return E}function xD(E){return Pv(typeof E=="function"?E:bo(E,f))}function vse(E){return Za(bo(E,f))}function s7(E,D){return ss(E,bo(D,f))}var y4=mi(function(E,D){return function(U){return bg(U,E,D)}}),pse=mi(function(E,D){return function(U){return bg(E,U,D)}});function Yw(E,D,U){var le=dl(D),Ee=Ev(D,le);U==null&&!(Vo(D)&&(Ee.length||!le.length))&&(U=D,D=E,E=this,Ee=Ev(D,dl(D)));var Ie=!(Vo(U)&&"chain"in U)||!!U.chain,Xe=Hv(E);return $s(Ee,function(rt){var ht=D[rt];E[rt]=ht,Xe&&(E.prototype[rt]=function(){var Yt=this.__chain__;if(Ie||Yt){var Zt=E(this.__wrapped__),ir=Zt.__actions__=ia(this.__actions__);return ir.push({func:ht,args:arguments,thisArg:E}),Zt.__chain__=Yt,Zt}return ht.apply(E,Lh([this.value()],arguments))})}),E}function l7(){return Ws._===this&&(Ws._=WT),this}function wD(){}function u7(E){return E=Si(E),mi(function(D){return Kh(D,E)})}var c7=lE(xa),f7=lE(r_),qf=lE(js);function x0(E){return Pg(E)?NT(_c(E)):qt(E)}function Ig(E){return function(D){return E==null?r:Yh(E,D)}}var h7=Sw(),d7=Sw(!0);function zE(){return[]}function _4(){return!1}function gse(){return{}}function kg(){return""}function bD(){return!0}function x4(E,D){if(E=Si(E),E<1||E>te)return[];var U=Y,le=fo(E,Y);D=vn(D),E-=Y;for(var Ee=rw(le,D);++U<E;)D(U);return Ee}function v7(E){return yi(E)?xa(E,_c):bc(E)?[E]:ia(V_(ba(E)))}function tu(E){var D=++sg;return ba(E)+D}var Zw=A_(function(E,D){return E+D},0),p7=Cw("ceil"),K_=A_(function(E,D){return E/D},1),w0=Cw("floor");function mse(E){return E&&E.length?Tv(E,eu,xg):r}function g7(E,D){return E&&E.length?Tv(E,vn(D,2),xg):r}function Wv(E){return bR(E,eu)}function m7(E,D){return bR(E,vn(D,2))}function y7(E){return E&&E.length?Tv(E,eu,Zo):r}function Mo(E,D){return E&&E.length?Tv(E,vn(D,2),Zo):r}var Xo=A_(function(E,D){return E*D},1),Cc=Cw("round"),X_=A_(function(E,D){return E-D},0);function nf(E){return E&&E.length?zT(E,eu):0}function yse(E,D){return E&&E.length?zT(E,vn(D,2)):0}return Ae.after=j_,Ae.ary=ME,Ae.assign=Goe,Ae.assignIn=WG,Ae.assignInWith=Uw,Ae.assignWith=Woe,Ae.at=$oe,Ae.before=Y_,Ae.bind=AE,Ae.bindAll=jw,Ae.bindKey=zw,Ae.castArray=Eoe,Ae.chain=ni,Ae.chunk=H_,Ae.compact=YR,Ae.concat=ZR,Ae.cond=use,Ae.conforms=cse,Ae.constant=m4,Ae.countBy=SE,Ae.create=joe,Ae.curry=PE,Ae.curryRight=RE,Ae.debounce=Bw,Ae.defaults=Yoe,Ae.defaultsDeep=$G,Ae.defer=AG,Ae.delay=iD,Ae.difference=mE,Ae.differenceBy=KR,Ae.differenceWith=kv,Ae.drop=K3,Ae.dropRight=X3,Ae.dropRightWhile=Nv,Ae.dropWhile=XR,Ae.fill=yE,Ae.filter=_G,Ae.flatMap=goe,Ae.flatMapDeep=po,Ae.flatMapDepth=wG,Ae.flatten=id,Ae.flattenDeep=q3,Ae.flattenDepth=J3,Ae.flip=PG,Ae.flow=hse,Ae.flowRight=dse,Ae.fromPairs=qR,Ae.functions=qoe,Ae.functionsIn=Joe,Ae.groupBy=bG,Ae.initial=Rw,Ae.intersection=Q3,Ae.intersectionBy=zv,Ae.intersectionWith=U_,Ae.invert=ese,Ae.invertBy=tse,Ae.invokeMap=CG,Ae.iteratee=xD,Ae.keyBy=CE,Ae.keys=dl,Ae.keysIn=Sc,Ae.map=tD,Ae.mapKeys=nse,Ae.mapValues=ise,Ae.matches=vse,Ae.matchesProperty=s7,Ae.memoize=v0,Ae.merge=ase,Ae.mergeWith=ZG,Ae.method=y4,Ae.methodOf=pse,Ae.mixin=Yw,Ae.negate=DE,Ae.nthArg=u7,Ae.omit=ose,Ae.omitBy=sse,Ae.once=_oe,Ae.orderBy=rD,Ae.over=c7,Ae.overArgs=xoe,Ae.overEvery=f7,Ae.overSome=qf,Ae.partial=aD,Ae.partialRight=RG,Ae.partition=Fw,Ae.pick=hD,Ae.pickBy=Gw,Ae.property=x0,Ae.propertyOf=Ig,Ae.pull=e4,Ae.pullAll=G_,Ae.pullAllBy=Dw,Ae.pullAllWith=Ow,Ae.pullAt=QR,Ae.range=h7,Ae.rangeRight=d7,Ae.rearg=oD,Ae.reject=yoe,Ae.remove=Lw,Ae.rest=woe,Ae.reverse=Iw,Ae.sampleSize=wc,Ae.set=IE,Ae.setWith=XG,Ae.shuffle=TE,Ae.slice=bE,Ae.sortBy=MG,Ae.sortedUniq=n4,Ae.sortedUniqBy=Nw,Ae.split=$w,Ae.spread=boe,Ae.tail=S,Ae.take=A,Ae.takeRight=I,Ae.takeRightWhile=Z,Ae.takeWhile=oe,Ae.tap=qr,Ae.throttle=Soe,Ae.thru=Nn,Ae.toArray=HG,Ae.toPairs=kE,Ae.toPairsIn=qG,Ae.toPath=v7,Ae.toPlainObject=GG,Ae.transform=JG,Ae.unary=Coe,Ae.union=Se,Ae.unionBy=Re,Ae.unionWith=Ve,Ae.uniq=it,Ae.uniqBy=Ft,Ae.uniqWith=Ur,Ae.unset=dD,Ae.unzip=Gn,Ae.unzipWith=cr,Ae.update=Z_,Ae.updateWith=y0,Ae.values=ad,Ae.valuesIn=vD,Ae.without=mn,Ae.words=FE,Ae.wrap=Toe,Ae.xor=jn,Ae.xorBy=Rn,Ae.xorWith=bt,Ae.zip=ut,Ae.zipObject=yt,Ae.zipObjectDeep=Kt,Ae.zipWith=er,Ae.entries=kE,Ae.entriesIn=qG,Ae.extend=WG,Ae.extendWith=Uw,Yw(Ae,Ae),Ae.add=Zw,Ae.attempt=od,Ae.camelCase=t7,Ae.capitalize=NE,Ae.ceil=p7,Ae.clamp=f4,Ae.clone=Moe,Ae.cloneDeep=Poe,Ae.cloneDeepWith=Roe,Ae.cloneWith=Aoe,Ae.conformsTo=DG,Ae.deburr=Xf,Ae.defaultTo=fse,Ae.divide=K_,Ae.endsWith=h4,Ae.eq=Zf,Ae.escape=pD,Ae.escapeRegExp=Og,Ae.every=yG,Ae.find=poe,Ae.findIndex=_E,Ae.findKey=fD,Ae.findLast=xG,Ae.findLastIndex=Fv,Ae.findLastKey=jG,Ae.floor=w0,Ae.forEach=a4,Ae.forEachRight=o4,Ae.forIn=Zoe,Ae.forInRight=Koe,Ae.forOwn=Xoe,Ae.forOwnRight=YG,Ae.get=u4,Ae.gt=OG,Ae.gte=LG,Ae.has=Qoe,Ae.hasIn=c4,Ae.head=JR,Ae.identity=eu,Ae.includes=SG,Ae.indexOf=xc,Ae.inRange=QG,Ae.invoke=rse,Ae.isArguments=p0,Ae.isArray=yi,Ae.isArrayBuffer=OE,Ae.isArrayLike=hl,Ae.isArrayLikeObject=cs,Ae.isBoolean=IG,Ae.isBuffer=g0,Ae.isDate=Doe,Ae.isElement=kG,Ae.isEmpty=Ooe,Ae.isEqual=Loe,Ae.isEqualWith=NG,Ae.isError=m0,Ae.isFinite=FG,Ae.isFunction=Hv,Ae.isInteger=sD,Ae.isLength=Vw,Ae.isMap=lD,Ae.isMatch=zG,Ae.isMatchWith=Ioe,Ae.isNaN=koe,Ae.isNative=iBe,Ae.isNil=Foe,Ae.isNull=Noe,Ae.isNumber=BG,Ae.isObject=Vo,Ae.isObjectLike=Eo,Ae.isPlainObject=LE,Ae.isRegExp=s4,Ae.isSafeInteger=zoe,Ae.isSet=uD,Ae.isString=cD,Ae.isSymbol=bc,Ae.isTypedArray=Hw,Ae.isUndefined=l4,Ae.isWeakMap=Boe,Ae.isWeakSet=Voe,Ae.join=Yf,Ae.kebabCase=_0,Ae.last=As,Ae.lastIndexOf=xE,Ae.lowerCase=Jl,Ae.lowerFirst=Ql,Ae.lt=VG,Ae.lte=Hoe,Ae.max=mse,Ae.maxBy=g7,Ae.mean=Wv,Ae.meanBy=m7,Ae.min=y7,Ae.minBy=Mo,Ae.stubArray=zE,Ae.stubFalse=_4,Ae.stubObject=gse,Ae.stubString=kg,Ae.stubTrue=bD,Ae.multiply=Xo,Ae.nth=wE,Ae.noConflict=l7,Ae.noop=wD,Ae.now=Vv,Ae.pad=d4,Ae.padEnd=rf,Ae.padStart=Lg,Ae.parseInt=Uv,Ae.random=e7,Ae.reduce=moe,Ae.reduceRight=TG,Ae.repeat=v4,Ae.replace=Ww,Ae.result=KG,Ae.round=Cc,Ae.runInContext=ft,Ae.sample=EG,Ae.size=nD,Ae.snakeCase=r7,Ae.some=EE,Ae.sortedIndex=W_,Ae.sortedIndexBy=t4,Ae.sortedIndexOf=kw,Ae.sortedLastIndex=eD,Ae.sortedLastIndexBy=r4,Ae.sortedLastIndexOf=$_,Ae.startCase=gD,Ae.startsWith=Gv,Ae.subtract=X_,Ae.sum=nf,Ae.sumBy=yse,Ae.template=mD,Ae.times=x4,Ae.toFinite=Dg,Ae.toInteger=Si,Ae.toLength=UG,Ae.toLower=p4,Ae.toNumber=Kf,Ae.toSafeInteger=Uoe,Ae.toString=ba,Ae.toUpper=n7,Ae.trim=i7,Ae.trimEnd=yD,Ae.trimStart=a7,Ae.truncate=lse,Ae.unescape=g4,Ae.uniqueId=tu,Ae.upperCase=o7,Ae.upperFirst=_D,Ae.each=a4,Ae.eachRight=o4,Ae.first=JR,Yw(Ae,function(){var E={};return Yl(Ae,function(D,U){Ui.call(Ae.prototype,U)||(E[U]=D)}),E}(),{chain:!1}),Ae.VERSION=n,$s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(E){Ae[E].placeholder=Ae}),$s(["drop","take"],function(E,D){gi.prototype[E]=function(U){U=U===r?1:$o(Si(U),0);var le=this.__filtered__&&!D?new gi(this):this.clone();return le.__filtered__?le.__takeCount__=fo(U,le.__takeCount__):le.__views__.push({size:fo(U,Y),type:E+(le.__dir__<0?"Right":"")}),le},gi.prototype[E+"Right"]=function(U){return this.reverse()[E](U).reverse()}}),$s(["filter","map","takeWhile"],function(E,D){var U=D+1,le=U==V||U==j;gi.prototype[E]=function(Ee){var Ie=this.clone();return Ie.__iteratees__.push({iteratee:vn(Ee,3),type:U}),Ie.__filtered__=Ie.__filtered__||le,Ie}}),$s(["head","last"],function(E,D){var U="take"+(D?"Right":"");gi.prototype[E]=function(){return this[U](1).value()[0]}}),$s(["initial","tail"],function(E,D){var U="drop"+(D?"":"Right");gi.prototype[E]=function(){return this.__filtered__?new gi(this):this[U](1)}}),gi.prototype.compact=function(){return this.filter(eu)},gi.prototype.find=function(E){return this.filter(E).head()},gi.prototype.findLast=function(E){return this.reverse().find(E)},gi.prototype.invokeMap=mi(function(E,D){return typeof E=="function"?new gi(this):this.map(function(U){return bg(U,E,D)})}),gi.prototype.reject=function(E){return this.filter(DE(vn(E)))},gi.prototype.slice=function(E,D){E=Si(E);var U=this;return U.__filtered__&&(E>0||D<0)?new gi(U):(E<0?U=U.takeRight(-E):E&&(U=U.drop(E)),D!==r&&(D=Si(D),U=D<0?U.dropRight(-D):U.take(D-E)),U)},gi.prototype.takeRightWhile=function(E){return this.reverse().takeWhile(E).reverse()},gi.prototype.toArray=function(){return this.take(Y)},Yl(gi.prototype,function(E,D){var U=/^(?:filter|find|map|reject)|While$/.test(D),le=/^(?:head|last)$/.test(D),Ee=Ae[le?"take"+(D=="last"?"Right":""):D],Ie=le||/^find/.test(D);Ee&&(Ae.prototype[D]=function(){var Xe=this.__wrapped__,rt=le?[1]:arguments,ht=Xe instanceof gi,Yt=rt[0],Zt=ht||yi(Xe),ir=function(Oi){var Vi=Ee.apply(Ae,Lh([Oi],rt));return le&&Fr?Vi[0]:Vi};Zt&&U&&typeof Yt=="function"&&Yt.length!=1&&(ht=Zt=!1);var Fr=this.__chain__,fn=!!this.__actions__.length,Fn=Ie&&!Fr,Wn=ht&&!fn;if(!Ie&&Zt){Xe=Wn?Xe:new gi(this);var Dn=E.apply(Xe,rt);return Dn.__actions__.push({func:Nn,args:[ir],thisArg:r}),new Zs(Dn,Fr)}return Fn&&Wn?E.apply(this,rt):(Dn=this.thru(ir),Fn?le?Dn.value()[0]:Dn.value():Dn)})}),$s(["pop","push","shift","sort","splice","unshift"],function(E){var D=Xm[E],U=/^(?:push|sort|unshift)$/.test(E)?"tap":"thru",le=/^(?:pop|shift)$/.test(E);Ae.prototype[E]=function(){var Ee=arguments;if(le&&!this.__chain__){var Ie=this.value();return D.apply(yi(Ie)?Ie:[],Ee)}return this[U](function(Xe){return D.apply(yi(Xe)?Xe:[],Ee)})}}),Yl(gi.prototype,function(E,D){var U=Ae[D];if(U){var le=U.name+"";Ui.call(mv,le)||(mv[le]=[]),mv[le].push({name:D,func:U})}}),mv[M_(r,y).name]=[{name:"wrapper",func:r}],gi.prototype.clone=gc,gi.prototype.reverse=kR,gi.prototype.value=YT,Ae.prototype.at=di,Ae.prototype.chain=li,Ae.prototype.commit=Bv,Ae.prototype.next=i4,Ae.prototype.plant=hoe,Ae.prototype.reverse=doe,Ae.prototype.toJSON=Ae.prototype.valueOf=Ae.prototype.value=voe,Ae.prototype.first=Ae.prototype.head,zh&&(Ae.prototype[zh]=mG),Ae},ag=OR();jc?((jc.exports=ag)._=ag,hv._=ag):Ws._=ag}).call(fu)}(gG,gG.exports);var Aqt=gG.exports;const Pqt={map:null,threeLayer:null,gltfLoader:null,vecLayer:null,popup:null,distanceTool:null,areaTool:null,ready:!1,topicStatus:{},setBaseLayer:()=>{},topicStatusChange:()=>{}},Rqt=(e,t,r)=>new Pm(e,r||{}).addTo(t),Qze=(e,t,r)=>{const[n,i]=e.split("-");switch(n){case"baidu":t.setSpatialReference({projection:"baidu"}),t.setBaseLayer(new El(e,r[e]));break;case"4326":t.setSpatialReference({projection:"EPSG:4326"}),t.setBaseLayer(new El(e,r[e]));break;case"3857":t.setSpatialReference({projection:"EPSG:3857"}),t.setBaseLayer(new El(e,r[e]));break;case"4490":t.setSpatialReference({projection:"EPSG:4490"}),t.setBaseLayer(new El(e,r[e]));break;case"TDTSD":t.setSpatialReference({projection:"EPSG:4490",resolutions:[1.40625,.703125,.3515625,.17578125,.087890625,.0439453125,.02197265625,.010986328125,.0054931640625,.00274658203125,.001373291015625,.0006866455078125,.00034332275390625,.000171661376953125,858306884765625e-19,4291534423828125e-20,21457672119140625e-21,10728836059570312e-21,5364418029785156e-21,2682209014892578e-21,1341104507446289e-21]}),t.setBaseLayer(Dqt(e,r[e]));break;default:t.setSpatialReference(null),t.setBaseLayer(new El(n,r[e]));break}},Dqt=(e,t)=>{if(Aqt.isArray(t)){const r=t.map((n,i)=>new El(`${e}_${i}`,n));return new Ine(e,r)}return new El(e,t)},eBe=e=>new yH.ToolTip(e||"",{cssName:"maptalks-tooltip",showTimeout:0,dy:-60});class Oqt{constructor(){VD(this,"listeners",{})}on(t,r){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(r)}emit(t,...r){const n=this.listeners[t];n&&n.forEach(i=>{i(...r)})}off(t,r){const n=this.listeners[t];n&&(this.listeners[t]=n.filter(i=>i!==r))}}const foe=ke.createContext(Pqt);function tBe(e){function t(r){const n=r||{};return Q(foe.Consumer,{children:i=>Q(e,{...n})})}return t.defaultProps=e.defaultProps,t}function rBe(e){const{onMouseMove:t,mtkConfig:r}=e,n=ke.useRef(),i=ke.useRef(),[a,o]=ke.useState(!1),s=ke.useRef(),l=ke.useRef(),u=ke.useRef(),c=ke.useRef(),f=ke.useRef(),h=ke.useRef(),d=ke.useRef(),v=ke.useRef(new Oqt);ke.useEffect(()=>{if(!r.mapCenter||a)return;const x=r.mapCenter||[120.555,36.198],w=r.mapDefaultZoom||10,b=r.maxZoom||20,T=r.minZoom||2,C=r.pitch||null,P=r.bearing||0,R=[233,233,233],O=r.sky||!1;let k=new kn(n.current,{center:x,zoom:w,bearing:P,maxZoom:b||w+6,minZoom:T||2,fogColor:R,attribution:"",seamlessZoom:!1});C&&k.setPitch(C),k.on("mousemove",function(B){t&&typeof t=="function"&&t(B)}),l.current=new Ane().addTo(k),l.current.disable(),s.current=new J3e().addTo(k),s.current.disable(),u.current=new Tl({mode:"Point"}).addTo(k).disable();const N=e.baseLayer||r.activeBaselayerConfig;if(Qze(N,k,r),h.current=new Mqt(k,{eventsPropagation:!1,draggable:!1,animation:"fade"}),k.on("click",B=>{B.coordinate,h.current.popClose()}),O){const B=new uoe("sky",{zIndex:-1/0});k.addLayer(B)}d.current=Rqt("base-vecLayer",k,{}),d.current.show(),i.current=k;let F=Promise.resolve("test");return Promise.all([F,p()]).then(([B,V])=>{e.onReady&&e.onReady(k),o(!0)}).catch(B=>{}),()=>{}},[r]);function p(){return c.current=new yqt,new Promise((x,w)=>{let b=new pG("three");pG.prototype.coordinateToXYZ=function(T,C=0){const P=this.distanceToVector3(C,C).x;return this.coordinateToVector3(T,P)},b.prepareToDraw=function(T,C,P){const R=new XP(16777215);R.position.set(0,10,10).normalize(),C.add(new g3("#fff")),C.add(R),x(f)},b.config("animation",!0),f.current=b.addTo(i.current)})}ke.useEffect(()=>()=>{},[e.baseLayer]);const g=x=>{Qze(x,i.current,r)},y={map:i.current,threeLayer:f.current,gltfLoader:c.current,vecLayer:d.current,popup:h.current,distanceTool:l.current,areaTool:s.current,ready:a,drawTool:u.current,eventBus:v.current,changeBaseLayer:g};return Q(foe.Provider,{value:y,children:Dt("div",{className:`mtk-map-wrapper ${e.className}`,style:e.styles?{...e.styles}:{},children:[Q("div",{style:{width:"100%",height:"100%"},className:"mtk-map",ref:n}),Q(so,{children:a&&e.children})]})})}const nBe=()=>ke.useContext(foe),Lqt={RankMark:Bwe,BarWithLabelLine:Vwe,BaseGradientBar:Hwe,CircleCountAutoChange:Uwe,CircleCountAutoChange1:Gwe,CircleCountFlower:Wwe,CircleProgress:$we,CircleWithLegend:jwe,CountAndRateSingle:Ywe,DisplayBar:Zwe},Iqt={CountWithImgIcon:CDe},kqt={HefengWeather:pOe,SortableTable:kRe,IconSelectorInput:tke},Nqt={exportExcelFile:NIe},Fqt={AxiosRequest:fx,get:jte,post:_f,postRequest:BIe,getOne:WIe,getTableDatas:$Ie,getTableDatasFree:jIe,editTableData:YIe,addTableData:ZIe,delTableData:KIe,getTableDatasAll:XIe,getTableCount:qIe,useColumnMetaList:JIe,getTableColumns:Yte,columnMetaFormater:Zte,EColumnType:lc,getStaticDayData:VIe,getStaticHourData:HIe,getWindRoseData:UIe,getMultiCount:GIe,getGeoJson:QIe,getXml:eke},zqt={MtkMap:rBe,withOneMap:tBe,useOneMap:nBe,createToolTip:eBe};xn.AxiosRequest=fx,xn.BarWithLabelLine=Vwe,xn.BaseGradientBar=Hwe,xn.Charts=Lqt,xn.CircleCountAutoChange=Uwe,xn.CircleCountAutoChange1=Gwe,xn.CircleCountFlower=Wwe,xn.CircleProgress=$we,xn.CircleWithLegend=jwe,xn.Comps=kqt,xn.CountAndRateSingle=Ywe,xn.CountWithImgIcon=CDe,xn.Display=Iqt,xn.DisplayBar=Zwe,xn.Document=Nqt,xn.EColumnType=lc,xn.HefengWeather=pOe,xn.IconSelectorInput=tke,xn.MtkMap=rBe,xn.OneMap=zqt,xn.RankMark=Bwe,xn.Requests=Fqt,xn.SortableTable=kRe,xn.addTableData=ZIe,xn.columnMetaFormater=Zte,xn.createToolTip=eBe,xn.delTableData=KIe,xn.editTableData=YIe,xn.exportExcelFile=NIe,xn.get=jte,xn.getGeoJson=QIe,xn.getMultiCount=GIe,xn.getOne=WIe,xn.getStaticDayData=VIe,xn.getStaticHourData=HIe,xn.getTableColumns=Yte,xn.getTableCount=qIe,xn.getTableDatas=$Ie,xn.getTableDatasAll=XIe,xn.getTableDatasFree=jIe,xn.getWindRoseData=UIe,xn.getXml=eke,xn.post=_f,xn.postRequest=BIe,xn.useColumnMetaList=JIe,xn.useOneMap=nBe,xn.withOneMap=tBe,Object.defineProperty(xn,Symbol.toStringTag,{value:"Module"})});
|
|
4125
|
+
}`;var Wn=od(function(){return Zi(Ie,fn+"return "+ir).apply(r,Xe)});if(Wn.source=ir,m0(Wn))throw Wn;return Wn}function p4(E){return ba(E).toLowerCase()}function n7(E){return ba(E).toUpperCase()}function i7(E,D,U){if(E=ba(E),E&&(U||D===r))return ng(E);if(!E||!(D=zi(D)))return E;var le=vc(E),Ee=vc(D),Ie=CR(le,Ee),Xe=TR(le,Ee)+1;return Uf(le,Ie,Xe).join("")}function yD(E,D,U){if(E=ba(E),E&&(U||D===r))return E.slice(0,Rf(E)+1);if(!E||!(D=zi(D)))return E;var le=vc(E),Ee=TR(le,vc(D))+1;return Uf(le,0,Ee).join("")}function a7(E,D,U){if(E=ba(E),E&&(U||D===r))return E.replace(or,"");if(!E||!(D=zi(D)))return E;var le=vc(E),Ee=CR(le,vc(D));return Uf(le,Ee).join("")}function lse(E,D){var U=k,le=N;if(Vo(D)){var Ee="separator"in D?D.separator:Ee;U="length"in D?Si(D.length):U,le="omission"in D?zi(D.omission):le}E=ba(E);var Ie=E.length;if(ig(E)){var Xe=vc(E);Ie=Xe.length}if(U>=Ie)return E;var rt=U-Lu(le);if(rt<1)return le;var ht=Xe?Uf(Xe,0,rt).join(""):E.slice(0,rt);if(Ee===r)return ht+le;if(Xe&&(rt+=ht.length-rt),s4(Ee)){if(E.slice(rt).search(Ee)){var Yt,Zt=ht;for(Ee.global||(Ee=og(Ee.source,ba(He.exec(Ee))+"g")),Ee.lastIndex=0;Yt=Ee.exec(Zt);)var ir=Yt.index;ht=ht.slice(0,ir===r?rt:ir)}}else if(E.indexOf(zi(Ee),rt)!=rt){var Fr=ht.lastIndexOf(Ee);Fr>-1&&(ht=ht.slice(0,Fr))}return ht+le}function g4(E){return E=ba(E),E&&en.test(E)?E.replace(jr,$3):E}var o7=Gf(function(E,D,U){return E+(U?" ":"")+D.toUpperCase()}),_D=xw("toUpperCase");function FE(E,D,U){return E=ba(E),D=U?r:D,D===r?VT(E)?UT(E):ew(E):E.match(D)||[]}var od=mi(function(E,D){try{return Ss(E,r,D)}catch(U){return m0(U)?U:new si(U)}}),jw=Xl(function(E,D){return $s(D,function(U){U=_c(U),jo(E,U,AE(E[U],E))}),E});function use(E){var D=E==null?0:E.length,U=vn();return E=D?xa(E,function(le){if(typeof le[1]!="function")throw new Iu(o);return[U(le[0]),le[1]]}):[],mi(function(le){for(var Ee=-1;++Ee<D;){var Ie=E[Ee];if(Ss(Ie[0],this,le))return Ss(Ie[1],this,le)}})}function cse(E){return $h(bo(E,f))}function m4(E){return function(){return E}}function fse(E,D){return E==null||E!==E?D:E}var hse=bw(),dse=bw(!0);function eu(E){return E}function xD(E){return Pv(typeof E=="function"?E:bo(E,f))}function vse(E){return Za(bo(E,f))}function s7(E,D){return ss(E,bo(D,f))}var y4=mi(function(E,D){return function(U){return bg(U,E,D)}}),pse=mi(function(E,D){return function(U){return bg(E,U,D)}});function Yw(E,D,U){var le=dl(D),Ee=Ev(D,le);U==null&&!(Vo(D)&&(Ee.length||!le.length))&&(U=D,D=E,E=this,Ee=Ev(D,dl(D)));var Ie=!(Vo(U)&&"chain"in U)||!!U.chain,Xe=Hv(E);return $s(Ee,function(rt){var ht=D[rt];E[rt]=ht,Xe&&(E.prototype[rt]=function(){var Yt=this.__chain__;if(Ie||Yt){var Zt=E(this.__wrapped__),ir=Zt.__actions__=ia(this.__actions__);return ir.push({func:ht,args:arguments,thisArg:E}),Zt.__chain__=Yt,Zt}return ht.apply(E,Lh([this.value()],arguments))})}),E}function l7(){return Ws._===this&&(Ws._=WT),this}function wD(){}function u7(E){return E=Si(E),mi(function(D){return Kh(D,E)})}var c7=lE(xa),f7=lE(r_),qf=lE(js);function x0(E){return Pg(E)?NT(_c(E)):qt(E)}function Ig(E){return function(D){return E==null?r:Yh(E,D)}}var h7=Sw(),d7=Sw(!0);function zE(){return[]}function _4(){return!1}function gse(){return{}}function kg(){return""}function bD(){return!0}function x4(E,D){if(E=Si(E),E<1||E>te)return[];var U=Y,le=fo(E,Y);D=vn(D),E-=Y;for(var Ee=rw(le,D);++U<E;)D(U);return Ee}function v7(E){return yi(E)?xa(E,_c):bc(E)?[E]:ia(V_(ba(E)))}function tu(E){var D=++sg;return ba(E)+D}var Zw=A_(function(E,D){return E+D},0),p7=Cw("ceil"),K_=A_(function(E,D){return E/D},1),w0=Cw("floor");function mse(E){return E&&E.length?Tv(E,eu,xg):r}function g7(E,D){return E&&E.length?Tv(E,vn(D,2),xg):r}function Wv(E){return bR(E,eu)}function m7(E,D){return bR(E,vn(D,2))}function y7(E){return E&&E.length?Tv(E,eu,Zo):r}function Mo(E,D){return E&&E.length?Tv(E,vn(D,2),Zo):r}var Xo=A_(function(E,D){return E*D},1),Cc=Cw("round"),X_=A_(function(E,D){return E-D},0);function nf(E){return E&&E.length?zT(E,eu):0}function yse(E,D){return E&&E.length?zT(E,vn(D,2)):0}return Ae.after=j_,Ae.ary=ME,Ae.assign=Goe,Ae.assignIn=WG,Ae.assignInWith=Uw,Ae.assignWith=Woe,Ae.at=$oe,Ae.before=Y_,Ae.bind=AE,Ae.bindAll=jw,Ae.bindKey=zw,Ae.castArray=Eoe,Ae.chain=ni,Ae.chunk=H_,Ae.compact=YR,Ae.concat=ZR,Ae.cond=use,Ae.conforms=cse,Ae.constant=m4,Ae.countBy=SE,Ae.create=joe,Ae.curry=PE,Ae.curryRight=RE,Ae.debounce=Bw,Ae.defaults=Yoe,Ae.defaultsDeep=$G,Ae.defer=AG,Ae.delay=iD,Ae.difference=mE,Ae.differenceBy=KR,Ae.differenceWith=kv,Ae.drop=K3,Ae.dropRight=X3,Ae.dropRightWhile=Nv,Ae.dropWhile=XR,Ae.fill=yE,Ae.filter=_G,Ae.flatMap=goe,Ae.flatMapDeep=po,Ae.flatMapDepth=wG,Ae.flatten=id,Ae.flattenDeep=q3,Ae.flattenDepth=J3,Ae.flip=PG,Ae.flow=hse,Ae.flowRight=dse,Ae.fromPairs=qR,Ae.functions=qoe,Ae.functionsIn=Joe,Ae.groupBy=bG,Ae.initial=Rw,Ae.intersection=Q3,Ae.intersectionBy=zv,Ae.intersectionWith=U_,Ae.invert=ese,Ae.invertBy=tse,Ae.invokeMap=CG,Ae.iteratee=xD,Ae.keyBy=CE,Ae.keys=dl,Ae.keysIn=Sc,Ae.map=tD,Ae.mapKeys=nse,Ae.mapValues=ise,Ae.matches=vse,Ae.matchesProperty=s7,Ae.memoize=v0,Ae.merge=ase,Ae.mergeWith=ZG,Ae.method=y4,Ae.methodOf=pse,Ae.mixin=Yw,Ae.negate=DE,Ae.nthArg=u7,Ae.omit=ose,Ae.omitBy=sse,Ae.once=_oe,Ae.orderBy=rD,Ae.over=c7,Ae.overArgs=xoe,Ae.overEvery=f7,Ae.overSome=qf,Ae.partial=aD,Ae.partialRight=RG,Ae.partition=Fw,Ae.pick=hD,Ae.pickBy=Gw,Ae.property=x0,Ae.propertyOf=Ig,Ae.pull=e4,Ae.pullAll=G_,Ae.pullAllBy=Dw,Ae.pullAllWith=Ow,Ae.pullAt=QR,Ae.range=h7,Ae.rangeRight=d7,Ae.rearg=oD,Ae.reject=yoe,Ae.remove=Lw,Ae.rest=woe,Ae.reverse=Iw,Ae.sampleSize=wc,Ae.set=IE,Ae.setWith=XG,Ae.shuffle=TE,Ae.slice=bE,Ae.sortBy=MG,Ae.sortedUniq=n4,Ae.sortedUniqBy=Nw,Ae.split=$w,Ae.spread=boe,Ae.tail=S,Ae.take=A,Ae.takeRight=I,Ae.takeRightWhile=Z,Ae.takeWhile=oe,Ae.tap=qr,Ae.throttle=Soe,Ae.thru=Nn,Ae.toArray=HG,Ae.toPairs=kE,Ae.toPairsIn=qG,Ae.toPath=v7,Ae.toPlainObject=GG,Ae.transform=JG,Ae.unary=Coe,Ae.union=Se,Ae.unionBy=Re,Ae.unionWith=Ve,Ae.uniq=it,Ae.uniqBy=Ft,Ae.uniqWith=Ur,Ae.unset=dD,Ae.unzip=Gn,Ae.unzipWith=cr,Ae.update=Z_,Ae.updateWith=y0,Ae.values=ad,Ae.valuesIn=vD,Ae.without=mn,Ae.words=FE,Ae.wrap=Toe,Ae.xor=jn,Ae.xorBy=Rn,Ae.xorWith=bt,Ae.zip=ut,Ae.zipObject=yt,Ae.zipObjectDeep=Kt,Ae.zipWith=er,Ae.entries=kE,Ae.entriesIn=qG,Ae.extend=WG,Ae.extendWith=Uw,Yw(Ae,Ae),Ae.add=Zw,Ae.attempt=od,Ae.camelCase=t7,Ae.capitalize=NE,Ae.ceil=p7,Ae.clamp=f4,Ae.clone=Moe,Ae.cloneDeep=Poe,Ae.cloneDeepWith=Roe,Ae.cloneWith=Aoe,Ae.conformsTo=DG,Ae.deburr=Xf,Ae.defaultTo=fse,Ae.divide=K_,Ae.endsWith=h4,Ae.eq=Zf,Ae.escape=pD,Ae.escapeRegExp=Og,Ae.every=yG,Ae.find=poe,Ae.findIndex=_E,Ae.findKey=fD,Ae.findLast=xG,Ae.findLastIndex=Fv,Ae.findLastKey=jG,Ae.floor=w0,Ae.forEach=a4,Ae.forEachRight=o4,Ae.forIn=Zoe,Ae.forInRight=Koe,Ae.forOwn=Xoe,Ae.forOwnRight=YG,Ae.get=u4,Ae.gt=OG,Ae.gte=LG,Ae.has=Qoe,Ae.hasIn=c4,Ae.head=JR,Ae.identity=eu,Ae.includes=SG,Ae.indexOf=xc,Ae.inRange=QG,Ae.invoke=rse,Ae.isArguments=p0,Ae.isArray=yi,Ae.isArrayBuffer=OE,Ae.isArrayLike=hl,Ae.isArrayLikeObject=cs,Ae.isBoolean=IG,Ae.isBuffer=g0,Ae.isDate=Doe,Ae.isElement=kG,Ae.isEmpty=Ooe,Ae.isEqual=Loe,Ae.isEqualWith=NG,Ae.isError=m0,Ae.isFinite=FG,Ae.isFunction=Hv,Ae.isInteger=sD,Ae.isLength=Vw,Ae.isMap=lD,Ae.isMatch=zG,Ae.isMatchWith=Ioe,Ae.isNaN=koe,Ae.isNative=iBe,Ae.isNil=Foe,Ae.isNull=Noe,Ae.isNumber=BG,Ae.isObject=Vo,Ae.isObjectLike=Eo,Ae.isPlainObject=LE,Ae.isRegExp=s4,Ae.isSafeInteger=zoe,Ae.isSet=uD,Ae.isString=cD,Ae.isSymbol=bc,Ae.isTypedArray=Hw,Ae.isUndefined=l4,Ae.isWeakMap=Boe,Ae.isWeakSet=Voe,Ae.join=Yf,Ae.kebabCase=_0,Ae.last=As,Ae.lastIndexOf=xE,Ae.lowerCase=Jl,Ae.lowerFirst=Ql,Ae.lt=VG,Ae.lte=Hoe,Ae.max=mse,Ae.maxBy=g7,Ae.mean=Wv,Ae.meanBy=m7,Ae.min=y7,Ae.minBy=Mo,Ae.stubArray=zE,Ae.stubFalse=_4,Ae.stubObject=gse,Ae.stubString=kg,Ae.stubTrue=bD,Ae.multiply=Xo,Ae.nth=wE,Ae.noConflict=l7,Ae.noop=wD,Ae.now=Vv,Ae.pad=d4,Ae.padEnd=rf,Ae.padStart=Lg,Ae.parseInt=Uv,Ae.random=e7,Ae.reduce=moe,Ae.reduceRight=TG,Ae.repeat=v4,Ae.replace=Ww,Ae.result=KG,Ae.round=Cc,Ae.runInContext=ft,Ae.sample=EG,Ae.size=nD,Ae.snakeCase=r7,Ae.some=EE,Ae.sortedIndex=W_,Ae.sortedIndexBy=t4,Ae.sortedIndexOf=kw,Ae.sortedLastIndex=eD,Ae.sortedLastIndexBy=r4,Ae.sortedLastIndexOf=$_,Ae.startCase=gD,Ae.startsWith=Gv,Ae.subtract=X_,Ae.sum=nf,Ae.sumBy=yse,Ae.template=mD,Ae.times=x4,Ae.toFinite=Dg,Ae.toInteger=Si,Ae.toLength=UG,Ae.toLower=p4,Ae.toNumber=Kf,Ae.toSafeInteger=Uoe,Ae.toString=ba,Ae.toUpper=n7,Ae.trim=i7,Ae.trimEnd=yD,Ae.trimStart=a7,Ae.truncate=lse,Ae.unescape=g4,Ae.uniqueId=tu,Ae.upperCase=o7,Ae.upperFirst=_D,Ae.each=a4,Ae.eachRight=o4,Ae.first=JR,Yw(Ae,function(){var E={};return Yl(Ae,function(D,U){Ui.call(Ae.prototype,U)||(E[U]=D)}),E}(),{chain:!1}),Ae.VERSION=n,$s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(E){Ae[E].placeholder=Ae}),$s(["drop","take"],function(E,D){gi.prototype[E]=function(U){U=U===r?1:$o(Si(U),0);var le=this.__filtered__&&!D?new gi(this):this.clone();return le.__filtered__?le.__takeCount__=fo(U,le.__takeCount__):le.__views__.push({size:fo(U,Y),type:E+(le.__dir__<0?"Right":"")}),le},gi.prototype[E+"Right"]=function(U){return this.reverse()[E](U).reverse()}}),$s(["filter","map","takeWhile"],function(E,D){var U=D+1,le=U==V||U==j;gi.prototype[E]=function(Ee){var Ie=this.clone();return Ie.__iteratees__.push({iteratee:vn(Ee,3),type:U}),Ie.__filtered__=Ie.__filtered__||le,Ie}}),$s(["head","last"],function(E,D){var U="take"+(D?"Right":"");gi.prototype[E]=function(){return this[U](1).value()[0]}}),$s(["initial","tail"],function(E,D){var U="drop"+(D?"":"Right");gi.prototype[E]=function(){return this.__filtered__?new gi(this):this[U](1)}}),gi.prototype.compact=function(){return this.filter(eu)},gi.prototype.find=function(E){return this.filter(E).head()},gi.prototype.findLast=function(E){return this.reverse().find(E)},gi.prototype.invokeMap=mi(function(E,D){return typeof E=="function"?new gi(this):this.map(function(U){return bg(U,E,D)})}),gi.prototype.reject=function(E){return this.filter(DE(vn(E)))},gi.prototype.slice=function(E,D){E=Si(E);var U=this;return U.__filtered__&&(E>0||D<0)?new gi(U):(E<0?U=U.takeRight(-E):E&&(U=U.drop(E)),D!==r&&(D=Si(D),U=D<0?U.dropRight(-D):U.take(D-E)),U)},gi.prototype.takeRightWhile=function(E){return this.reverse().takeWhile(E).reverse()},gi.prototype.toArray=function(){return this.take(Y)},Yl(gi.prototype,function(E,D){var U=/^(?:filter|find|map|reject)|While$/.test(D),le=/^(?:head|last)$/.test(D),Ee=Ae[le?"take"+(D=="last"?"Right":""):D],Ie=le||/^find/.test(D);Ee&&(Ae.prototype[D]=function(){var Xe=this.__wrapped__,rt=le?[1]:arguments,ht=Xe instanceof gi,Yt=rt[0],Zt=ht||yi(Xe),ir=function(Oi){var Vi=Ee.apply(Ae,Lh([Oi],rt));return le&&Fr?Vi[0]:Vi};Zt&&U&&typeof Yt=="function"&&Yt.length!=1&&(ht=Zt=!1);var Fr=this.__chain__,fn=!!this.__actions__.length,Fn=Ie&&!Fr,Wn=ht&&!fn;if(!Ie&&Zt){Xe=Wn?Xe:new gi(this);var Dn=E.apply(Xe,rt);return Dn.__actions__.push({func:Nn,args:[ir],thisArg:r}),new Zs(Dn,Fr)}return Fn&&Wn?E.apply(this,rt):(Dn=this.thru(ir),Fn?le?Dn.value()[0]:Dn.value():Dn)})}),$s(["pop","push","shift","sort","splice","unshift"],function(E){var D=Xm[E],U=/^(?:push|sort|unshift)$/.test(E)?"tap":"thru",le=/^(?:pop|shift)$/.test(E);Ae.prototype[E]=function(){var Ee=arguments;if(le&&!this.__chain__){var Ie=this.value();return D.apply(yi(Ie)?Ie:[],Ee)}return this[U](function(Xe){return D.apply(yi(Xe)?Xe:[],Ee)})}}),Yl(gi.prototype,function(E,D){var U=Ae[D];if(U){var le=U.name+"";Ui.call(mv,le)||(mv[le]=[]),mv[le].push({name:D,func:U})}}),mv[M_(r,y).name]=[{name:"wrapper",func:r}],gi.prototype.clone=gc,gi.prototype.reverse=kR,gi.prototype.value=YT,Ae.prototype.at=di,Ae.prototype.chain=li,Ae.prototype.commit=Bv,Ae.prototype.next=i4,Ae.prototype.plant=hoe,Ae.prototype.reverse=doe,Ae.prototype.toJSON=Ae.prototype.valueOf=Ae.prototype.value=voe,Ae.prototype.first=Ae.prototype.head,zh&&(Ae.prototype[zh]=mG),Ae},ag=OR();jc?((jc.exports=ag)._=ag,hv._=ag):Ws._=ag}).call(fu)}(gG,gG.exports);var Aqt=gG.exports;const Pqt={map:null,threeLayer:null,gltfLoader:null,vecLayer:null,popup:null,distanceTool:null,areaTool:null,ready:!1,topicStatus:{},setBaseLayer:()=>{},topicStatusChange:()=>{}},Rqt=(e,t,r)=>new Pm(e,r||{}).addTo(t),Qze=(e,t,r)=>{const[n,i]=e.split("-");switch(n){case"baidu":t.setSpatialReference({projection:"baidu"}),t.setBaseLayer(new El(e,r[e]));break;case"4326":t.setSpatialReference({projection:"EPSG:4326"}),t.setBaseLayer(new El(e,r[e]));break;case"3857":t.setSpatialReference({projection:"EPSG:3857"}),t.setBaseLayer(new El(e,r[e]));break;case"4490":t.setSpatialReference({projection:"EPSG:4490"}),t.setBaseLayer(new El(e,r[e]));break;case"TDTSD":t.setSpatialReference({projection:"EPSG:4490",resolutions:[1.40625,.703125,.3515625,.17578125,.087890625,.0439453125,.02197265625,.010986328125,.0054931640625,.00274658203125,.001373291015625,.0006866455078125,.00034332275390625,.000171661376953125,858306884765625e-19,4291534423828125e-20,21457672119140625e-21,10728836059570312e-21,5364418029785156e-21,2682209014892578e-21,1341104507446289e-21]}),t.setBaseLayer(Dqt(e,r[e]));break;default:t.setSpatialReference(null),t.setBaseLayer(new El(n,r[e]));break}},Dqt=(e,t)=>{if(Aqt.isArray(t)){const r=t.map((n,i)=>new El(`${e}_${i}`,n));return new Ine(e,r)}return new El(e,t)},eBe=e=>new yH.ToolTip(e||"",{cssName:"maptalks-tooltip",showTimeout:0,dy:-60});class Oqt{constructor(){VD(this,"listeners",{})}on(t,r){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(r)}emit(t,...r){const n=this.listeners[t];n&&n.forEach(i=>{i(...r)})}off(t,r){const n=this.listeners[t];n&&(this.listeners[t]=n.filter(i=>i!==r))}}const foe=ke.createContext(Pqt);function tBe(e){function t(r){const n=r||{};return Q(foe.Consumer,{children:i=>Q(e,{...n})})}return t.defaultProps=e.defaultProps,t}function rBe(e){const{onMouseMove:t,mtkConfig:r}=e,n=ke.useRef(),i=ke.useRef(),[a,o]=ke.useState(!1),s=ke.useRef(),l=ke.useRef(),u=ke.useRef(),c=ke.useRef(),f=ke.useRef(),h=ke.useRef(),d=ke.useRef(),v=ke.useRef(new Oqt);ke.useEffect(()=>{if(!(r!=null&&r.mapCenter))throw new Error("mtkConfig 需要在地图组件生命周期最初就给到");const x=r.mapCenter||[120.555,36.198],w=r.mapDefaultZoom||10,b=r.maxZoom||20,T=r.minZoom||2,C=r.pitch||null,P=r.bearing||0,R=[233,233,233],O=r.sky||!1;let k=new kn(n.current,{center:x,zoom:w,bearing:P,maxZoom:b||w+6,minZoom:T||2,fogColor:R,attribution:"",seamlessZoom:!1});C&&k.setPitch(C),k.on("mousemove",function(B){t&&typeof t=="function"&&t(B)}),l.current=new Ane().addTo(k),l.current.disable(),s.current=new J3e().addTo(k),s.current.disable(),u.current=new Tl({mode:"Point"}).addTo(k).disable();const N=e.baseLayer||r.activeBaselayerConfig;if(Qze(N,k,r),h.current=new Mqt(k,{eventsPropagation:!1,draggable:!1,animation:"fade"}),k.on("click",B=>{B.coordinate,h.current.popClose()}),O){const B=new uoe("sky",{zIndex:-1/0});k.addLayer(B)}d.current=Rqt("base-vecLayer",k,{}),d.current.show(),i.current=k;let F=Promise.resolve("test");return Promise.all([F,p()]).then(([B,V])=>{e.onReady&&e.onReady(k),o(!0)}).catch(B=>{}),()=>{}},[]);function p(){return c.current=new yqt,new Promise((x,w)=>{let b=new pG("three");pG.prototype.coordinateToXYZ=function(T,C=0){const P=this.distanceToVector3(C,C).x;return this.coordinateToVector3(T,P)},b.prepareToDraw=function(T,C,P){const R=new XP(16777215);R.position.set(0,10,10).normalize(),C.add(new g3("#fff")),C.add(R),x(f)},b.config("animation",!0),f.current=b.addTo(i.current)})}ke.useEffect(()=>()=>{},[e.baseLayer]);const g=x=>{Qze(x,i.current,r)},y={map:i.current,threeLayer:f.current,gltfLoader:c.current,vecLayer:d.current,popup:h.current,distanceTool:l.current,areaTool:s.current,ready:a,drawTool:u.current,eventBus:v.current,changeBaseLayer:g};return Q(foe.Provider,{value:y,children:Dt("div",{className:`mtk-map-wrapper ${e.className}`,style:e.styles?{...e.styles}:{},children:[Q("div",{style:{width:"100%",height:"100%"},className:"mtk-map",ref:n}),Q(so,{children:a&&e.children})]})})}const nBe=()=>ke.useContext(foe),Lqt={RankMark:Bwe,BarWithLabelLine:Vwe,BaseGradientBar:Hwe,CircleCountAutoChange:Uwe,CircleCountAutoChange1:Gwe,CircleCountFlower:Wwe,CircleProgress:$we,CircleWithLegend:jwe,CountAndRateSingle:Ywe,DisplayBar:Zwe},Iqt={CountWithImgIcon:CDe},kqt={HefengWeather:pOe,SortableTable:kRe,IconSelectorInput:tke},Nqt={exportExcelFile:NIe},Fqt={AxiosRequest:fx,get:jte,post:_f,postRequest:BIe,getOne:WIe,getTableDatas:$Ie,getTableDatasFree:jIe,editTableData:YIe,addTableData:ZIe,delTableData:KIe,getTableDatasAll:XIe,getTableCount:qIe,useColumnMetaList:JIe,getTableColumns:Yte,columnMetaFormater:Zte,EColumnType:lc,getStaticDayData:VIe,getStaticHourData:HIe,getWindRoseData:UIe,getMultiCount:GIe,getGeoJson:QIe,getXml:eke},zqt={MtkMap:rBe,withOneMap:tBe,useOneMap:nBe,createToolTip:eBe};xn.AxiosRequest=fx,xn.BarWithLabelLine=Vwe,xn.BaseGradientBar=Hwe,xn.Charts=Lqt,xn.CircleCountAutoChange=Uwe,xn.CircleCountAutoChange1=Gwe,xn.CircleCountFlower=Wwe,xn.CircleProgress=$we,xn.CircleWithLegend=jwe,xn.Comps=kqt,xn.CountAndRateSingle=Ywe,xn.CountWithImgIcon=CDe,xn.Display=Iqt,xn.DisplayBar=Zwe,xn.Document=Nqt,xn.EColumnType=lc,xn.HefengWeather=pOe,xn.IconSelectorInput=tke,xn.MtkMap=rBe,xn.OneMap=zqt,xn.RankMark=Bwe,xn.Requests=Fqt,xn.SortableTable=kRe,xn.addTableData=ZIe,xn.columnMetaFormater=Zte,xn.createToolTip=eBe,xn.delTableData=KIe,xn.editTableData=YIe,xn.exportExcelFile=NIe,xn.get=jte,xn.getGeoJson=QIe,xn.getMultiCount=GIe,xn.getOne=WIe,xn.getStaticDayData=VIe,xn.getStaticHourData=HIe,xn.getTableColumns=Yte,xn.getTableCount=qIe,xn.getTableDatas=$Ie,xn.getTableDatasAll=XIe,xn.getTableDatasFree=jIe,xn.getWindRoseData=UIe,xn.getXml=eke,xn.post=_f,xn.postRequest=BIe,xn.useColumnMetaList=JIe,xn.useOneMap=nBe,xn.withOneMap=tBe,Object.defineProperty(xn,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qlqz-frame",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.8",
|
|
5
5
|
"author": "leecheck qlqz-studio",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"serve": "vite preview"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@ant-design/icons": "
|
|
23
|
+
"@ant-design/icons": "4.2.2",
|
|
24
24
|
"@ant-design/charts": "^1.0.18",
|
|
25
25
|
"@ant-design/pro-field": "^1.22.6",
|
|
26
26
|
"@ant-design/pro-form": "^1.43.5",
|
|
@@ -55,11 +55,6 @@
|
|
|
55
55
|
"jszip": "3.10.1",
|
|
56
56
|
"lodash": "4.17.21",
|
|
57
57
|
"mapshaper": "0.5.85",
|
|
58
|
-
"maptalks": "^1.0.0-rc.27",
|
|
59
|
-
"maptalks.heatmap": "0.6.1",
|
|
60
|
-
"maptalks.odline": "0.4.2",
|
|
61
|
-
"maptalks.three": "^0.36.1",
|
|
62
|
-
"maptalks.tileclusterlayer": "^0.0.10",
|
|
63
58
|
"mockjs": "^1.1.0",
|
|
64
59
|
"node-sass": "9.0.0",
|
|
65
60
|
"node-stdlib-browser": "1.2.0",
|
|
@@ -109,6 +104,11 @@
|
|
|
109
104
|
"xml2json-light": "1.0.6"
|
|
110
105
|
},
|
|
111
106
|
"devDependencies": {
|
|
107
|
+
"maptalks": "^1.0.0-rc.27",
|
|
108
|
+
"maptalks.heatmap": "0.6.1",
|
|
109
|
+
"maptalks.odline": "0.4.2",
|
|
110
|
+
"maptalks.three": "^0.36.1",
|
|
111
|
+
"maptalks.tileclusterlayer": "^0.0.10",
|
|
112
112
|
"@types/classnames": "^2.2.9",
|
|
113
113
|
"@types/node": "^14.14.31",
|
|
114
114
|
"@types/qs": "^6.9.5",
|