(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d774c7c4","chunk-bf7d5f92"],{"1a20":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"resItem",staticClass:"resItem"},[a("a-checkbox",{ref:"checkbox",attrs:{"default-checked":""},on:{click:e.onChecked}},[e._v(e._s(e.resName))]),a("a-slider",{ref:"slider",staticClass:"slider",attrs:{min:0,max:1,step:.01,"default-value":1,"tooltip-visible":!1},on:{change:e.onChange}})],1)},s=[],c={name:"ResItem",props:{resId:{type:String},resName:{type:String}},data:function(){return{}},methods:{onChecked:function(e){this.$emit("checkboxChange",e.target.checked,this.resId)},onChange:function(e){this.$emit("sliderChange",e,this.resId)}}},r=c,i=(a("93bf"),a("2877")),o=Object(i["a"])(r,n,s,!1,null,"3fad6673",null);t["default"]=o.exports},3916:function(e,t,a){"use strict";a("9ad0")},"5bc0":function(e,t,a){},"93bf":function(e,t,a){"use strict";a("f69c")},"9ad0":function(e,t,a){},a1ac:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"drag",rawName:"v-drag",value:"resCatalogHeader",expression:"'resCatalogHeader'"}],ref:"ResCatalog",staticClass:"resCatalog ol-unselectable"},[a("div",{ref:"resCatalogHeader",staticClass:"resCatalogHeader"},[e._v("\n        专题图层\n        "),a("span",{staticClass:"resCatalog-close ant-alert-close-icon",on:{click:e.clickClose}},[e._v("X")])]),a("div",{ref:"resCatalogContainer"},[a("a-collapse",{model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},[a("a-collapse-panel",{key:"huaj",attrs:{header:"工程管理范围划定"}},[a("res-item",{ref:"jzd",attrs:{"res-id":"jzd","res-name":"界桩点"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}}),a("res-item",{ref:"ggp",attrs:{"res-id":"ggp","res-name":"公告牌"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}}),a("res-item",{ref:"glfwx",attrs:{"res-id":"glfwx","res-name":"管理范围线"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}})],1),a("a-collapse-panel",{key:"axgh",attrs:{header:"岸线保护与利用规划"}},[a("res-item",{ref:"wykzx",attrs:{"res-id":"wykzx","res-name":"外缘控制线"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}}),a("res-item",{ref:"lskzx",attrs:{"res-id":"lskzx","res-name":"临水控制线"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}}),a("res-item",{ref:"axgnq",attrs:{"res-id":"axgnq","res-name":"岸线功能区"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}})],1),a("a-collapse-panel",{key:"xzqh",attrs:{header:"行政区划"}},[a("res-item",{ref:"xjxzq",attrs:{"res-id":"xjxzq","res-name":"县级行政区"},on:{checkboxChange:e.layerSwitch,sliderChange:e.changeOpacity}})],1)],1)],1)])},s=[],c=(a("5bc0"),a("1a20")),r={name:"ResCatalog",props:{map:{type:Object}},components:{ResItem:c["default"]},data:function(){return{activeKey:["huaj"]}},methods:{clickClose:function(){this.$refs.ResCatalog.style.display="none",this.$emit("resClose",!0)},layerSwitch:function(e,t){var a=this.getLayerByName(t);a&&a.setVisible(e)},changeOpacity:function(e,t){var a=this.getLayerByName(t);a&&a.setOpacity(e)},getLayerByName:function(e){if(this.map){for(var t=null,a=this.map.getLayers(),n=a.getLength(),s=0;s<n;s++){var c=a.item(s).get("name");if(c==e)return t=a.item(s),t}return t}}},directives:{drag:{inserted:function(e,t,a){var n=e,s=a.context.$refs[t.value],c=s||document,r=(s||document.body,n.clientWidth),i=n.clientHeight;n.onmousedown=function(e){e.stopPropagation();var t=e.pageX-n.offsetLeft,a=e.pageY-n.offsetTop,s=e.offsetX,o=e.offsetY;c.onmousemove=function(e){var c=e.clientX-t,l=e.clientY-a;c<0&&(c=0),l<0&&(l=0),c>document.documentElement.clientWidth-r+s-t&&(c=document.documentElement.clientWidth-r+s-t),l>document.documentElement.clientHeight-i+o-a&&(l=document.documentElement.clientHeight-i+o-a),n.style.left=c+"px",n.style.top=l+"px"},document.onmouseup=function(e){c.onmousemove=null,document.onmouseup=null}}}}}},i=r,o=(a("3916"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"edca85b2",null);t["default"]=l.exports},f69c:function(e,t,a){}}]);