gis-map-xinjiang 0.1.0 → 0.1.2
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/gismap.es.js +2 -2
- package/dist/gismap.umd.js +1 -1
- package/package.json +1 -1
package/dist/gismap.es.js
CHANGED
|
@@ -295971,7 +295971,7 @@ function WDt(r, e, t) {
|
|
|
295971
295971
|
projection: "EPSG:4326"
|
|
295972
295972
|
}),
|
|
295973
295973
|
zIndex: 1
|
|
295974
|
-
}),
|
|
295974
|
+
}), fetch(_).then((k) => k.json()).then((k) => {
|
|
295975
295975
|
let V = new OM();
|
|
295976
295976
|
c.value = new zS({
|
|
295977
295977
|
layerName: "xxxx",
|
|
@@ -296202,7 +296202,7 @@ function HDt(r, e, t) {
|
|
|
296202
296202
|
let S = x.xyArr.map((b) => b), w = new lY({
|
|
296203
296203
|
geometry: new dY(S)
|
|
296204
296204
|
});
|
|
296205
|
-
w.setStyle(
|
|
296205
|
+
w.set("popoup", x.popoup), w.set("otherInfo", x.otherInfo), w.setStyle(
|
|
296206
296206
|
new Mc({
|
|
296207
296207
|
stroke: new Em({
|
|
296208
296208
|
color: x.color,
|
package/dist/gismap.umd.js
CHANGED
|
@@ -1295,4 +1295,4 @@ echarts.use([`+A+"]);":"Unknown series "+M))}return}if(c==="tooltip"){if(_){proc
|
|
|
1295
1295
|
* build-time: 2024-5-30 0:2
|
|
1296
1296
|
* LICENSE: MIT
|
|
1297
1297
|
* (c) 2017-2024 https://sakitam-fdd.github.io/ol3Echarts
|
|
1298
|
-
*/function tie(){return[1,0,0,1,0,0]}function q9n(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Z9n(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function iPe(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function UDt(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function K9n(r,e,t){var n=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),h=Math.cos(t);return r[0]=n*h+o*u,r[1]=-n*u+o*h,r[2]=i*h+s*u,r[3]=-i*u+h*s,r[4]=h*a+u*l,r[5]=h*l-u*a,r}function J9n(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function Q9n(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function WDt(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}var HDt=q9n,XDt=5e-5;function GL(r){return r>XDt||r<-XDt}var $L=[],w4=[],aPe=tie(),oPe=Math.abs,sPe=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return GL(this.rotation)||GL(this.x)||GL(this.y)||GL(this.scaleX-1)||GL(this.scaleY-1)||GL(this.skewX)||GL(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&HDt(n);return}n=n||tie(),t?this.getLocalTransform(n):HDt(n),e&&(t?iPe(n,e,n):Z9n(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale($L);var n=$L[0]<0?-1:1,i=$L[1]<0?-1:1,a=(($L[0]-n)*t+n)/$L[0]||0,o=(($L[1]-i)*t+i)/$L[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||tie(),Q9n(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(iPe(w4,e.invTransform,t),t=w4);var n=this.originX,i=this.originY;(n||i)&&(aPe[4]=n,aPe[5]=i,iPe(w4,t,aPe),w4[4]-=n,w4[5]-=i,t=w4),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&WDt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&WDt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&oPe(e[0]-1)>1e-10&&oPe(e[3]-1)>1e-10?Math.sqrt(oPe(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){e7n(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,h=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;t[4]=-v*a-f*p*o,t[5]=-p*o-d*v*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,u&&K9n(t,t,u),t[4]+=n+h,t[5]+=i+c,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),YDt=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function e7n(r,e){for(var t=0;t<YDt.length;t++){var n=YDt[t];r[n]=e[n]}}var jv=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}(),rie=Math.min,nie=Math.max,zL=new jv,VL=new jv,UL=new jv,WL=new jv,Oz=new jv,Rz=new jv,jDt=function(){function r(e,t,n,i){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return r.prototype.union=function(e){var t=rie(e.x,this.x),n=rie(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nie(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=nie(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=tie();return UDt(a,a,[-t.x,-t.y]),J9n(a,a,[n,i]),UDt(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(a<l||u<i||s<h||c<o);if(t){var d=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-h),m=Math.abs(c-o),_=Math.min(p,g),x=Math.min(y,m);a<l||u<i?_>v&&(v=_,p<g?jv.set(Rz,-p,0):jv.set(Rz,g,0)):_<d&&(d=_,p<g?jv.set(Oz,p,0):jv.set(Oz,-g,0)),s<h||c<o?x>v&&(v=x,y<m?jv.set(Rz,0,-y):jv.set(Rz,0,m)):_<d&&(d=_,y<m?jv.set(Oz,0,y):jv.set(Oz,0,-m))}return t&&jv.copy(t,f?Oz:Rz),f},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}zL.x=UL.x=t.x,zL.y=WL.y=t.y,VL.x=WL.x=t.x+t.width,VL.y=UL.y=t.y+t.height,zL.transform(n),WL.transform(n),VL.transform(n),UL.transform(n),e.x=rie(zL.x,VL.x,UL.x,WL.x),e.y=rie(zL.y,VL.y,UL.y,WL.y);var l=nie(zL.x,VL.x,UL.x,WL.x),u=nie(zL.y,VL.y,UL.y,WL.y);e.width=l-e.x,e.height=u-e.y},r}(),HL=r=>{var e=typeof r;return r!==null&&(e==="object"||e==="function")},qDt=(r,e)=>(Object.keys(e).forEach(t=>{HL(e[t])&&HL(r[t])?qDt(r[t],e[t]):r[t]=e[t]}),r),lPe=function(r,e,...t){return function(...n){return r.apply(e,t.concat(Array.prototype.slice.call(n)))}},ZDt=function(r,e){for(var t=0,n,i=r.length;t<i;t++)if(r[t].index===e.index){n=t;break}return n===void 0?r.push(e):r[n]=e,r},KDt=function(){function r(e){return e?(e^Math.random()*16>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}return r()};function JDt(r,e){r.forEach(t=>{e[t]&&(e[t]=e[t].bind(e))})}function uPe(r){return r&&r.parentNode?r.parentNode.removeChild(r):null}function iie(r,e){var t=new MouseEvent(r,{bubbles:!0,cancelable:!0,button:e.pointerEvent.button,buttons:e.pointerEvent.buttons,clientX:e.pointerEvent.clientX,clientY:e.pointerEvent.clientY,zrX:e.pointerEvent.offsetX,zrY:e.pointerEvent.offsetY,movementX:e.pointerEvent.movementX,movementY:e.pointerEvent.movementY,relatedTarget:e.pointerEvent.relatedTarget,screenX:e.pointerEvent.screenX,screenY:e.pointerEvent.screenY,view:window});return t.zrX=e.pointerEvent.offsetX,t.zrY=e.pointerEvent.offsetY,t.event=t,t}function t7n(r,e){for(var t=r.split("."),n=e.split("."),i=0;i<3;i++){var a=Number(t[i]),o=Number(n[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return 0}var r7n=r=>!r.UTF8Encoding,QDt=(r,e,t)=>{for(var n=[],i=[e[0],e[1]],a=i[0],o=i[1],s=0;s<r.length;s+=2){var l=r.charCodeAt(s)-64,u=r.charCodeAt(s+1)-64;l=l>>1^-(l&1),u=u>>1^-(u&1),l+=a,u+=o,a=l,o=u,n.push([l/t,u/t])}return n},n7n=r=>{if(r7n(r))return r;var e=r.UTF8Scale;e==null&&(e=1024);for(var t=r.features,n=0;n<t.length;n++)for(var i=t[n],a=i.geometry,o=[a.coordinates,a.encodeOffsets],s=o[0],l=o[1],u=0;u<s.length;u++){var h=s[u];if(a.type==="Polygon")s[u]=QDt(h,l[u],e);else if(a.type==="MultiPolygon")for(var c=0;c<h.length;c++){var f=h[c];h[c]=QDt(f,l[u][c],e)}}return r.UTF8Encoding=!1,r};function i7n(r){var e=n7n(r),t=e.features.filter(i=>i.geometry&&i.properties&&i.geometry.coordinates.length>0),n=t.map(i=>{var a=i.properties,o=i.geometry,s=o.coordinates,l=[];return o.type==="Polygon"&&l.push(s[0]),o.type==="MultiPolygon"&&s.forEach(u=>{u[0]&&l.push(u[0])}),{properties:a,type:"Feature",geometry:{type:"Polygon",coordinates:l}}});return{type:"FeatureCollection",crs:{},features:n}}var a7n=function(r,e,t){return e.center=t.dataToPoint(e.coordinates),e},o7n=function(r,e,t){return HL(r.grid)&&!Array.isArray(r.grid)?console.log(r):Array.isArray(r.grid)&&(r.grid=r.grid.map((n,i)=>{var a=t.dataToPoint(r.series[i].coordinates);return n.left=a[0]-parseFloat(n.width)/2,n.top=a[1]-parseFloat(n.height)/2,n})),e},s7n=function(r,e,t){return HL(r.grid)&&!Array.isArray(r.grid)?console.log(r):Array.isArray(r.grid)&&(r.grid=r.grid.map((n,i)=>{var a=t.dataToPoint(r.series[i].coordinates);return n.left=a[0]-parseFloat(n.width)/2,n.top=a[1]-parseFloat(n.height)/2,n})),e},l7n=Object.freeze({pie:a7n,bar:o7n,line:s7n}),u7n={forcedRerender:!1,forcedPrecomposeRerender:!1,hideOnZooming:!1,hideOnMoving:!1,hideOnRotating:!1,convertTypes:["pie","line","bar"],insertFirst:!1,stopEvent:!1,polyfillEvents:t7n(eNt,"6.1.1")<=0};class tE extends Ky{constructor(e,t,n){var i=Object.assign(u7n,t);super(i),this._options=i,this._chartOptions=e,this.set("chartOptions",e),this.$chart=null,this.$container=void 0,this._isRegistered=!1,this._initEvent=!1,this._incremental=[],this._coordinateSystem=null,this.coordinateSystemId="",this.prevVisibleState="",JDt(["redraw","onResize","onZoomEnd","onCenterChange","onDragRotateEnd","onMoveStart","onMoveEnd","mouseDown","mouseUp","onClick","mouseMove"],this),n&&this.setMap(n)}appendTo(e,t=!1){this.setMap(e,t)}getMap(){return this._map}setMap(e,t=!1){if(e&&(t||e instanceof iOe))this._map=e,this._map.once("postrender",()=>{this.handleMapChanged()}),this._map.renderSync();else throw new Error("not ol map object")}getChartOptions(){return this.get("chartOptions")}setChartOptions(e={}){return this._chartOptions=e,this.set("chartOptions",e),this.clearAndRedraw(),this}appendData(e,t=!0){return e&&(t&&(this._incremental=ZDt(this._incremental,{index:this._incremental.length,data:e.data,seriesIndex:e.seriesIndex})),this.$chart.appendData({data:e.data.copyWithin(),seriesIndex:e.seriesIndex})),this}clear(e){e||(this._incremental=[]),this.$chart&&this.$chart.clear()}remove(){this.clear(),this.$chart&&this.$chart.dispose(),this._initEvent&&this.$container&&(this.$container&&uPe(this.$container),this.unBindEvent()),delete this.$chart,delete this._map}show(){this.setVisible(!0)}innerShow(){this.$container&&(this.$container.style.display=this.prevVisibleState,this.prevVisibleState="")}hide(){this.setVisible(!1)}innerHide(){this.$container&&(this.prevVisibleState=this.$container.style.display,this.$container.style.display="none")}isVisible(){return this.$container&&this.$container.style.display!=="none"}showLoading(){this.$chart&&this.$chart.showLoading()}hideLoading(){this.$chart&&this.$chart.hideLoading()}setZIndex(e){this.$container&&(typeof e=="number"&&(e=String(e)),this.$container.style.zIndex=e)}getZIndex(){return this.$container&&this.$container.style.zIndex}setVisible(e){e?(this.$container&&(this.$container.style.display=""),this._chartOptions=this.getChartOptions(),this.clearAndRedraw()):(this.$container&&(this.$container.style.display="none"),this.clear(!0),this._chartOptions={},this.clearAndRedraw())}render(){!this.$chart&&this.$container?(this.$chart=ULn(this.$container),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1)),this.dispatchEvent({type:"load",source:this,value:this.$chart})):this.isVisible()&&this.redraw()}redraw(){this.clearAndRedraw()}updateViewSize(e){this.$container&&(this.$container.style.width=`${e[0]}px`,this.$container.style.height=`${e[1]}px`,this.$container.setAttribute("width",String(e[0])),this.$container.setAttribute("height",String(e[1])))}onResize(e){var t=this.getMap();if(t){var n=t.getSize();this.updateViewSize(n),this.clearAndRedraw(),e&&this.dispatchEvent({type:"change:size",source:this,value:n})}}onZoomEnd(){this._options.hideOnZooming&&this.innerShow();var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"zoomend",source:this,value:e.getView().getZoom()}))}onDragRotateEnd(){this._options.hideOnRotating&&this.innerShow();var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:rotation",source:this,value:e.getView().getRotation()}))}onMoveStart(){this._options.hideOnMoving&&this.innerHide();var e=this.getMap();e&&e.getView()&&this.dispatchEvent({type:"movestart",source:this,value:e.getView().getCenter()})}onMoveEnd(){this._options.hideOnMoving&&this.innerShow();var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"moveend",source:this,value:e.getView().getCenter()}))}onClick(e){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("click",e))}mouseDown(e){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("mousedown",e))}mouseUp(e){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("mouseup",e))}mouseMove(e){if(this.$chart)for(var t=e.originalEvent.target;t;){if(t.className==="ol-overlaycontainer-stopevent"){this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("mousemove",e));return}t=t.parentElement}}onCenterChange(){var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:center",source:this,value:e.getView().getCenter()}))}handleMapChanged(){var e=this.getMap();if(this._initEvent&&this.$container&&(this.$container&&uPe(this.$container),this.unBindEvent()),this.$container||(this.createLayerContainer(),this.onResize(!1)),e){var t=this._options.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this._options.insertFirst?t.insertBefore(this.$container,t.childNodes[0]||null):t.appendChild(this.$container),this.render(),this.bindEvent(e)}}createLayerContainer(){this.$container=document.createElement("div"),this.$container.style.position="absolute",this.$container.style.top="0px",this.$container.style.left="0px",this.$container.style.right="0px",this.$container.style.bottom="0px",this.$container.style.pointerEvents="auto"}bindEvent(e){var t=e.getView();this._options.forcedPrecomposeRerender&&e.on("precompose",this.redraw),e.on("change:size",this.onResize),t.on("change:resolution",this.onZoomEnd),t.on("change:center",this.onCenterChange),t.on("change:rotation",this.onDragRotateEnd),e.on("movestart",this.onMoveStart),e.on("moveend",this.onMoveEnd),this._options.polyfillEvents&&(e.on("pointerdown",this.mouseDown),e.on("pointerup",this.mouseUp),e.on("pointermove",this.mouseMove),e.on("click",this.onClick)),this._initEvent=!0}unBindEvent(){var e=this.getMap();if(e){var t=e.getView();t&&(e.un("precompose",this.redraw),e.un("change:size",this.onResize),t.un("change:resolution",this.onZoomEnd),t.un("change:center",this.onCenterChange),t.un("change:rotation",this.onDragRotateEnd),e.un("movestart",this.onMoveStart),e.un("moveend",this.onMoveEnd),this._options.polyfillEvents&&(e.un("pointerdown",this.mouseDown),e.un("pointerup",this.mouseUp),e.un("pointermove",this.mouseMove),e.un("click",this.onClick)),this._initEvent=!1)}}clearAndRedraw(){if(!(!this.$chart||!this.isVisible())){if(this._options.forcedRerender&&this.$chart.clear(),this.$chart.resize(),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1),this._incremental&&this._incremental.length>0))for(var e=0;e<this._incremental.length;e++)this.appendData(this._incremental[e],!1);this.dispatchEvent({type:"redraw",source:this})}}registerMap(){if(this._isRegistered||(this.coordinateSystemId=`openlayers_${KDt()}`,C2t(this.coordinateSystemId,this.getCoordinateSystem(this._options)),this._isRegistered=!0),this._chartOptions){var e=this._chartOptions.series;if(e&&HL(e)){var t=this._options.convertTypes;if(t)for(var n=e.length-1;n>=0;n--)t.indexOf(e[n].type)>-1||(e[n].coordinateSystem=this.coordinateSystemId),e[n].animation=!1}}}convertData(e){var t=e.series;if(t&&t.length>0){if(!this._coordinateSystem){var n=this.getCoordinateSystem(this._options);this._coordinateSystem=new n(this.getMap())}if(t&&HL(t)){var i=this._options.convertTypes;if(i)for(var a=t.length-1;a>=0;a--)i.indexOf(t[a].type)>-1&&t[a]&&t[a].hasOwnProperty("coordinates")&&(t[a]=l7n[t[a].type](e,t[a],this._coordinateSystem))}}return e}getCoordinateSystem(e){var t=this.getMap(),n=this.coordinateSystemId;class i{constructor(o){this._mapOffset=[0,0],this.dimensions=["lng","lat"],this._roamTransformable=new sPe,this._rawTransformable=new sPe,this._viewRect=new jDt(0,0,0,0),this.map=o,this.dimensions=["lng","lat"],this.projCode=i.getProjectionCode(this.map)}getZoom(){return this.map.getView().getZoom()}setZoom(o){return this.map.getView().setZoom(o)}getViewRectAfterRoam(){return this.getViewRect().clone()}setMapOffset(o){this._mapOffset=o}dataToPoint(o){var s;if(o&&Array.isArray(o)&&o.length>0){s=o.map(f=>{var d=0;return typeof f=="string"?d=Number(f):d=f,d});var l=e&&e.source||"EPSG:4326",u=e&&e.destination||this.projCode,h=this.map.getPixelFromCoordinate(zLe(s,l,u)),c=this._mapOffset;return[h[0]-c[0],h[1]-c[1]]}return[0,0]}pointToData(o){var s=this._mapOffset;return this.map.getCoordinateFromPixel([o[0]+s[0],o[1]+s[1]])}setViewRect(){var o=this.map.getSize();this._viewRect=new jDt(0,0,o[0],o[1])}getViewRect(){return this._viewRect}getRoamTransform(){return this._roamTransformable.getLocalTransform()}prepareCustoms(){var o=this.getViewRect();return{coordSys:{type:n,x:o.x,y:o.y,width:o.width,height:o.height},api:{coord:lPe(this.dataToPoint,this),size:lPe(this.dataToCoordsSize,this)}}}dataToCoordsSize(o,s=[0,0]){return[0,1].map(l=>{var u=s[l],h=[],c=[],f=o[l]/2;h[l]=u-f,c[l]=u+f,h[1-l]=s[1-l],c[1-l]=s[1-l];var d=this.dataToPoint(h)[l]-this.dataToPoint(c)[l];return Math.abs(d)})}getTransformInfo(){var o=this._rawTransformable,s=this._roamTransformable,l=new sPe;return l.transform=s.transform,l.decomposeTransform(),{roam:{x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY},raw:{x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY}}}}return i.dimensions=i.prototype.dimensions||["lng","lat"],i.create=function(a){a.eachSeries(o=>{o.get("coordinateSystem")===n&&(o.coordinateSystem=new i(t))})},i.getProjectionCode=function(a){var o="";return a?o=a.getView()&&a.getView().getProjection().getCode():o="EPSG:3857",o},i}dispatchEvent(e){return super.dispatchEvent(e)}set(e,t,n){return super.set(e,t,n)}get(e){return super.get(e)}unset(e,t){return super.unset(e,t)}on(e,t){return super.on(e,t)}un(e,t){return super.un(e,t)}}tE.formatGeoJSON=i7n,tE.bind=lPe,tE.merge=qDt,tE.uuid=KDt,tE.bindAll=JDt,tE.arrayAdd=ZDt,tE.removeNode=uPe,tE.isObject=HL;const eOt=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},h7n={props:{popupAttr:Array},data(){return{clusterList:[],rightComponent:null,popupAttributes:null,selectedIndex:null}},mounted(){this.selectedIndex=0},computed:{},methods:{danji(r,e){this.selectedIndex=e}},watch:{popupAttr:{handler(r,e){this.clusterList=r.map(t=>t.getProperties())},immediate:!0}}},c7n={class:"clusterListPopup"},f7n={class:"paginate-list"},d7n=["onClick"],v7n=["title"];function p7n(r,e,t,n,i,a){return Bn.openBlock(),Bn.createElementBlock("div",c7n,[Bn.createElementVNode("ul",f7n,[(Bn.openBlock(!0),Bn.createElementBlock(Bn.Fragment,null,Bn.renderList(i.clusterList,(o,s)=>(Bn.openBlock(),Bn.createElementBlock("li",{class:Bn.normalizeClass(["list-item",{active:i.selectedIndex===s}]),key:s,onClick:l=>a.danji(o,s)},[Bn.createElementVNode("div",{class:"item-content",title:o.otherInfo.name},Bn.toDisplayString(o.otherInfo.name),9,v7n)],10,d7n))),128))])])}const g7n=eOt(h7n,[["render",p7n],["__scopeId","data-v-564c9ffd"]]);function hPe(r,e,t){const n=Bn.ref(null),i=Bn.ref(!1),a=Bn.ref(null),o=Bn.ref(null),s=Bn.ref(null),l=Bn.ref(null),u=Bn.ref(null),h=Bn.ref(null),c=Bn.ref(null),f=Bn.ref(null),d=Bn.ref(null),v=Bn.ref(null),p=Bn.ref(null),g="http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?",y="https://service.sdmap.gov.cn/tileservice/dsfg_qsb?",m="https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?",_="/china_full.json",x="/xinjiang.json",S="/xinjiangArea.json",w="/sdArea.json",b="/ditieline.json",E="#1b2639",C="#eeeee9",T="#adb0aa",M="#3578E0",A="#b4b4b1",I="#d3d3d3",D=Bn.computed(()=>["dark","light","yingxiang"].includes(e.value)?e.value:"dark"),O=()=>{let N;D.value==="light"?N=y:D.value==="yingxiang"?N=m:N=g,s.value=new AD({source:new Mx({url:N,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value);const k=()=>{fetch(S).then(j=>j.json()).then(j=>{p.value=new RS({layerName:"xinjiangDQLayer",source:new Q1({features:new jT().readFeatures(j,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:new bf({stroke:new Jy({color:"#47B8A2",width:1}),fill:new wf({color:"rgba(0, 0, 0, 0)"})}),zIndex:25}),r.value.addLayer(p.value)}).catch(j=>{console.error("加载新疆各地市分界线数据失败:",j)})};let V=new AD({layerName:"xinjiangYXLayer",source:new ty({url:"http://10.105.1.49:8090/iserver/services/XJyingxiang_2000/rest/maps/XJyingxiang_2000"}),zIndex:23,projection:"EPSG:4326"});r.value.addLayer(V);let B=new AD({layerName:"xinjiangGSLayer",source:new ty({url:"http://10.105.1.49:8090/iserver/services/map-luxian/rest/maps/年报高速"}),zIndex:26,projection:"EPSG:4326"});r.value.addLayer(B),setTimeout(()=>{fetch(x).then(j=>j.json()).then(j=>{for(let ee=1;ee<=20;ee++){const H=Math.round(5*(1-(ee-1)/19)+3*((ee-1)/19)),Q=Math.round(126*(1-(ee-1)/19)+37*((ee-1)/19)),se=Math.round(230*(1-(ee-1)/19)+95*((ee-1)/19)),ie=1,he=new RS({source:new Q1({features:new jT().readFeatures(j,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:new bf({fill:new wf({color:`rgba(${H}, ${Q}, ${se}, ${ie})`})}),zIndex:21-ee});he.getSource().forEachFeature(de=>{const ye=de.getGeometry();if(ye){const me=ye.clone();me.translate(0,-.03*ee),de.setGeometry(me)}}),r.value.addLayer(he)}const Y=new RS({layerName:"xinjiangSJLayer",source:new Q1({features:new jT().readFeatures(j,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:new bf({fill:new wf({color:"rgba(4, 71, 146, 0.12)"}),stroke:new Jy({color:"#36BDFD",width:3})}),zIndex:24});r.value.addLayer(Y)}).catch(j=>{console.error("加载新疆区域数据失败:",j)})},1e3),setTimeout(k,1500),r.value.on("click",j=>{let Y=j.coordinate;u.value=Y;let ee=document.getElementById("popupHeaderTitle"),H=r.value.forEachFeatureAtPixel(j.pixel,(Q,se)=>{const ie=se.get("layerName");return ie==="xinjiangDQLayer"||ie==="xinjiangSJLayer"||ie==null?null:Q});if(H)if(H.getProperties().features)if(H.getProperties().features.length>1){const Q=H.getProperties().features;if(r.value.getView().getZoom()>=18){h.value=350,c.value=430,d.value=g7n,v.value=Q,ee&&(ee.innerHTML="",ee.innerHTML="点位列表"),t("showPopup");let se=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),ie=h.value/153.6*se,he=c.value/153.6*se;l.value.setPosition(Y),l.value.setOffset([-he/2,-ie]);let de=r.value.getPixelFromCoordinate(Y),ye=[de[0],de[1]-150],me=r.value.getCoordinateFromPixel(ye);r.value.getView().animate({center:me,duration:800})}else r.value.getView().animate({center:H.getGeometry().getCoordinates(),zoom:r.value.getView().getZoom()*2,duration:1200})}else{let Q=H.getProperties().features[0].getProperties();if(Q){if(Q.isDrawn)return;if(Q.popoup===!1){t("clickPointEvent",Q);return}Q.type&&t("showPopup")}else t("closePopup");let se=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),ie=h.value/153.6*se,he=c.value/153.6*se;l.value.setPosition(Y),l.value.setOffset([-he/2,-ie]);let de=r.value.getPixelFromCoordinate(Y),ye=[de[0],de[1]-150],me=r.value.getCoordinateFromPixel(ye);r.value.getView().animate({center:me,duration:800})}else{let Q=H.getProperties();if(Q){if(Q.isDrawn)return;if(Q.popoup===!1){t("clickPointEvent",Q);return}Q.type||t("closePopup")}else t("closePopup");let se=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),ie=h.value/192*se,he=c.value/192*se;l.value.setPosition(Y),l.value.setOffset([-he/2,-ie]);let de=r.value.getPixelFromCoordinate(Y),ye=[de[0],de[1]-150],me=r.value.getCoordinateFromPixel(ye);r.value.getView().animate({center:me,duration:800})}else t("closePopup")}),r.value.on("pointermove",j=>{let Y=r.value.forEachFeatureAtPixel(j.pixel,ee=>ee);if(Y!==n.value){if(n.value&&t("pointerOutEvent",n.value.getProperties()),Y){let ee=null;if(Y.getProperties().longitude&&Y.getProperties().latitude){let H=[Y.getProperties().longitude,Y.getProperties().latitude];ee=r.value.getPixelFromCoordinate(H)}t("pointerMoveEvent",Y.getProperties(),ee)}n.value=Y}})};return Bn.watch(e,N=>{N==="dark"?s.value&&(r.value.removeLayer(s.value),f.value&&r.value.removeLayer(f.value),s.value=new AD({source:new Mx({url:g,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value),fetch(_).then(k=>k.json()).then(k=>{let V=new jT;f.value=new RS({layerName:"xxxx",source:new Q1({format:V,features:V.readFeatures(k,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(B){return new bf({fill:new wf({color:E}),stroke:new Jy({color:M,width:1})})}}),r.value.addLayer(f.value)})):N==="light"?(r.value.removeLayer(s.value),f.value&&r.value.removeLayer(f.value),s.value=new AD({source:new Mx({url:y,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value),fetch(_).then(k=>k.json()).then(k=>{let V=new jT;f.value=new RS({layerName:"xxxx",source:new Q1({format:V,features:V.readFeatures(k,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(B){return new bf({fill:new wf({color:C}),stroke:new Jy({color:A,width:1})})}}),r.value.addLayer(f.value)})):N==="yingxiang"&&(r.value.removeLayer(s.value),f.value&&r.value.removeLayer(f.value),s.value=new AD({source:new Mx({url:m,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value),fetch(_).then(k=>k.json()).then(k=>{let V=new jT;f.value=new RS({layerName:"xxxx",source:new Q1({format:V,features:V.readFeatures(k,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(B){return new bf({fill:new wf({color:T}),stroke:new Jy({color:I,width:1})})}}),r.value.addLayer(f.value)}))}),{lastHoverFeature:n,isCluster:i,echartslayer:a,congestedRoadLayer:o,tiandituLayer:s,overlayPopup:l,initialPoint:u,popupHeight:h,popupWidth:c,china_full_Layer:f,currentTabComponent:d,popupAttributes:v,darkUrl:g,lightUrl:y,yingxiangUrl:m,geoJSONUrl:_,xjJSONUrl:x,sdAreaUrl:w,subwayLineUrl:b,darkFillColor:E,lightFillColor:C,yingxiangFillColor:T,darkStrokeColor:M,lightStrokeColor:A,yingxiangStrokeColor:I,normalizedThemeStyle:D,initBaseLayers:O}}function cPe(r,e,t){const n=Bn.ref(!1),i=Bn.ref([]),a=Bn.ref([]),o=(p,g)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}r.value.value.getView().animate({center:p,zoom:g,duration:800})},s=(p,g,y,m)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let _=r.value.value.getLayers().getArray(),x=null;for(let w=0;w<_.length;w++){let b=_[w];if(b.get("layerName")===g){x=b;break}}let S=new Q1;if(p.pointList.forEach(w=>{let b=new tV({title:"要素点",geometry:new dD([w.longitude,w.latitude])});b.set("type",w.type),b.set("iconUrl",w.iconUrl),b.set("popoup",w.popoup),b.set("otherInfo",w.otherInfo),b.set("longitude",w.longitude),b.set("latitude",w.latitude),b.set("isVisible",!1),b.set("layerId",g);let E=[new bf({image:new xD({src:w.iconUrl,scale:w.scale,offset:w.offset,offsetOrigin:"bottom-right",size:w.size})}),new bf({text:new gD({font:w.textFontSize||"14px sans-serif",fill:new wf({color:w.textColor||"rgb(255, 255, 255)"}),stroke:new Jy({color:"rgb(33, 33, 33)",width:0}),backgroundFill:new wf({color:w.textBGColor||"rgba(94, 110, 158, 0.6)"}),backgroundStroke:new Jy({color:"rgba(173, 173, 173, 0.1)",width:1}),text:w.name||"",textAlign:"center",textBaseline:"bottom",offsetX:w.textOffsetX||0,offsetY:w.textOffsetY||40,overflow:!0,padding:[0,2,0,2]}),zIndex:60})];b.setStyle(E),S.addFeature(b)}),y){m.value=new RS({layerName:g,zIndex:999,style:function(b){const E=b.get("features").length;let C;if(E>1){new bf({image:new cae({fill:new wf({color:[233,188,38,.7]}),stroke:new Jy({color:[233,188,38,1],width:1}),points:6,radius:27}),text:new gD({fill:new wf({color:"#ffffff"}),offsetY:2,font:"bold 16px sans-serif",text:E.toString()})});let T=new bf({image:new xD({src:"data:image/svg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giIHJlc3VsdD0ic2hhcGUiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldC8+CjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjQuNSIvPgo8ZmVDb21wb3NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAwLjQwMzkyMiAwIDAgMCAwIDAgMCAwIDAgMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QxX2lubmVyU2hhZG93XzQ0M18zMTAiLz4KPC9maWx0ZXI+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNDQzXzMxMCI+CjxyZWN0IHdpZHRoPSIzNCIgaGVpZ2h0PSI0MiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"}),text:new gD({fill:new wf({color:"#ffffff"}),offsetY:-2,font:"14px sans-serif",text:E.toString()})}),A=new bf({image:new xD({src:b.get("features")[0].getProperties().iconUrl,scale:.5}),text:new gD({fill:new wf({color:"#ffffff"}),offsetY:16,font:"14px sans-serif",text:E.toString()})});if(r.value.value.getView().getZoom()<18)return A;{let I=1;return b.get("features").forEach(D=>{D.getProperties().otherInfo.state===0&&(I=0)}),I===1?T:M}}else return C=b.get("features")[0].getStyle(),C}});const w=new D5t({distance:80,minDistance:200,source:S});x?x.setSource(w):m.value.setSource(w)}else m.value=new RS({layerName:g,zIndex:999}),x?x.setSource(S):m.value.setSource(S);x||r.value.value.addLayer(m.value)},l=(p,g,y)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let m=[];p.forEach(x=>{let S=x.xyArr.map(b=>b),w=new tV({geometry:new dV(S)});w.setStyle(new bf({stroke:new Jy({color:x.color,width:x.width,lineDash:x.lineDash?[10,10]:void 0})})),m.push(w)});let _=new Q1({features:m});y.value=new RS({layerName:g,zIndex:999,source:_}),r.value.value.addLayer(y.value)},u=(p,g)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let y=c(g);y&&r.value.value.removeLayer(y);let m=new F4t({layerName:g,zIndex:900,source:new Q1({features:new jT().readFeatures(p)}),blur:18,radius:2,weight:_=>1});r.value.value.addLayer(m)},h=p=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let g=r.value.value.getLayers().getArray(),y=null;for(let m=0;m<g.length;m++){let _=g[m];if(_.get("layerName")===p){y=_;break}}r.value.value.removeLayer(y)},c=p=>{if(!r||!r.value||!r.value.value)return console.error("Map reference is not valid"),null;let g=r.value.value.getLayers().getArray(),y=null;for(let m=0;m<g.length;m++){let _=g[m];if(_.get("layerName")===p){y=_;break}}return y};return{gongganTextLayerShow:n,gongganTextLayerList:i,sourceWithTextList:a,zoomInBylatlon:o,addPointByArr:s,addLineByArr:l,addHeatmapByArr:u,removeLayerByName:h,findLayerByName:c,isLayerInMap:p=>{if(!r||!r.value||!r.value.value)return console.error("Map reference is not valid"),!1;var g=r.value.value.getLayers().getArray();return g.some(function(y){return y===p})},initEchartsLayer:p=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let g=p,y={};p&&typeof p=="object"&&p.data&&p.settings&&(g=p.data,y=p.settings);let m=new tE(null,{hideOnZooming:!0});m.appendTo(r.value.value);let _=function(I){let D=[];for(let O=0;O<I.length;O++){let N=I[O].latlng;if(N){let k=I[O].bar_data||[0];Array.isArray(k)||(k=[k]);let V=I[O].bar_names||["数据1"];Array.isArray(V)||(V=[V]);let B=I[O].bar_units||["单位"];Array.isArray(B)||(B=[B]),D.push({name:I[O].city,value:N,bar_count:I[O].bar_count||1,color:Array.isArray(I[O].color)?I[O].color:I[O].color?[I[O].color,"#ff7f00"]:["#efda18","#ff7f00"],bar_data:k,bar_names:V,bar_units:B})}}return D};const x=_(g).reduce((I,D)=>I.concat(D.bar_data),[]),S=Math.max(...x,1),w=I=>{let D;if(typeof I=="string"&&I.startsWith("#")){const O=I.replace("#",""),N=parseInt(O.substring(0,2),16),k=parseInt(O.substring(2,4),16),V=parseInt(O.substring(4,6),16);D=`rgba(${N}, ${k}, ${V}, 1)`}else D=I;return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:D.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 1)")},{offset:.6,color:D.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0.4)")},{offset:1,color:D.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0)")}]}},b=_(g).filter(I=>I.bar_count===1),E=_(g).filter(I=>I.bar_count>1),C=E.map(I=>({...I,value:[I.value[0],I.value[1],I.bar_data[0]]})),T=E.map(I=>({...I,value:[I.value[0],I.value[1],I.bar_data[1]||0]})),M=b.map(I=>({...I,value:[I.value[0],I.value[1],I.bar_data[0]]}));let A={tooltip:{show:!0,trigger:"item",formatter:function(I){if(I.seriesName==="车流量"){const D=I.data.bar_names[0]||"数据",O=I.data.bar_data[0]||0,N=I.data.bar_units[0]||"";return`${I.data.name}<br/>${D}: ${O}${N}`}else if(I.seriesName==="车流量1"){const D=I.data.bar_names[0]||"数据1",O=I.data.bar_data[0]||0,N=I.data.bar_units[0]||"";return`${I.data.name}<br/>${D}: ${O}${N}`}else if(I.seriesName==="车流量2"){const D=I.data.bar_names[1]||"数据2",O=I.data.bar_data[1]||0,N=I.data.bar_units[1]||"";return`${I.data.name}<br/>${D}: ${O}${N}`}return`${I.data.name}<br/>数据: ${I.data.bar_data[0]||0}${I.data.bar_units[0]||""}`},backgroundColor:"rgba(0, 0, 0, 0.7)",textStyle:{color:"#fff",fontSize:y.tooltipFontSize||12},padding:y.tooltipPadding||8},series:[{name:"车流量",type:"scatter",coordinateSystem:"geo",data:M,symbolSize:function(I){const D=I[2]||0,O=Math.max(10,D/S*150);return[y.barWidth||15,O]},symbolOffset:[0,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(I){return w(I.data.color[0])}}},{name:"车流量1",type:"scatter",coordinateSystem:"geo",data:C,symbolSize:function(I){const D=I[2]||0,O=Math.max(10,D/S*150);return[y.barWidth||15,O]},symbolOffset:[-8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(I){return w(I.data.color[0])}}},{name:"车流量2",type:"scatter",coordinateSystem:"geo",data:T,symbolSize:function(I){const D=I[2]||0,O=Math.max(10,D/S*150);return[y.barWidth||15,O]},symbolOffset:[8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(I){return w(I.data.color[1])}}}]};return m&&(m.setChartOptions(A),setTimeout(()=>{m.$chart&&m.$chart.on("click",function(I){if(t&&typeof t=="function"){let D=I.data,O=D.value[0],N=D.value[1],k=null;if(O&&N){let V=[O,N];r&&r.value&&r.value.value&&(k=r.value.value.getPixelFromCoordinate(V))}t("barClick",D,k)}})},0)),m},removeEchartsLayer:p=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}if(!p){console.error("ECharts layer is not valid");return}try{p.remove&&typeof p.remove=="function"&&(p.remove(),p=null)}catch(g){console.error("Error removing ECharts layer:",g)}}}}const y7n={id:"popupContent"},fPe=eOt({__name:"index",props:{mapBoxHeight:{type:String,default:"100vh"},mapZoom:{type:String,default:"8.3"},mapCenter:{type:Array,default:()=>[118.65,36.23]},themeStyle:{type:String,default:"dark"}},emits:["clickPointEvent","showPopup","closePopup","pointerMoveEvent","pointerOutEvent","barClick"],setup(r,{expose:e,emit:t}){const n=r,i=t,a=Bn.ref(null),o=Bn.ref(!1),s=Bn.ref(null),l=Bn.ref(null),u=Bn.ref(null),h=Bn.ref(null),c=Bn.ref(null),f=Bn.ref(null),d=Bn.computed(()=>["dark","light","yingxiang"].includes(n.themeStyle)?n.themeStyle:"dark"),v=Bn.computed(()=>({"theme-dark":d.value==="dark","theme-light":d.value==="light","theme-yingxiang":d.value==="yingxiang"})),p=Bn.computed(()=>({"map-dark-background":d.value==="dark","map-light-background":d.value==="light","map-yingxiang-background":d.value==="yingxiang"})),{initBaseLayers:g,overlayPopup:y}=hPe(a,d,i),m=Bn.ref([]),{gongganTextLayerShow:_,gongganTextLayerList:x,sourceWithTextList:S,zoomInBylatlon:w,addPointByArr:b,addLineByArr:E,addHeatmapByArr:C,removeLayerByName:T,findLayerByName:M,isLayerInMap:A,initEchartsLayer:I,removeEchartsLayer:D}=cPe({value:a},m,i),O=()=>{a.value=new iOe({target:"map",view:new K1({center:n.mapCenter,zoom:parseFloat(n.mapZoom),projection:"EPSG:4326",extent:[50,23,122,58]}),controls:ZDe({attribution:!1,zoom:!1,rotate:!1})}),g()},N=()=>{h.value&&typeof h.value.destroyFlv=="function"&&h.value.destroyFlv(),o.value=!1,y.value&&y.value.setPosition(void 0)},k=B=>{i("clickPointEvent",B)},V={zoomInBylatlon:w,initEchartsLayer:I,removeEchartsLayer:D,addPointByArr:(B,W,j=!1)=>b(B,W,j,c),addLineByArr:(B,W)=>E(B,W,f),addHeatmapByArr:C,removeLayerByName:T,findLayerByName:M,isLayerInMap:A,get mapRef(){return a},get gongganTextLayerShow(){return _},get gongganTextLayerList(){return x},get sourceWithTextList(){return S}};return Bn.watch(()=>n.mapZoom,B=>{a.value&&a.value.getView().setZoom(Number(B))}),Bn.onMounted(()=>{O()}),e({map:a,...V}),(B,W)=>(Bn.openBlock(),Bn.createElementBlock("div",{class:Bn.normalizeClass(v.value)},[Bn.createElementVNode("div",{id:"map",class:Bn.normalizeClass(p.value),style:Bn.normalizeStyle({"--height":r.mapBoxHeight})},null,6),Bn.withDirectives(Bn.createElementVNode("div",{class:"popupBox",ref_key:"popup",ref:u},[Bn.createElementVNode("div",{id:"popupHeader"},[W[0]||(W[0]=Bn.createElementVNode("div",{id:"popupHeaderTitle"},"详细信息",-1)),Bn.createElementVNode("div",{id:"closePopup",onClick:N})]),Bn.createElementVNode("div",y7n,[(Bn.openBlock(),Bn.createBlock(Bn.resolveDynamicComponent(s.value),{popupAttr:l.value,ref_key:"infoWindowRef",ref:h,onClickPointEvent:k},null,40,["popupAttr"]))])],512),[[Bn.vShow,o.value]])],2))}},[["__scopeId","data-v-abc158b7"]]),m7n={install:r=>{r.component("gisMapXinJiang",fPe)},gisMapXinJiang:fPe,useUtils:cPe,useBaseLayers:hPe};Y1.default=m7n,Y1.gisMapXinJiang=fPe,Y1.useBaseLayers=hPe,Y1.useUtils=cPe,Object.defineProperties(Y1,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1298
|
+
*/function tie(){return[1,0,0,1,0,0]}function q9n(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Z9n(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function iPe(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function UDt(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function K9n(r,e,t){var n=e[0],i=e[2],a=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),h=Math.cos(t);return r[0]=n*h+o*u,r[1]=-n*u+o*h,r[2]=i*h+s*u,r[3]=-i*u+h*s,r[4]=h*a+u*l,r[5]=h*l-u*a,r}function J9n(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function Q9n(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function WDt(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}var HDt=q9n,XDt=5e-5;function GL(r){return r>XDt||r<-XDt}var $L=[],w4=[],aPe=tie(),oPe=Math.abs,sPe=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return GL(this.rotation)||GL(this.x)||GL(this.y)||GL(this.scaleX-1)||GL(this.scaleY-1)||GL(this.skewX)||GL(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&HDt(n);return}n=n||tie(),t?this.getLocalTransform(n):HDt(n),e&&(t?iPe(n,e,n):Z9n(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale($L);var n=$L[0]<0?-1:1,i=$L[1]<0?-1:1,a=(($L[0]-n)*t+n)/$L[0]||0,o=(($L[1]-i)*t+i)/$L[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||tie(),Q9n(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(iPe(w4,e.invTransform,t),t=w4);var n=this.originX,i=this.originY;(n||i)&&(aPe[4]=n,aPe[5]=i,iPe(w4,t,aPe),w4[4]-=n,w4[5]-=i,t=w4),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&WDt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&WDt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&oPe(e[0]-1)>1e-10&&oPe(e[3]-1)>1e-10?Math.sqrt(oPe(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){e7n(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,h=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;t[4]=-v*a-f*p*o,t[5]=-p*o-d*v*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=d*a,t[2]=f*o,u&&K9n(t,t,u),t[4]+=n+h,t[5]+=i+c,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),YDt=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function e7n(r,e){for(var t=0;t<YDt.length;t++){var n=YDt[t];r[n]=e[n]}}var jv=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}(),rie=Math.min,nie=Math.max,zL=new jv,VL=new jv,UL=new jv,WL=new jv,Oz=new jv,Rz=new jv,jDt=function(){function r(e,t,n,i){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return r.prototype.union=function(e){var t=rie(e.x,this.x),n=rie(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nie(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=nie(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=tie();return UDt(a,a,[-t.x,-t.y]),J9n(a,a,[n,i]),UDt(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,f=!(a<l||u<i||s<h||c<o);if(t){var d=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-h),m=Math.abs(c-o),_=Math.min(p,g),x=Math.min(y,m);a<l||u<i?_>v&&(v=_,p<g?jv.set(Rz,-p,0):jv.set(Rz,g,0)):_<d&&(d=_,p<g?jv.set(Oz,p,0):jv.set(Oz,-g,0)),s<h||c<o?x>v&&(v=x,y<m?jv.set(Rz,0,-y):jv.set(Rz,0,m)):_<d&&(d=_,y<m?jv.set(Oz,0,y):jv.set(Oz,0,-m))}return t&&jv.copy(t,f?Oz:Rz),f},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}zL.x=UL.x=t.x,zL.y=WL.y=t.y,VL.x=WL.x=t.x+t.width,VL.y=UL.y=t.y+t.height,zL.transform(n),WL.transform(n),VL.transform(n),UL.transform(n),e.x=rie(zL.x,VL.x,UL.x,WL.x),e.y=rie(zL.y,VL.y,UL.y,WL.y);var l=nie(zL.x,VL.x,UL.x,WL.x),u=nie(zL.y,VL.y,UL.y,WL.y);e.width=l-e.x,e.height=u-e.y},r}(),HL=r=>{var e=typeof r;return r!==null&&(e==="object"||e==="function")},qDt=(r,e)=>(Object.keys(e).forEach(t=>{HL(e[t])&&HL(r[t])?qDt(r[t],e[t]):r[t]=e[t]}),r),lPe=function(r,e,...t){return function(...n){return r.apply(e,t.concat(Array.prototype.slice.call(n)))}},ZDt=function(r,e){for(var t=0,n,i=r.length;t<i;t++)if(r[t].index===e.index){n=t;break}return n===void 0?r.push(e):r[n]=e,r},KDt=function(){function r(e){return e?(e^Math.random()*16>>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}return r()};function JDt(r,e){r.forEach(t=>{e[t]&&(e[t]=e[t].bind(e))})}function uPe(r){return r&&r.parentNode?r.parentNode.removeChild(r):null}function iie(r,e){var t=new MouseEvent(r,{bubbles:!0,cancelable:!0,button:e.pointerEvent.button,buttons:e.pointerEvent.buttons,clientX:e.pointerEvent.clientX,clientY:e.pointerEvent.clientY,zrX:e.pointerEvent.offsetX,zrY:e.pointerEvent.offsetY,movementX:e.pointerEvent.movementX,movementY:e.pointerEvent.movementY,relatedTarget:e.pointerEvent.relatedTarget,screenX:e.pointerEvent.screenX,screenY:e.pointerEvent.screenY,view:window});return t.zrX=e.pointerEvent.offsetX,t.zrY=e.pointerEvent.offsetY,t.event=t,t}function t7n(r,e){for(var t=r.split("."),n=e.split("."),i=0;i<3;i++){var a=Number(t[i]),o=Number(n[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return 0}var r7n=r=>!r.UTF8Encoding,QDt=(r,e,t)=>{for(var n=[],i=[e[0],e[1]],a=i[0],o=i[1],s=0;s<r.length;s+=2){var l=r.charCodeAt(s)-64,u=r.charCodeAt(s+1)-64;l=l>>1^-(l&1),u=u>>1^-(u&1),l+=a,u+=o,a=l,o=u,n.push([l/t,u/t])}return n},n7n=r=>{if(r7n(r))return r;var e=r.UTF8Scale;e==null&&(e=1024);for(var t=r.features,n=0;n<t.length;n++)for(var i=t[n],a=i.geometry,o=[a.coordinates,a.encodeOffsets],s=o[0],l=o[1],u=0;u<s.length;u++){var h=s[u];if(a.type==="Polygon")s[u]=QDt(h,l[u],e);else if(a.type==="MultiPolygon")for(var c=0;c<h.length;c++){var f=h[c];h[c]=QDt(f,l[u][c],e)}}return r.UTF8Encoding=!1,r};function i7n(r){var e=n7n(r),t=e.features.filter(i=>i.geometry&&i.properties&&i.geometry.coordinates.length>0),n=t.map(i=>{var a=i.properties,o=i.geometry,s=o.coordinates,l=[];return o.type==="Polygon"&&l.push(s[0]),o.type==="MultiPolygon"&&s.forEach(u=>{u[0]&&l.push(u[0])}),{properties:a,type:"Feature",geometry:{type:"Polygon",coordinates:l}}});return{type:"FeatureCollection",crs:{},features:n}}var a7n=function(r,e,t){return e.center=t.dataToPoint(e.coordinates),e},o7n=function(r,e,t){return HL(r.grid)&&!Array.isArray(r.grid)?console.log(r):Array.isArray(r.grid)&&(r.grid=r.grid.map((n,i)=>{var a=t.dataToPoint(r.series[i].coordinates);return n.left=a[0]-parseFloat(n.width)/2,n.top=a[1]-parseFloat(n.height)/2,n})),e},s7n=function(r,e,t){return HL(r.grid)&&!Array.isArray(r.grid)?console.log(r):Array.isArray(r.grid)&&(r.grid=r.grid.map((n,i)=>{var a=t.dataToPoint(r.series[i].coordinates);return n.left=a[0]-parseFloat(n.width)/2,n.top=a[1]-parseFloat(n.height)/2,n})),e},l7n=Object.freeze({pie:a7n,bar:o7n,line:s7n}),u7n={forcedRerender:!1,forcedPrecomposeRerender:!1,hideOnZooming:!1,hideOnMoving:!1,hideOnRotating:!1,convertTypes:["pie","line","bar"],insertFirst:!1,stopEvent:!1,polyfillEvents:t7n(eNt,"6.1.1")<=0};class tE extends Ky{constructor(e,t,n){var i=Object.assign(u7n,t);super(i),this._options=i,this._chartOptions=e,this.set("chartOptions",e),this.$chart=null,this.$container=void 0,this._isRegistered=!1,this._initEvent=!1,this._incremental=[],this._coordinateSystem=null,this.coordinateSystemId="",this.prevVisibleState="",JDt(["redraw","onResize","onZoomEnd","onCenterChange","onDragRotateEnd","onMoveStart","onMoveEnd","mouseDown","mouseUp","onClick","mouseMove"],this),n&&this.setMap(n)}appendTo(e,t=!1){this.setMap(e,t)}getMap(){return this._map}setMap(e,t=!1){if(e&&(t||e instanceof iOe))this._map=e,this._map.once("postrender",()=>{this.handleMapChanged()}),this._map.renderSync();else throw new Error("not ol map object")}getChartOptions(){return this.get("chartOptions")}setChartOptions(e={}){return this._chartOptions=e,this.set("chartOptions",e),this.clearAndRedraw(),this}appendData(e,t=!0){return e&&(t&&(this._incremental=ZDt(this._incremental,{index:this._incremental.length,data:e.data,seriesIndex:e.seriesIndex})),this.$chart.appendData({data:e.data.copyWithin(),seriesIndex:e.seriesIndex})),this}clear(e){e||(this._incremental=[]),this.$chart&&this.$chart.clear()}remove(){this.clear(),this.$chart&&this.$chart.dispose(),this._initEvent&&this.$container&&(this.$container&&uPe(this.$container),this.unBindEvent()),delete this.$chart,delete this._map}show(){this.setVisible(!0)}innerShow(){this.$container&&(this.$container.style.display=this.prevVisibleState,this.prevVisibleState="")}hide(){this.setVisible(!1)}innerHide(){this.$container&&(this.prevVisibleState=this.$container.style.display,this.$container.style.display="none")}isVisible(){return this.$container&&this.$container.style.display!=="none"}showLoading(){this.$chart&&this.$chart.showLoading()}hideLoading(){this.$chart&&this.$chart.hideLoading()}setZIndex(e){this.$container&&(typeof e=="number"&&(e=String(e)),this.$container.style.zIndex=e)}getZIndex(){return this.$container&&this.$container.style.zIndex}setVisible(e){e?(this.$container&&(this.$container.style.display=""),this._chartOptions=this.getChartOptions(),this.clearAndRedraw()):(this.$container&&(this.$container.style.display="none"),this.clear(!0),this._chartOptions={},this.clearAndRedraw())}render(){!this.$chart&&this.$container?(this.$chart=ULn(this.$container),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1)),this.dispatchEvent({type:"load",source:this,value:this.$chart})):this.isVisible()&&this.redraw()}redraw(){this.clearAndRedraw()}updateViewSize(e){this.$container&&(this.$container.style.width=`${e[0]}px`,this.$container.style.height=`${e[1]}px`,this.$container.setAttribute("width",String(e[0])),this.$container.setAttribute("height",String(e[1])))}onResize(e){var t=this.getMap();if(t){var n=t.getSize();this.updateViewSize(n),this.clearAndRedraw(),e&&this.dispatchEvent({type:"change:size",source:this,value:n})}}onZoomEnd(){this._options.hideOnZooming&&this.innerShow();var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"zoomend",source:this,value:e.getView().getZoom()}))}onDragRotateEnd(){this._options.hideOnRotating&&this.innerShow();var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:rotation",source:this,value:e.getView().getRotation()}))}onMoveStart(){this._options.hideOnMoving&&this.innerHide();var e=this.getMap();e&&e.getView()&&this.dispatchEvent({type:"movestart",source:this,value:e.getView().getCenter()})}onMoveEnd(){this._options.hideOnMoving&&this.innerShow();var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"moveend",source:this,value:e.getView().getCenter()}))}onClick(e){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("click",e))}mouseDown(e){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("mousedown",e))}mouseUp(e){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("mouseup",e))}mouseMove(e){if(this.$chart)for(var t=e.originalEvent.target;t;){if(t.className==="ol-overlaycontainer-stopevent"){this.$chart.getZr().painter.getViewportRoot().dispatchEvent(iie("mousemove",e));return}t=t.parentElement}}onCenterChange(){var e=this.getMap();e&&e.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:center",source:this,value:e.getView().getCenter()}))}handleMapChanged(){var e=this.getMap();if(this._initEvent&&this.$container&&(this.$container&&uPe(this.$container),this.unBindEvent()),this.$container||(this.createLayerContainer(),this.onResize(!1)),e){var t=this._options.stopEvent?e.getOverlayContainerStopEvent():e.getOverlayContainer();this._options.insertFirst?t.insertBefore(this.$container,t.childNodes[0]||null):t.appendChild(this.$container),this.render(),this.bindEvent(e)}}createLayerContainer(){this.$container=document.createElement("div"),this.$container.style.position="absolute",this.$container.style.top="0px",this.$container.style.left="0px",this.$container.style.right="0px",this.$container.style.bottom="0px",this.$container.style.pointerEvents="auto"}bindEvent(e){var t=e.getView();this._options.forcedPrecomposeRerender&&e.on("precompose",this.redraw),e.on("change:size",this.onResize),t.on("change:resolution",this.onZoomEnd),t.on("change:center",this.onCenterChange),t.on("change:rotation",this.onDragRotateEnd),e.on("movestart",this.onMoveStart),e.on("moveend",this.onMoveEnd),this._options.polyfillEvents&&(e.on("pointerdown",this.mouseDown),e.on("pointerup",this.mouseUp),e.on("pointermove",this.mouseMove),e.on("click",this.onClick)),this._initEvent=!0}unBindEvent(){var e=this.getMap();if(e){var t=e.getView();t&&(e.un("precompose",this.redraw),e.un("change:size",this.onResize),t.un("change:resolution",this.onZoomEnd),t.un("change:center",this.onCenterChange),t.un("change:rotation",this.onDragRotateEnd),e.un("movestart",this.onMoveStart),e.un("moveend",this.onMoveEnd),this._options.polyfillEvents&&(e.un("pointerdown",this.mouseDown),e.un("pointerup",this.mouseUp),e.un("pointermove",this.mouseMove),e.un("click",this.onClick)),this._initEvent=!1)}}clearAndRedraw(){if(!(!this.$chart||!this.isVisible())){if(this._options.forcedRerender&&this.$chart.clear(),this.$chart.resize(),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1),this._incremental&&this._incremental.length>0))for(var e=0;e<this._incremental.length;e++)this.appendData(this._incremental[e],!1);this.dispatchEvent({type:"redraw",source:this})}}registerMap(){if(this._isRegistered||(this.coordinateSystemId=`openlayers_${KDt()}`,C2t(this.coordinateSystemId,this.getCoordinateSystem(this._options)),this._isRegistered=!0),this._chartOptions){var e=this._chartOptions.series;if(e&&HL(e)){var t=this._options.convertTypes;if(t)for(var n=e.length-1;n>=0;n--)t.indexOf(e[n].type)>-1||(e[n].coordinateSystem=this.coordinateSystemId),e[n].animation=!1}}}convertData(e){var t=e.series;if(t&&t.length>0){if(!this._coordinateSystem){var n=this.getCoordinateSystem(this._options);this._coordinateSystem=new n(this.getMap())}if(t&&HL(t)){var i=this._options.convertTypes;if(i)for(var a=t.length-1;a>=0;a--)i.indexOf(t[a].type)>-1&&t[a]&&t[a].hasOwnProperty("coordinates")&&(t[a]=l7n[t[a].type](e,t[a],this._coordinateSystem))}}return e}getCoordinateSystem(e){var t=this.getMap(),n=this.coordinateSystemId;class i{constructor(o){this._mapOffset=[0,0],this.dimensions=["lng","lat"],this._roamTransformable=new sPe,this._rawTransformable=new sPe,this._viewRect=new jDt(0,0,0,0),this.map=o,this.dimensions=["lng","lat"],this.projCode=i.getProjectionCode(this.map)}getZoom(){return this.map.getView().getZoom()}setZoom(o){return this.map.getView().setZoom(o)}getViewRectAfterRoam(){return this.getViewRect().clone()}setMapOffset(o){this._mapOffset=o}dataToPoint(o){var s;if(o&&Array.isArray(o)&&o.length>0){s=o.map(f=>{var d=0;return typeof f=="string"?d=Number(f):d=f,d});var l=e&&e.source||"EPSG:4326",u=e&&e.destination||this.projCode,h=this.map.getPixelFromCoordinate(zLe(s,l,u)),c=this._mapOffset;return[h[0]-c[0],h[1]-c[1]]}return[0,0]}pointToData(o){var s=this._mapOffset;return this.map.getCoordinateFromPixel([o[0]+s[0],o[1]+s[1]])}setViewRect(){var o=this.map.getSize();this._viewRect=new jDt(0,0,o[0],o[1])}getViewRect(){return this._viewRect}getRoamTransform(){return this._roamTransformable.getLocalTransform()}prepareCustoms(){var o=this.getViewRect();return{coordSys:{type:n,x:o.x,y:o.y,width:o.width,height:o.height},api:{coord:lPe(this.dataToPoint,this),size:lPe(this.dataToCoordsSize,this)}}}dataToCoordsSize(o,s=[0,0]){return[0,1].map(l=>{var u=s[l],h=[],c=[],f=o[l]/2;h[l]=u-f,c[l]=u+f,h[1-l]=s[1-l],c[1-l]=s[1-l];var d=this.dataToPoint(h)[l]-this.dataToPoint(c)[l];return Math.abs(d)})}getTransformInfo(){var o=this._rawTransformable,s=this._roamTransformable,l=new sPe;return l.transform=s.transform,l.decomposeTransform(),{roam:{x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY},raw:{x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY}}}}return i.dimensions=i.prototype.dimensions||["lng","lat"],i.create=function(a){a.eachSeries(o=>{o.get("coordinateSystem")===n&&(o.coordinateSystem=new i(t))})},i.getProjectionCode=function(a){var o="";return a?o=a.getView()&&a.getView().getProjection().getCode():o="EPSG:3857",o},i}dispatchEvent(e){return super.dispatchEvent(e)}set(e,t,n){return super.set(e,t,n)}get(e){return super.get(e)}unset(e,t){return super.unset(e,t)}on(e,t){return super.on(e,t)}un(e,t){return super.un(e,t)}}tE.formatGeoJSON=i7n,tE.bind=lPe,tE.merge=qDt,tE.uuid=KDt,tE.bindAll=JDt,tE.arrayAdd=ZDt,tE.removeNode=uPe,tE.isObject=HL;const eOt=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t},h7n={props:{popupAttr:Array},data(){return{clusterList:[],rightComponent:null,popupAttributes:null,selectedIndex:null}},mounted(){this.selectedIndex=0},computed:{},methods:{danji(r,e){this.selectedIndex=e}},watch:{popupAttr:{handler(r,e){this.clusterList=r.map(t=>t.getProperties())},immediate:!0}}},c7n={class:"clusterListPopup"},f7n={class:"paginate-list"},d7n=["onClick"],v7n=["title"];function p7n(r,e,t,n,i,a){return Bn.openBlock(),Bn.createElementBlock("div",c7n,[Bn.createElementVNode("ul",f7n,[(Bn.openBlock(!0),Bn.createElementBlock(Bn.Fragment,null,Bn.renderList(i.clusterList,(o,s)=>(Bn.openBlock(),Bn.createElementBlock("li",{class:Bn.normalizeClass(["list-item",{active:i.selectedIndex===s}]),key:s,onClick:l=>a.danji(o,s)},[Bn.createElementVNode("div",{class:"item-content",title:o.otherInfo.name},Bn.toDisplayString(o.otherInfo.name),9,v7n)],10,d7n))),128))])])}const g7n=eOt(h7n,[["render",p7n],["__scopeId","data-v-564c9ffd"]]);function hPe(r,e,t){const n=Bn.ref(null),i=Bn.ref(!1),a=Bn.ref(null),o=Bn.ref(null),s=Bn.ref(null),l=Bn.ref(null),u=Bn.ref(null),h=Bn.ref(null),c=Bn.ref(null),f=Bn.ref(null),d=Bn.ref(null),v=Bn.ref(null),p=Bn.ref(null),g="http://service.sdmap.gov.cn/tileservice/dsfg_asdxb?",y="https://service.sdmap.gov.cn/tileservice/dsfg_qsb?",m="https://service.sdmap.gov.cn/tileservice/sdrasterpubmap?",_="/china_full.json",x="/xinjiang.json",S="/xinjiangArea.json",w="/sdArea.json",b="/ditieline.json",E="#1b2639",C="#eeeee9",T="#adb0aa",M="#3578E0",A="#b4b4b1",I="#d3d3d3",D=Bn.computed(()=>["dark","light","yingxiang"].includes(e.value)?e.value:"dark"),O=()=>{let N;D.value==="light"?N=y:D.value==="yingxiang"?N=m:N=g,s.value=new AD({source:new Mx({url:N,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value);const k=()=>{fetch(S).then(j=>j.json()).then(j=>{p.value=new RS({layerName:"xinjiangDQLayer",source:new Q1({features:new jT().readFeatures(j,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:new bf({stroke:new Jy({color:"#47B8A2",width:1}),fill:new wf({color:"rgba(0, 0, 0, 0)"})}),zIndex:25}),r.value.addLayer(p.value)}).catch(j=>{console.error("加载新疆各地市分界线数据失败:",j)})};let V=new AD({layerName:"xinjiangYXLayer",source:new ty({url:"http://10.105.1.49:8090/iserver/services/XJyingxiang_2000/rest/maps/XJyingxiang_2000"}),zIndex:23,projection:"EPSG:4326"});r.value.addLayer(V);let B=new AD({layerName:"xinjiangGSLayer",source:new ty({url:"http://10.105.1.49:8090/iserver/services/map-luxian/rest/maps/年报高速"}),zIndex:26,projection:"EPSG:4326"});r.value.addLayer(B),setTimeout(()=>{fetch(x).then(j=>j.json()).then(j=>{for(let ee=1;ee<=20;ee++){const H=Math.round(5*(1-(ee-1)/19)+3*((ee-1)/19)),Q=Math.round(126*(1-(ee-1)/19)+37*((ee-1)/19)),se=Math.round(230*(1-(ee-1)/19)+95*((ee-1)/19)),ie=1,he=new RS({source:new Q1({features:new jT().readFeatures(j,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:new bf({fill:new wf({color:`rgba(${H}, ${Q}, ${se}, ${ie})`})}),zIndex:21-ee});he.getSource().forEachFeature(de=>{const ye=de.getGeometry();if(ye){const me=ye.clone();me.translate(0,-.03*ee),de.setGeometry(me)}}),r.value.addLayer(he)}const Y=new RS({layerName:"xinjiangSJLayer",source:new Q1({features:new jT().readFeatures(j,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),style:new bf({fill:new wf({color:"rgba(4, 71, 146, 0.12)"}),stroke:new Jy({color:"#36BDFD",width:3})}),zIndex:24});r.value.addLayer(Y)}).catch(j=>{console.error("加载新疆区域数据失败:",j)})},1e3),setTimeout(k,1500),r.value.on("click",j=>{let Y=j.coordinate;u.value=Y;let ee=document.getElementById("popupHeaderTitle"),H=r.value.forEachFeatureAtPixel(j.pixel,(Q,se)=>{const ie=se.get("layerName");return ie==="xinjiangDQLayer"||ie==="xinjiangSJLayer"||ie==null?null:Q});if(H)if(H.getProperties().features)if(H.getProperties().features.length>1){const Q=H.getProperties().features;if(r.value.getView().getZoom()>=18){h.value=350,c.value=430,d.value=g7n,v.value=Q,ee&&(ee.innerHTML="",ee.innerHTML="点位列表"),t("showPopup");let se=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),ie=h.value/153.6*se,he=c.value/153.6*se;l.value.setPosition(Y),l.value.setOffset([-he/2,-ie]);let de=r.value.getPixelFromCoordinate(Y),ye=[de[0],de[1]-150],me=r.value.getCoordinateFromPixel(ye);r.value.getView().animate({center:me,duration:800})}else r.value.getView().animate({center:H.getGeometry().getCoordinates(),zoom:r.value.getView().getZoom()*2,duration:1200})}else{let Q=H.getProperties().features[0].getProperties();if(Q){if(Q.isDrawn)return;if(Q.popoup===!1){t("clickPointEvent",Q);return}Q.type&&t("showPopup")}else t("closePopup");let se=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),ie=h.value/153.6*se,he=c.value/153.6*se;l.value.setPosition(Y),l.value.setOffset([-he/2,-ie]);let de=r.value.getPixelFromCoordinate(Y),ye=[de[0],de[1]-150],me=r.value.getCoordinateFromPixel(ye);r.value.getView().animate({center:me,duration:800})}else{let Q=H.getProperties();if(Q){if(Q.isDrawn)return;if(Q.popoup===!1){t("clickPointEvent",Q);return}Q.type||t("closePopup")}else t("closePopup");let se=Number(document.getElementsByTagName("html")[0].style.fontSize.split("px")[0]),ie=h.value/192*se,he=c.value/192*se;l.value.setPosition(Y),l.value.setOffset([-he/2,-ie]);let de=r.value.getPixelFromCoordinate(Y),ye=[de[0],de[1]-150],me=r.value.getCoordinateFromPixel(ye);r.value.getView().animate({center:me,duration:800})}else t("closePopup")}),r.value.on("pointermove",j=>{let Y=r.value.forEachFeatureAtPixel(j.pixel,ee=>ee);if(Y!==n.value){if(n.value&&t("pointerOutEvent",n.value.getProperties()),Y){let ee=null;if(Y.getProperties().longitude&&Y.getProperties().latitude){let H=[Y.getProperties().longitude,Y.getProperties().latitude];ee=r.value.getPixelFromCoordinate(H)}t("pointerMoveEvent",Y.getProperties(),ee)}n.value=Y}})};return Bn.watch(e,N=>{N==="dark"?s.value&&(r.value.removeLayer(s.value),f.value&&r.value.removeLayer(f.value),s.value=new AD({source:new Mx({url:g,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value),fetch(_).then(k=>k.json()).then(k=>{let V=new jT;f.value=new RS({layerName:"xxxx",source:new Q1({format:V,features:V.readFeatures(k,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(B){return new bf({fill:new wf({color:E}),stroke:new Jy({color:M,width:1})})}}),r.value.addLayer(f.value)})):N==="light"?(r.value.removeLayer(s.value),f.value&&r.value.removeLayer(f.value),s.value=new AD({source:new Mx({url:y,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),r.value.addLayer(s.value),fetch(_).then(k=>k.json()).then(k=>{let V=new jT;f.value=new RS({layerName:"xxxx",source:new Q1({format:V,features:V.readFeatures(k,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(B){return new bf({fill:new wf({color:C}),stroke:new Jy({color:A,width:1})})}}),r.value.addLayer(f.value)})):N==="yingxiang"&&(r.value.removeLayer(s.value),f.value&&r.value.removeLayer(f.value),s.value=new AD({source:new Mx({url:m,key:"d02c0b2c57b4ba04f74cbccbb138f130",projection:"EPSG:4326"}),zIndex:1}),fetch(_).then(k=>k.json()).then(k=>{let V=new jT;f.value=new RS({layerName:"xxxx",source:new Q1({format:V,features:V.readFeatures(k,{dataProjection:"EPSG:4326",featureProjection:"EPSG:4326"})}),zIndex:3,style:function(B){return new bf({fill:new wf({color:T}),stroke:new Jy({color:I,width:1})})}}),r.value.addLayer(f.value)}))}),{lastHoverFeature:n,isCluster:i,echartslayer:a,congestedRoadLayer:o,tiandituLayer:s,overlayPopup:l,initialPoint:u,popupHeight:h,popupWidth:c,china_full_Layer:f,currentTabComponent:d,popupAttributes:v,darkUrl:g,lightUrl:y,yingxiangUrl:m,geoJSONUrl:_,xjJSONUrl:x,sdAreaUrl:w,subwayLineUrl:b,darkFillColor:E,lightFillColor:C,yingxiangFillColor:T,darkStrokeColor:M,lightStrokeColor:A,yingxiangStrokeColor:I,normalizedThemeStyle:D,initBaseLayers:O}}function cPe(r,e,t){const n=Bn.ref(!1),i=Bn.ref([]),a=Bn.ref([]),o=(p,g)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}r.value.value.getView().animate({center:p,zoom:g,duration:800})},s=(p,g,y,m)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let _=r.value.value.getLayers().getArray(),x=null;for(let w=0;w<_.length;w++){let b=_[w];if(b.get("layerName")===g){x=b;break}}let S=new Q1;if(p.pointList.forEach(w=>{let b=new tV({title:"要素点",geometry:new dD([w.longitude,w.latitude])});b.set("type",w.type),b.set("iconUrl",w.iconUrl),b.set("popoup",w.popoup),b.set("otherInfo",w.otherInfo),b.set("longitude",w.longitude),b.set("latitude",w.latitude),b.set("isVisible",!1),b.set("layerId",g);let E=[new bf({image:new xD({src:w.iconUrl,scale:w.scale,offset:w.offset,offsetOrigin:"bottom-right",size:w.size})}),new bf({text:new gD({font:w.textFontSize||"14px sans-serif",fill:new wf({color:w.textColor||"rgb(255, 255, 255)"}),stroke:new Jy({color:"rgb(33, 33, 33)",width:0}),backgroundFill:new wf({color:w.textBGColor||"rgba(94, 110, 158, 0.6)"}),backgroundStroke:new Jy({color:"rgba(173, 173, 173, 0.1)",width:1}),text:w.name||"",textAlign:"center",textBaseline:"bottom",offsetX:w.textOffsetX||0,offsetY:w.textOffsetY||40,overflow:!0,padding:[0,2,0,2]}),zIndex:60})];b.setStyle(E),S.addFeature(b)}),y){m.value=new RS({layerName:g,zIndex:999,style:function(b){const E=b.get("features").length;let C;if(E>1){new bf({image:new cae({fill:new wf({color:[233,188,38,.7]}),stroke:new Jy({color:[233,188,38,1],width:1}),points:6,radius:27}),text:new gD({fill:new wf({color:"#ffffff"}),offsetY:2,font:"bold 16px sans-serif",text:E.toString()})});let T=new bf({image:new xD({src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzNCA0MiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IiYjMjMwOyYjMTUwOyYjMTg5OyYjMjI5OyYjMTgzOyYjMTY1OyIgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzQ0M18zNDkpIj4KPGcgaWQ9IiY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NpdGUgaW4yPSJoYXJkQWxwaGEiIG9wZXJhdG9yPSJhcml0aG1ldGljIiBrMj0iLTEiIGszPSIxIi8+CjxmZUNvbG9yTWF0cml4IHR5cGU9Im1hdHJpeCIgdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAwLjQwMzkyMiAwIDAgMCAwIDAgMCAwIDAgMSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJzaGFwZSIgcmVzdWx0PSJlZmZlY3QxX2lubmVyU2hhZG93XzQ0M18zMTAiLz4KPC9maWx0ZXI+CjxjbGlwUGF0aCBpZD0iY2xpcDBfNDQzXzMxMCI+CjxyZWN0IHdpZHRoPSIzNCIgaGVpZ2h0PSI0MiIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K"}),text:new gD({fill:new wf({color:"#ffffff"}),offsetY:-2,font:"14px sans-serif",text:E.toString()})}),A=new bf({image:new xD({src:b.get("features")[0].getProperties().iconUrl,scale:.5}),text:new gD({fill:new wf({color:"#ffffff"}),offsetY:16,font:"14px sans-serif",text:E.toString()})});if(r.value.value.getView().getZoom()<18)return A;{let I=1;return b.get("features").forEach(D=>{D.getProperties().otherInfo.state===0&&(I=0)}),I===1?T:M}}else return C=b.get("features")[0].getStyle(),C}});const w=new D5t({distance:80,minDistance:200,source:S});x?x.setSource(w):m.value.setSource(w)}else m.value=new RS({layerName:g,zIndex:999}),x?x.setSource(S):m.value.setSource(S);x||r.value.value.addLayer(m.value)},l=(p,g,y)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let m=[];p.forEach(x=>{let S=x.xyArr.map(b=>b),w=new tV({geometry:new dV(S)});w.set("popoup",x.popoup),w.set("otherInfo",x.otherInfo),w.setStyle(new bf({stroke:new Jy({color:x.color,width:x.width,lineDash:x.lineDash?[10,10]:void 0})})),m.push(w)});let _=new Q1({features:m});y.value=new RS({layerName:g,zIndex:999,source:_}),r.value.value.addLayer(y.value)},u=(p,g)=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let y=c(g);y&&r.value.value.removeLayer(y);let m=new F4t({layerName:g,zIndex:900,source:new Q1({features:new jT().readFeatures(p)}),blur:18,radius:2,weight:_=>1});r.value.value.addLayer(m)},h=p=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let g=r.value.value.getLayers().getArray(),y=null;for(let m=0;m<g.length;m++){let _=g[m];if(_.get("layerName")===p){y=_;break}}r.value.value.removeLayer(y)},c=p=>{if(!r||!r.value||!r.value.value)return console.error("Map reference is not valid"),null;let g=r.value.value.getLayers().getArray(),y=null;for(let m=0;m<g.length;m++){let _=g[m];if(_.get("layerName")===p){y=_;break}}return y};return{gongganTextLayerShow:n,gongganTextLayerList:i,sourceWithTextList:a,zoomInBylatlon:o,addPointByArr:s,addLineByArr:l,addHeatmapByArr:u,removeLayerByName:h,findLayerByName:c,isLayerInMap:p=>{if(!r||!r.value||!r.value.value)return console.error("Map reference is not valid"),!1;var g=r.value.value.getLayers().getArray();return g.some(function(y){return y===p})},initEchartsLayer:p=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}let g=p,y={};p&&typeof p=="object"&&p.data&&p.settings&&(g=p.data,y=p.settings);let m=new tE(null,{hideOnZooming:!0});m.appendTo(r.value.value);let _=function(I){let D=[];for(let O=0;O<I.length;O++){let N=I[O].latlng;if(N){let k=I[O].bar_data||[0];Array.isArray(k)||(k=[k]);let V=I[O].bar_names||["数据1"];Array.isArray(V)||(V=[V]);let B=I[O].bar_units||["单位"];Array.isArray(B)||(B=[B]),D.push({name:I[O].city,value:N,bar_count:I[O].bar_count||1,color:Array.isArray(I[O].color)?I[O].color:I[O].color?[I[O].color,"#ff7f00"]:["#efda18","#ff7f00"],bar_data:k,bar_names:V,bar_units:B})}}return D};const x=_(g).reduce((I,D)=>I.concat(D.bar_data),[]),S=Math.max(...x,1),w=I=>{let D;if(typeof I=="string"&&I.startsWith("#")){const O=I.replace("#",""),N=parseInt(O.substring(0,2),16),k=parseInt(O.substring(2,4),16),V=parseInt(O.substring(4,6),16);D=`rgba(${N}, ${k}, ${V}, 1)`}else D=I;return{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:D.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 1)")},{offset:.6,color:D.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0.4)")},{offset:1,color:D.replace(/rgba\((\d+),\s*(\d+),\s*(\d+),\s*[\d.]+\)/,"rgba($1, $2, $3, 0)")}]}},b=_(g).filter(I=>I.bar_count===1),E=_(g).filter(I=>I.bar_count>1),C=E.map(I=>({...I,value:[I.value[0],I.value[1],I.bar_data[0]]})),T=E.map(I=>({...I,value:[I.value[0],I.value[1],I.bar_data[1]||0]})),M=b.map(I=>({...I,value:[I.value[0],I.value[1],I.bar_data[0]]}));let A={tooltip:{show:!0,trigger:"item",formatter:function(I){if(I.seriesName==="车流量"){const D=I.data.bar_names[0]||"数据",O=I.data.bar_data[0]||0,N=I.data.bar_units[0]||"";return`${I.data.name}<br/>${D}: ${O}${N}`}else if(I.seriesName==="车流量1"){const D=I.data.bar_names[0]||"数据1",O=I.data.bar_data[0]||0,N=I.data.bar_units[0]||"";return`${I.data.name}<br/>${D}: ${O}${N}`}else if(I.seriesName==="车流量2"){const D=I.data.bar_names[1]||"数据2",O=I.data.bar_data[1]||0,N=I.data.bar_units[1]||"";return`${I.data.name}<br/>${D}: ${O}${N}`}return`${I.data.name}<br/>数据: ${I.data.bar_data[0]||0}${I.data.bar_units[0]||""}`},backgroundColor:"rgba(0, 0, 0, 0.7)",textStyle:{color:"#fff",fontSize:y.tooltipFontSize||12},padding:y.tooltipPadding||8},series:[{name:"车流量",type:"scatter",coordinateSystem:"geo",data:M,symbolSize:function(I){const D=I[2]||0,O=Math.max(10,D/S*150);return[y.barWidth||15,O]},symbolOffset:[0,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(I){return w(I.data.color[0])}}},{name:"车流量1",type:"scatter",coordinateSystem:"geo",data:C,symbolSize:function(I){const D=I[2]||0,O=Math.max(10,D/S*150);return[y.barWidth||15,O]},symbolOffset:[-8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(I){return w(I.data.color[0])}}},{name:"车流量2",type:"scatter",coordinateSystem:"geo",data:T,symbolSize:function(I){const D=I[2]||0,O=Math.max(10,D/S*150);return[y.barWidth||15,O]},symbolOffset:[8,"-50%"],rippleEffect:{number:3,period:5,scale:2},symbol:"rect",label:{show:!1},itemStyle:{color:function(I){return w(I.data.color[1])}}}]};return m&&(m.setChartOptions(A),setTimeout(()=>{m.$chart&&m.$chart.on("click",function(I){if(t&&typeof t=="function"){let D=I.data,O=D.value[0],N=D.value[1],k=null;if(O&&N){let V=[O,N];r&&r.value&&r.value.value&&(k=r.value.value.getPixelFromCoordinate(V))}t("barClick",D,k)}})},0)),m},removeEchartsLayer:p=>{if(!r||!r.value||!r.value.value){console.error("Map reference is not valid");return}if(!p){console.error("ECharts layer is not valid");return}try{p.remove&&typeof p.remove=="function"&&(p.remove(),p=null)}catch(g){console.error("Error removing ECharts layer:",g)}}}}const y7n={id:"popupContent"},fPe=eOt({__name:"index",props:{mapBoxHeight:{type:String,default:"100vh"},mapZoom:{type:String,default:"8.3"},mapCenter:{type:Array,default:()=>[118.65,36.23]},themeStyle:{type:String,default:"dark"}},emits:["clickPointEvent","showPopup","closePopup","pointerMoveEvent","pointerOutEvent","barClick"],setup(r,{expose:e,emit:t}){const n=r,i=t,a=Bn.ref(null),o=Bn.ref(!1),s=Bn.ref(null),l=Bn.ref(null),u=Bn.ref(null),h=Bn.ref(null),c=Bn.ref(null),f=Bn.ref(null),d=Bn.computed(()=>["dark","light","yingxiang"].includes(n.themeStyle)?n.themeStyle:"dark"),v=Bn.computed(()=>({"theme-dark":d.value==="dark","theme-light":d.value==="light","theme-yingxiang":d.value==="yingxiang"})),p=Bn.computed(()=>({"map-dark-background":d.value==="dark","map-light-background":d.value==="light","map-yingxiang-background":d.value==="yingxiang"})),{initBaseLayers:g,overlayPopup:y}=hPe(a,d,i),m=Bn.ref([]),{gongganTextLayerShow:_,gongganTextLayerList:x,sourceWithTextList:S,zoomInBylatlon:w,addPointByArr:b,addLineByArr:E,addHeatmapByArr:C,removeLayerByName:T,findLayerByName:M,isLayerInMap:A,initEchartsLayer:I,removeEchartsLayer:D}=cPe({value:a},m,i),O=()=>{a.value=new iOe({target:"map",view:new K1({center:n.mapCenter,zoom:parseFloat(n.mapZoom),projection:"EPSG:4326",extent:[50,23,122,58]}),controls:ZDe({attribution:!1,zoom:!1,rotate:!1})}),g()},N=()=>{h.value&&typeof h.value.destroyFlv=="function"&&h.value.destroyFlv(),o.value=!1,y.value&&y.value.setPosition(void 0)},k=B=>{i("clickPointEvent",B)},V={zoomInBylatlon:w,initEchartsLayer:I,removeEchartsLayer:D,addPointByArr:(B,W,j=!1)=>b(B,W,j,c),addLineByArr:(B,W)=>E(B,W,f),addHeatmapByArr:C,removeLayerByName:T,findLayerByName:M,isLayerInMap:A,get mapRef(){return a},get gongganTextLayerShow(){return _},get gongganTextLayerList(){return x},get sourceWithTextList(){return S}};return Bn.watch(()=>n.mapZoom,B=>{a.value&&a.value.getView().setZoom(Number(B))}),Bn.onMounted(()=>{O()}),e({map:a,...V}),(B,W)=>(Bn.openBlock(),Bn.createElementBlock("div",{class:Bn.normalizeClass(v.value)},[Bn.createElementVNode("div",{id:"map",class:Bn.normalizeClass(p.value),style:Bn.normalizeStyle({"--height":r.mapBoxHeight})},null,6),Bn.withDirectives(Bn.createElementVNode("div",{class:"popupBox",ref_key:"popup",ref:u},[Bn.createElementVNode("div",{id:"popupHeader"},[W[0]||(W[0]=Bn.createElementVNode("div",{id:"popupHeaderTitle"},"详细信息",-1)),Bn.createElementVNode("div",{id:"closePopup",onClick:N})]),Bn.createElementVNode("div",y7n,[(Bn.openBlock(),Bn.createBlock(Bn.resolveDynamicComponent(s.value),{popupAttr:l.value,ref_key:"infoWindowRef",ref:h,onClickPointEvent:k},null,40,["popupAttr"]))])],512),[[Bn.vShow,o.value]])],2))}},[["__scopeId","data-v-abc158b7"]]),m7n={install:r=>{r.component("gisMapXinJiang",fPe)},gisMapXinJiang:fPe,useUtils:cPe,useBaseLayers:hPe};Y1.default=m7n,Y1.gisMapXinJiang=fPe,Y1.useBaseLayers=hPe,Y1.useUtils=cPe,Object.defineProperties(Y1,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|