(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-5b60"],{"/eoX":function(t,e,i){},"0SAW":function(t,e,i){t.exports={default:i("T+Ik"),__esModule:!0}},"0dFU":function(t,e,i){"use strict";e.__esModule=!0;var n=r(i("ly/r")),o=r(i("0SAW")),a=r(i("Q2cO"));function r(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,a.default)(e)));t.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(n.default?(0,n.default)(t,e):t.__proto__=e)}},"2dj7":function(t,e,i){"use strict";e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i("9dlP"));e.default=function(){function t(t,e){for(var i=0;it.maximumHeights[e]&&(t.dayMaximumHeights[e]=t.minimumHeights[e]);return t.dayMaximumHeights},!1),material:new v.ImageMaterialProperty({image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmC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AQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAgAAAIAAACAAAAgCAAAAgAAAIAAACAIAAACAAAAgAAAIAgAAAIAAACAAAAgCAAAAgAAAIAAACAIAAACAAAAgAAAIAgAAAIAAACAAAAgCAAAAgAAAIAAACAIAAACAAAAgAAAIAgAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEAAABAAAAQBAAAAQAAAEAAABAEAAABAAAAQAAAEAQAAAEAAABAAgAAAIAAACAIAAACAAAAgAAAIAgAAAIAAACAAAAgCAAAAgAAAIAAACAIAAACAAAAgAAAIAgAAAIAAACAAAAgCAAAAgAAAIAAACAIAAACAAAAgAAAIAgAAAIAAACAAAAgCAAAAgAAABAEAAABAAAAQAAAEAQAAAEAAABADAEvxvANtG/U5OQyQ2AAAAAElFTkSuQmCC",transparent:!0,color:this.cesiumColor||v.Color.RED})}})}},{key:"remove",value:function(){this.viewer.entities.remove(this.fenceEntity),this.viewer.entities.remove(this.dynamicFenceEntity)}}]),t}(),j=I(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}),F=function(){function t(e){u()(this,t),this.map=e,this.dataSource=new v.CustomDataSource("beam"),this.map.viewer.dataSources.add(this.dataSource),this.beams=[]}return m()(t,[{key:"setVisible",value:function(t){this.dataSource.show=t}},{key:"clear",value:function(){this.dataSource.entities.removeAll(),this.beams=[]}},{key:"remove",value:function(t){var e=this,i=this.beams.filter(function(e){return e.id===t})[0];i&&(i.entities.forEach(function(t){e.dataSource.entities.contains(t)&&e.dataSource.entities.remove(t)}),this.beams=this.beams.filter(function(e){return e.id!==t}))}},{key:"add",value:function(t,e,i){t=t||v.createGuid();var n=i||{},o=n.opacity,a=n.maxHeight,r=n.duration,s=i.effectSize||60,l=v.Cartesian3.fromDegrees(e.x,e.y),c=this.dataSource.entities,u=.001,d=u,m=0,f=c.add({position:l,ellipse:{semiMinorAxis:new v.CallbackProperty(function(){return(u+=s/20)>=s&&(u=s),u},!1),semiMajorAxis:new v.CallbackProperty(function(){return(d+=s/20)>=s&&(d=s),d},!1),material:new v.ImageMaterialProperty({image:"./images/wave1.png",repeat:new v.Cartesian2(1,1),transparent:!0}),stRotation:new v.CallbackProperty(function(){return m+=.05},!1)}}),p=function(t,e,i){if(!t||void 0===t.x)return dataSource;for(var n=L({minHeight:1,maxHeight:90,repeat:[2,1],color:"#8BDBFA",duration:2e3,opacity:.6,radius:100},e),o=turf.point([t.x,t.y]),a=turf.buffer(o,n.radius,{units:"meters"}).geometry.coordinates[0],r=[],s=[],l=[],c=0;c=50?e.billboard.image=r:t.length>=40?e.billboard.image=s:t.length>=30?e.billboard.image=l:t.length>=20?e.billboard.image=c:t.length>=10?e.billboard.image=u:e.billboard.image=d[t.length-2]});var t=n.clustering.pixelRange;n.clustering.pixelRange=0,n.clustering.pixelRange=t}();var f={pixelRange:15,minimumClusterSize:3};function p(t){v.knockout.getObservable(f,t).subscribe(function(e){n.clustering[t]=e})}v.knockout.track(f),p("pixelRange"),p("minimumClusterSize"),new v.ScreenSpaceEventHandler(o.scene.canvas).setInputAction(function(t){var e=o.scene.pick(t.position);if(v.defined(e)){var i=e.id;if(Array.isArray(i))for(var n=0;n0&&this.viewer.flyTo(this.plotDrawTool.dataSource,o()({duration:1},t)),this}},{key:"setPlotEditable",value:function(t){var e=this.plotDrawTool;e.hasEdit(t),t||(e.stopDraw(),e.stopEditing())}},{key:"isPlotEditing",value:function(){return this.plotDrawTool._hasEdit}},{key:"_addLabel",value:function(t,e){t&&e&&e.text&&e.showLabel&&(t.label=new v.LabelGraphics(o()({style:v.LabelStyle.FILL,pixelOffset:new v.Cartesian2(0,-74*e.iconScale),translucencyByDistance:void 0,disableDepthTestDistance:Number.POSITIVE_INFINITY,eyeOffset:new v.Cartesian3(0,0,-10),showBackground:!0,font:"14px Microsoft yahei",backgroundColor:new v.Color(0,0,0,.8),backgroundPadding:new v.Cartesian2(8,6),horizontalOrigin:v.HorizontalOrigin.CENTER,verticalOrigin:v.VerticalOrigin.BOTTOM},e)))}},{key:"addMarker",value:function(t){var e=t.text,i=t.textStyle,n=t.showLabel,a=t.icon,r=t.iconStyle,s=t.attr,l=t.wgs84Pos;if(!l||!function(t,e){return t=Number(t),e=Number(e),null!==t&&null!==e&&""!==t&&""!==e&&void 0!==t&&void 0!==e&&!isNaN(t)&&!isNaN(e)&&t>=-180&&t<=180&&e>=-90&&e<=90}(l.x,l.y))return null;s=s||{},n=void 0===n||n,r=r||{};var c={type:"billboard",style:o()({image:a},r),attr:o()({id:s.mac||void 0,type:"marker"},s)},u=v.Cartesian3.fromDegrees(l.x,l.y),d=this.plotDrawTool.attributeToEntity(c,u);return d.billboard.disableDepthTestDistance=Number.POSITIVE_INFINITY,d.billboard.eyeOffset=new v.Cartesian3(0,0,-10),this._addLabel(d,o()({showLabel:n,text:e},i,{iconScale:r.scale||.5})),this._plusEntity(d),this.fire("ui"),d}},{key:"addPolygon",value:function(t){var e=t.style,i=t.attr,n=t.wgs84Poss;e=e||{};var a=(n=n||[]).map(function(t){var e=t;return k(t)&&(e={x:t[0],y:t[1],z:t[2]}),v.Cartesian3.fromDegrees(e.x,e.y,e.z||0)}),r=this.plotDrawTool.attributeToEntity({type:"polygon",style:o()({},V,e),attr:o()({},i||{})},a);return this._plusEntity(r),r}},{key:"addPolyline",value:function(t){var e=t.attr,i=t.style,n=t.wgs84Poss;i=i||{};var a=(n=n||[]).map(function(t){var e=t;return k(t)&&(e={x:t[0],y:t[1],z:t[2]}),v.Cartesian3.fromDegrees(e.x,e.y,e.z||0)}),r=this.plotDrawTool.attributeToEntity({type:"polyline",style:o()({},W,i),attr:o()({},e||{})},a);return this._plusEntity(r),r}},{key:"startDraw",value:function(t,e){var i=this,n=o()({success:function(t){Q(t,{id:t.id}),i._plusEntity(t),e&&e(t),i.fire("ui")}},t);this.plotDrawTool.startDraw(n)}},{key:"createPlot",value:function(t,e){if(!t||!t.type||!t.style||!e||void 0===e[0]||e.length<2)return null;var i=this.plotDrawTool.attributeToEntity(t,g.draw.util.lonlat2cartesian([e[0],e[1],e[2]||0]));return Q(i,{id:i.id}),this._plusEntity(i),i}},{key:"getPlotById",value:function(t){return this.plotDrawTool.getEntityById(t)}},{key:"updatePlotStyle",value:function(t,e){if(t&&e){var i=this.getPlotById(t);if(i&&i.attribute){var n=i.attribute.type;"circle"===n&&(n="ellipse"),g.draw.attr[n]&&(g.draw.attr[n].style2Entity(e,i[n]),this._plusEntity(i)),this.fire("ui")}}}},{key:"updatePlotAttribute",value:function(t,e){Q(this.getPlotById(t),e),this.fire("ui")}},{key:"deletePlot",value:function(t){var e=this.getPlotById(t);e&&this.plotDrawTool.deleteEntity(e),this.fire("ui")}},{key:"loadGeoJSON",value:function(t){var e=this;this.plotDrawTool.loadJson(t);for(var i=this.plotDrawTool.getEntitys(),n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).title;this.viewPoints.push({id:v.createGuid(),title:t,viewPoint:this.getViewPoint()})}},{key:"removeViewPoint",value:function(t){this.viewPoints=this.viewPoints.filter(function(e){return e.id!==t})}},{key:"focusViewPoint",value:function(t){var e=this.viewPoints.filter(function(e){return e.id===t})[0];e&&this.flyToViewPoint(e.viewPoint)}},{key:"destroy",value:function(){this.measureTool.clearMeasure(),this.clearAllPlots(),this.removeModels(),this.viewer.destroy(),this.viewer=null,this.fire("ui")}}]),e}(_),Y={props:{showTool:{type:Boolean,default:!0},option:{type:Object,default:function(){return{}}}},beforeDestroy:function(){w.map&&w.map.destroy&&(w.map.destroy(),w.map=null)},mounted:function(){var t=this,e=new U(this.$refs.map,this.option);e.on("ui",function(){t.$store.commit("map/UPDATE_TIMESTAMP")}),w.map=e,this.$emit("init",e)}},X=(i("ISHS"),i("ZrdR")),Z=Object(X.a)(Y,function(){var t=this.$createElement;return(this._self._c||t)("div",{ref:"map",attrs:{id:"map"}})},[],!1,null,"8dddbc9e",null);Z.options.__file="index.vue";var J=Z.exports,G={opacity:1,color:"#FFFFFF",font_family:"黑体",font_size:18,font_style:"normal",font_weight:"normal",border:!1,border_color:"#ffffff",border_width:2,background:!0,background_color:"#000"},q={components:{},data:function(){return{label:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},labels:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&w.map?w.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"label"===t.attribute.type})}},methods:{editHandle:function(t){w.map&&(this.label={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initLabel:function(){this.label={id:null,name:""}},createHandle:function(){var t=this;if(w.map){var e=w.map,i=this.label,n=i.id,a=i.name,r=n&&e.getPlotById(n);this.closeCreateHandle(),r?(e.updatePlotStyle(n,{text:a}),e.updatePlotAttribute(n,{name:a}),this._initLabel(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"label",style:o()({text:a},G),attr:{name:a}},function(){t._initLabel(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,w.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(w.map){var e=w.map.getPlotById(t);e&&w.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){w.map&&this.entities.forEach(function(t){w.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},K=(i("GtY0"),Object(X.a)(q,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 创建\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showPlot?"隐藏":"显示")+"\n ")])],1)],1),t._v(" "),t._l(t.labels,function(e){return i("el-row",{key:e.attr.id,attrs:{gutter:10}},[i("el-col",{attrs:{span:14}},[t._v("\n "+t._s(e.attr.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建标注","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("请输入内容:")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.label.name,callback:function(e){t.$set(t.label,"name",e)},expression:"label.name"}}),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"78dad9b9",null));K.options.__file="Label.vue";var tt=K.exports,et={components:{},data:function(){return{label:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},labels:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&w.map?w.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"polygon"===t.attribute.type})}},methods:{editHandle:function(t){w.map&&(this.label={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initLabel:function(){this.label={id:null,name:""}},createHandle:function(){var t=this;if(w.map){var e=w.map,i=this.label,n=i.id,o=i.name,a=n&&e.getPlotById(n);this.closeCreateHandle(),a?(e.updatePlotStyle(n,{text:o}),e.updatePlotAttribute(n,{name:o}),this._initLabel(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"polygon",style:{text:o},attr:{name:o}},function(){t._initLabel(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,w.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(w.map){var e=w.map.getPlotById(t);e&&w.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){w.map&&this.entities.forEach(function(t){w.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},it=(i("bQsq"),Object(X.a)(et,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 创建\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showPlot?"隐藏":"显示")+"\n ")])],1)],1),t._v(" "),t._l(t.labels,function(e){return i("el-row",{key:e.attr.id,attrs:{gutter:10}},[i("el-col",{attrs:{span:14}},[t._v("\n "+t._s(e.attr.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textalign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建标注","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("请输入内容:")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.label.name,callback:function(e){t.$set(t.label,"name",e)},expression:"label.name"}}),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"c873ef7c",null));it.options.__file="Plot.vue";var nt=it.exports,ot={components:{},data:function(){return{images:[{url:"../../../public/images/icon/1.png",type:"消防预警"},{url:"../../../public/images/icon/2.png",type:"风险预警"},{url:"../../../public/images/icon/3.png",type:"监控"},{url:"../../../public/images/wet.png",type:"车辆1"},{url:"../../../public/images/dry.png",type:"车辆2"},{url:"../../../public/images/alarm1.png",type:"告警"},{url:"../../../public/images/police.png",type:"警察"}],marker:{id:null,name:"",image:null,scale:.25},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},markers:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&w.map?w.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"billboard"===t.attribute.type})}},methods:{editHandle:function(t){w.map&&(this.marker={id:t.attr.id,name:t.attr.name,image:t.style.image,scale:.5},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initMarker:function(){this.marker={id:null,name:"",image:"",scale:.25}},createHandle:function(){var t=this;if(w.map){var e=w.map,i=this.marker,n=i.id,o=i.image,a=i.scale,r=i.name,s=n&&e.getPlotById(n);this.closeCreateHandle(),s?(e.updatePlotStyle(n,{image:o,scale:a}),e.updatePlotAttribute(n,{name:r}),this._initMarker(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"billboard",style:{image:o,scale:a},attr:{name:r}},function(){t._initMarker()})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,w.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(w.map){var e=w.map.getPlotById(t);e&&w.map.viewer.flyTo(e,{duration:1})}},clickCreateHandle:function(t){var e=this;w.map&&w.map.startDraw({type:"billboard",style:{image:t,scale:.25}},function(){e.$store.dispatch("map/updateTimestamp")})},clearHandle:function(){w.map&&this.entities.forEach(function(t){w.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},at=(i("SjRo"),Object(X.a)(ot,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"images"},t._l(t.images,function(e){return i("img",{key:e.url,attrs:{src:e.url},on:{click:function(i){t.clickCreateHandle(e.url)}}})})),t._v(" "),i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 创建\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showPlot?"隐藏":"显示")+"\n ")])],1)],1),t._v(" "),t._l(t.markers,function(e){return i("el-row",{key:e.attr.id,attrs:{gutter:10}},[i("el-col",{attrs:{span:2}},[i("img",{staticStyle:{width:"22px",height:"22px"},attrs:{src:e.style.image}})]),t._v(" "),i("el-col",{attrs:{span:12}},[t._v("\n "+t._s(e.attr.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建图标","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("请输入内容:")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.marker.name,callback:function(e){t.$set(t.marker,"name",e)},expression:"marker.name"}}),t._v(" "),i("div",{staticClass:"image-list"},[i("ul",t._l(t.images,function(e){return i("li",{key:e.url,class:t.marker.image===e.url?"active":"",on:{click:function(i){t.marker.image=e.url}}},[i("img",{attrs:{src:e.url}})])}))]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"2c546c2a",null));at.options.__file="Marker.vue";var rt=at.exports,st={color:"#ff0000",duration:2e3,gradient:0,count:3},lt={data:function(){return{circle:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},circles:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&w.map?w.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"circle"===t.attribute.type&&t.attribute.attr&&t.attribute.attr.wave})}},methods:{editHandle:function(t){w.map&&(this.circle={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initCircle:function(){this.label={id:null,name:""}},createHandle:function(){var t=this;if(w.map){var e=w.map,i=this.circle,n=i.id,a=i.name,r=n&&e.getPlotById(n);this.closeCreateHandle(),r?(e.updatePlotAttribute(n,{name:a}),this._initCircle(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"circle",style:o()({outline:!1},st),attr:{name:a,wave:!0}},function(){t._initCircle(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,w.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(w.map){var e=w.map.getPlotById(t);e&&w.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){w.map&&this.entities.forEach(function(t){w.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},ct=(i("x2oE"),Object(X.a)(lt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 创建\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showPlot?"隐藏":"显示")+"\n ")])],1)],1),t._v(" "),t._l(t.circles,function(e){return i("el-row",{key:e.attr.id,attrs:{gutter:10}},[i("el-col",{attrs:{span:14}},[t._v("\n "+t._s(e.attr.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建波动圈","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("请输入内容:")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.circle.name,callback:function(e){t.$set(t.circle,"name",e)},expression:"circle.name"}}),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"61a99328",null));ct.options.__file="Wave.vue";var ut=ct.exports,dt=i("omC7"),mt=i.n(dt),ft=i("4QxH"),pt={data:function(){return{enablePopup:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},hasEdit:function(){return!this.timestamp||!w.map||w.map.isPlotEditing()}},methods:{toggleEditHandle:function(){w.map&&(w.map.setPlotEditable(!this.hasEdit),this.$store.dispatch("map/updateTimestamp"))},clearHandle:function(){w.map&&(w.map.clearAllPlots(),this.$store.dispatch("map/updateTimestamp"))},downloadHandle:function(){if(w.map){var t=mt()(w.map.toGeoJSON()),e=new Blob([t],{type:"text/plain;charset=utf-8"});Object(ft.saveAs)(e,"plots_"+(new Date).getTime()+".geojson")}},togglePopup:function(){this.enablePopup=!this.enablePopup}},mounted:function(){}},At=(i("CV9j"),Object(X.a)(pt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-button-group",[i("el-button",{attrs:{size:"mini"},on:{click:t.toggleEditHandle}},[t._v(t._s(t.hasEdit?"停止编辑":"编辑"))]),t._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:t.clearHandle}},[t._v("清空")]),t._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:t.downloadHandle}},[t._v("下载")])],1)},[],!1,null,null,null));At.options.__file="Tool.vue";var ht=At.exports,vt={components:{},data:function(){return{model:{id:"",name:"",link:""},showCreatePanel:!1,showModel:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},models:function(){return this.timestamp&&w.map?w.map.models:[]}},methods:{editHandle:function(t){w.map&&(this.model={id:t.id,name:t.name,link:t.link},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.removeModel(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1,this._initModel()},showCreateHandle:function(){this.showCreatePanel=!0},toggleModelVisible:function(t){var e=w.map.getModel(t);e&&w.map.setModelVisible(t,!e.visible),this.$store.dispatch("map/updateTimestamp")},_initModel:function(){this.model={id:null,name:"",link:""}},createHandle:function(){if(w.map){var t=w.map,e=this.model,i=e.link,n=e.name;this.closeCreateHandle(),t.addModel({name:n,link:i}),this.$store.dispatch("map/updateTimestamp")}},toggleVisible:function(){var t=this;this.showModel=!this.showModel,w.map&&this.models.forEach(function(e){w.map.setModelVisible(e.id,t.showModel)}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){w.map&&w.map.flyToModel(t)},clearHandle:function(){w.map&&this.models.forEach(function(t){w.removeModel(t.id)}),this.$store.dispatch("map/updateTimestamp")}}},gt=(i("CiI1"),Object(X.a)(vt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 添加\n ")]),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")]),t._v(" "),i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showModel?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showModel?"隐藏":"显示")+"\n ")])],1),t._v(" "),t._l(t.models,function(e){return i("el-row",{key:e.link,attrs:{gutter:10}},[i("el-col",{attrs:{span:12}},[t._v("\n "+t._s(e.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-view",size:"mini",type:e.visible?"primary":"default",circle:""},on:{click:function(){return t.toggleModelVisible(e.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"添加模型","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("模型名称")]),t._v(" "),i("el-input",{attrs:{placeholder:"模型名称"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}}),t._v(" "),i("p",[t._v("模型地址")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入模型地址"},model:{value:t.model.link,callback:function(e){t.$set(t.model,"link",e)},expression:"model.link"}}),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"5860ad2f",null));gt.options.__file="Model.vue";var wt=gt.exports,yt={components:{},data:function(){return{images:[{url:"./images/wet.png",type:"光柱"}],marker:{id:null,name:"",image:null,scale:.25},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},markers:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&w.map?w.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"billboard"===t.attribute.type&&t.attribute.attr.isBeam})}},methods:{editHandle:function(t){w.map&&(this.marker={id:t.attr.id,name:t.attr.name,image:t.style.image,scale:.5},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initMarker:function(){this.marker={id:null,name:"",image:"",scale:.25}},createHandle:function(){var t=this;if(w.map){var e=w.map,i=this.marker,n=i.id,o=i.image,a=i.scale,r=i.name,s=n&&e.getPlotById(n);this.closeCreateHandle(),s?(e.updatePlotStyle(n,{image:o,scale:a}),e.updatePlotAttribute(n,{name:r}),this._initMarker(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"billboard",style:{image:o,scale:a},attr:{name:r}},function(){t._initMarker()})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,w.map&&(this.entities.forEach(function(e){e.show=t.showPlot}),w.map.beams.setVisible(this.showPlot)),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(w.map){var e=w.map.getPlotById(t);e&&w.map.viewer.flyTo(e,{duration:1})}},clickCreateHandle:function(t){var e=this;w.map&&w.map.startDraw({type:"billboard",style:{image:t,scale:.25},attr:{isBeam:!0}},function(t){e.$store.dispatch("map/updateTimestamp")})},clearHandle:function(){w.map&&this.entities.forEach(function(t){w.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},bt=(i("Y00k"),Object(X.a)(yt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"images"},t._l(t.images,function(e){return i("img",{key:e.url,attrs:{src:e.url},on:{click:function(i){t.clickCreateHandle(e.url)}}})})),t._v(" "),i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 创建\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showPlot?"隐藏":"显示")+"\n ")])],1)],1),t._v(" "),t._l(t.markers,function(e){return i("el-row",{key:e.attr.id,attrs:{gutter:10}},[i("el-col",{attrs:{span:2}},[i("img",{staticStyle:{width:"22px",height:"22px"},attrs:{src:e.style.image}})]),t._v(" "),i("el-col",{attrs:{span:12}},[t._v("\n "+t._s(e.attr.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建图标","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("请输入内容:")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.marker.name,callback:function(e){t.$set(t.marker,"name",e)},expression:"marker.name"}}),t._v(" "),i("div",{staticClass:"image-list"},[i("ul",t._l(t.images,function(e){return i("li",{key:e.url,class:t.marker.image===e.url?"active":"",on:{click:function(i){t.marker.image=e.url}}},[i("img",{attrs:{src:e.url}})])}))]),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"ed9e3998",null));bt.options.__file="Beam.vue";var Ct=bt.exports,kt=i("unDg"),Pt=i.n(kt),Dt={color:"#FF6A00",width:6,lineType:"solid",outline:!1,outlineColor:"#ffffff",outlineWidth:"1.0",opacity:1},Mt={components:{},data:function(){return{line:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},lines:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&w.map?w.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"polyline"===t.attribute.type})}},methods:{editHandle:function(t){w.map&&(this.line={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){w.map&&(w.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initLine:function(){this.line={id:null,name:""}},createHandle:function(){var t=this;if(w.map){console.log(w.map);var e=w.map,i=this.line,n=i.id,o=i.name,a=n&&e.getPlotById(n);this.closeCreateHandle(),a?(e.updatePlotStyle.apply(e,[n].concat(Pt()(Dt))),e.updatePlotAttribute(n,{name:o}),this._initLine(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"polyline",style:Dt,attr:{name:o,animateLine:!0}},function(){t._initLine(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,w.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(w.map){var e=w.map.getPlotById(t);e&&w.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){w.map&&this.entities.forEach(function(t){w.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},Tt=(i("Nfm3"),Object(X.a)(Mt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"container"},[i("div",{staticClass:"model-panel-list"},[i("el-row",{attrs:{gutter:10}},[i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n 创建\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n 清空\n ")])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n "+t._s(t.showPlot?"隐藏":"显示")+"\n ")])],1)],1),t._v(" "),t._l(t.lines,function(e){return i("el-row",{key:e.attr.id,attrs:{gutter:10}},[i("el-col",{attrs:{span:14}},[t._v("\n "+t._s(e.attr.name||" ")+"\n ")]),t._v(" "),i("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[i("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),i("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建动态线","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[i("p",[t._v("请输入内容:")]),t._v(" "),i("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.line.name,callback:function(e){t.$set(t.line,"name",e)},expression:"line.name"}}),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"46e30bb5",null));Tt.options.__file="AnimateLine.vue";var xt={components:{LabelPanel:tt,PlotPanel:nt,MarkerPanel:rt,WavePanel:ut,ToolPanel:ht,ModelPanel:wt,AnimateLinePanel:Tt.exports,BeamPanel:Ct},data:function(){return{activeName:"model",showTab:!0}}},_t=(i("OQcS"),Object(X.a)(xt,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tab"},[i("div",{staticClass:"tool-button"},[i("el-button",{attrs:{icon:"el-icon-setting",circle:""},on:{click:function(e){t.showTab=!t.showTab}}})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showTab,expression:"showTab"}],staticClass:"tab-content"},[i("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"模型",name:"model"}},[i("model-panel")],1),t._v(" "),i("el-tab-pane",{attrs:{label:"标注",name:"label"}},[i("label-panel")],1),t._v(" "),i("el-tab-pane",{attrs:{label:"电子围栏",name:"plot"}},[i("plot-panel")],1),t._v(" "),i("el-tab-pane",{attrs:{label:"图标",name:"marker"}},[i("marker-panel")],1),t._v(" "),i("el-tab-pane",{attrs:{label:"动画轨迹",name:"line"}},[i("animate-line-panel")],1)],1),t._v(" "),i("tool-panel")],1)])},[],!1,null,"e3d76940",null));_t.options.__file="index.vue";var Ht={name:"App",components:{Map:J,Tab:_t.exports},data:function(){return{loaded:!1,map:null,option:null,heatLayer:null,shineishiwai:!0}},mounted:function(){this.option={viewpoint:{y:31.254992,x:120.727592,z:289.24,heading:13.8,pitch:-37.3,roll:360},homeButton:!0,currentTime:"08:30:00",imageryProvider:new Cesium.WebMapTileServiceImageryProvider({url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layer:"",style:"default",tileMatrixSetID:"w",format:"tiles",maximumLevel:18})},window.sss=this},methods:{init:function(t){this.loaded=!0,t.addModel({link:"http://model.szwutu.cn:8100/data1/namiso-ub3dm/tileset.json",name:"商业园区",callback:function(t){var e=t.boundingSphere,i=Cesium.Cartographic.fromCartesian(e.center),n=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),o=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,102),a=Cesium.Cartesian3.subtract(o,n,new Cesium.Cartesian3);t.modelMatrix=Cesium.Matrix4.fromTranslation(a)}}),t.viewer.scene.globe.baseColor=Cesium.Color.fromCssColorString("#050F1F"),t.viewer.scene.logarithmicDepthBuffer=!1,t.viewer.scene.globe.enableLighting=!0,t.viewer.scene.sun.show=!1,t.viewer.scene.moon.show=!1,t.viewer.scene.fog.enabled=!1,t.viewer.scene.skyBox=null,this.initEvent(t),this.testLoadedData()},testLoadedData:function(){var t=w.map;t&&$.get("./public/data/plots_namisuo.geojson",function(e){t.loadGeoJSON(e)})},initEvent:function(t){var e=null,i=this;t.on("click",function(n){var o=n.position,a=n.cartesian3,r=(n.latLngPositionGlobe,n.latLngPosition,n.entity),s=n.attr;e&&(e.destroy(),e=null),r&&r.attribute&&r.attribute.type&&((e=new wutu3d.DivPoint(t.viewer,{html:"",position:a,anchor:[-170,-80]})).visible=!0),s.name&&"含内景大楼"===s.name&&(i.changeModel(!i.shineishiwai),i.shineishiwai=!i.shineishiwai);var l=function(t){var e=new v.Cartesian3(t.x,t.y,t.z),i=v.Cartographic.fromCartesian(e),n=v.Math.toDegrees(i.latitude);return{lng:v.Math.toDegrees(i.longitude),lat:n,alt:i.height}}(function(t,e){var i=e.scene.drillPick(t);e.scene.render();for(var n=void 0,o=!1,a=0;a0&&l.alt<121.7&&(i.changeModel(!i.shineishiwai),i.shineishiwai=!i.shineishiwai)})},changeModel:function(t){if(console.log(t),t){w.map.models.map(function(t){"室内"===t.name?w.map.setModelVisible(t.id,!1):w.map.setModelVisible(t.id,!0)}),w.map.setViewpoint({y:30.231104,x:120.157372,z:298.45,heading:173,pitch:-28.8,roll:6.2},{duration:1.5});var e=w.map.viewer;e.scene.skyBox=null,e.scene.sun.show=!0,e.scene.moon.show=!0,e.scene.globe.show=!0,e.scene.logarithmicDepthBuffer=!0,e.scene.skyAtmosphere.show=!0,e.scene.backgroundColor=Cesium.Color.fromCssColorString("rgba(0,0,0, 1)")}else{w.map.models.map(function(t){"室内"===t.name?(w.map.setModelVisible(t.id,!0),w.map.flyToModel(t.id)):w.map.setModelVisible(t.id,!1)});var i=w.map.viewer;i.scene.skyBox=null,i.scene.sun.show=!1,i.scene.moon.show=!1,i.scene.globe.show=!1,i.scene.logarithmicDepthBuffer=!1,i.scene.skyAtmosphere.show=!1,i.scene.backgroundColor=Cesium.Color.fromCssColorString("rgba(0,0,0, 1)")}}}},Et=(i("sT27"),Object(X.a)(Ht,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"map-layout"},[this.option?e("Map",{attrs:{option:this.option},on:{init:this.init}}):this._e(),this._v(" "),this.loaded?e("Tab"):this._e()],1)},[],!1,null,"1a2fb06a",null));Et.options.__file="index.vue";e.default=Et.exports},GtY0:function(t,e,i){"use strict";var n=i("I2K/");i.n(n).a},"I2K/":function(t,e,i){},ISHS:function(t,e,i){"use strict";var n=i("E3sa");i.n(n).a},"J+mW":function(t,e,i){},Nfm3:function(t,e,i){"use strict";var n=i("UFMK");i.n(n).a},OQcS:function(t,e,i){"use strict";var n=i("J+mW");i.n(n).a},Om0O:function(t,e,i){},OwJJ:function(t,e){(function(e){t.exports=e}).call(this,{})},QJBn:function(t,e,i){var n=i("Bney"),o=i("lwtk"),a=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i("copg")(Function.call,i("N7Rc").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return a(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:a}},SjRo:function(t,e,i){"use strict";var n=i("9lDM");i.n(n).a},"T+Ik":function(t,e,i){i("3gs9");var n=i("zpmP").Object;t.exports=function(t,e){return n.create(t,e)}},UFMK:function(t,e,i){},XXnF:function(t,e,i){i("vvQG"),t.exports=i("zpmP").Object.getPrototypeOf},Xtzg:function(t,e,i){"use strict";e.__esModule=!0;var n=function(t){return t&&t.__esModule?t:{default:t}}(i("Q2cO"));e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,n.default)(e))&&"function"!=typeof e?t:e}},Y00k:function(t,e,i){"use strict";var n=i("Om0O");i.n(n).a},bQsq:function(t,e,i){"use strict";var n=i("EmdD");i.n(n).a},hLur:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},i6P6:function(t,e,i){},"ly/r":function(t,e,i){t.exports={default:i("p1WB"),__esModule:!0}},p1WB:function(t,e,i){i("vlZu"),t.exports=i("zpmP").Object.setPrototypeOf},"pN+8":function(t,e,i){t.exports=function(){"use strict";var t="millisecond",e="second",i="minute",n="hour",o="day",a="week",r="month",s="quarter",l="year",c="date",u="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},A={s:p,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),o=i%60;return(e<=0?"+":"-")+p(n,2,"0")+":"+p(o,2,"0")},m:function t(e,i){if(e.date()1)return t(r[0])}else{var s=e.name;v[s]=e,o=s}return!n&&o&&(h=o),o||!n&&h},y=function(t,e){if(g(t))return t.clone();var i="object"==typeof e?e:{};return i.date=t,i.args=arguments,new C(i)},b=A;b.l=w,b.i=g,b.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function f(t){this.$L=w(t.locale,null,!0),this.parse(t)}var p=f.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var o=n[2]-1||0,a=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return!(this.$d.toString()===u)},p.isSame=function(t,e){var i=y(t);return this.startOf(e)<=i&&i<=this.endOf(e)},p.isAfter=function(t,e){return y(t)