!function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=12)}([function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){var o=r(9);function n(t,e){for(var r=0;r>2]|=t[i]<>6,a[n++]=128|63&o):o<55296||o>=57344?(a[n++]=224|o>>12,a[n++]=128|o>>6&63,a[n++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++i)),a[n++]=240|o>>18,a[n++]=128|o>>12&63,a[n++]=128|o>>6&63,a[n++]=128|63&o);else for(n=this.start;i>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(u[n>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=64?(this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>2]|=EXTRA[3&e],e>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var t,e,r,o,n,i,s=this.blocks;this.first?e=((e=((t=((t=s[0]-680876937)<<7|t>>>25)-271733879<<0)^(r=((r=(-271733879^(o=((o=(-1732584194^2004318071&t)+s[1]-117830708)<<12|o>>>20)+t<<0)&(-271733879^t))+s[2]-1126478375)<<17|r>>>15)+o<<0)&(o^t))+s[3]-1316259209)<<22|e>>>10)+r<<0:(t=this.h0,e=this.h1,r=this.h2,e=((e+=((t=((t+=((o=this.h3)^e&(r^o))+s[0]-680876936)<<7|t>>>25)+e<<0)^(r=((r+=(e^(o=((o+=(r^t&(e^r))+s[1]-389564586)<<12|o>>>20)+t<<0)&(t^e))+s[2]+606105819)<<17|r>>>15)+o<<0)&(o^t))+s[3]-1044525330)<<22|e>>>10)+r<<0),e=((e+=((t=((t+=(o^e&(r^o))+s[4]-176418897)<<7|t>>>25)+e<<0)^(r=((r+=(e^(o=((o+=(r^t&(e^r))+s[5]+1200080426)<<12|o>>>20)+t<<0)&(t^e))+s[6]-1473231341)<<17|r>>>15)+o<<0)&(o^t))+s[7]-45705983)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(o^e&(r^o))+s[8]+1770035416)<<7|t>>>25)+e<<0)^(r=((r+=(e^(o=((o+=(r^t&(e^r))+s[9]-1958414417)<<12|o>>>20)+t<<0)&(t^e))+s[10]-42063)<<17|r>>>15)+o<<0)&(o^t))+s[11]-1990404162)<<22|e>>>10)+r<<0,e=((e+=((t=((t+=(o^e&(r^o))+s[12]+1804603682)<<7|t>>>25)+e<<0)^(r=((r+=(e^(o=((o+=(r^t&(e^r))+s[13]-40341101)<<12|o>>>20)+t<<0)&(t^e))+s[14]-1502002290)<<17|r>>>15)+o<<0)&(o^t))+s[15]+1236535329)<<22|e>>>10)+r<<0,e=((e+=((o=((o+=(e^r&((t=((t+=(r^o&(e^r))+s[1]-165796510)<<5|t>>>27)+e<<0)^e))+s[6]-1069501632)<<9|o>>>23)+t<<0)^t&((r=((r+=(t^e&(o^t))+s[11]+643717713)<<14|r>>>18)+o<<0)^o))+s[0]-373897302)<<20|e>>>12)+r<<0,e=((e+=((o=((o+=(e^r&((t=((t+=(r^o&(e^r))+s[5]-701558691)<<5|t>>>27)+e<<0)^e))+s[10]+38016083)<<9|o>>>23)+t<<0)^t&((r=((r+=(t^e&(o^t))+s[15]-660478335)<<14|r>>>18)+o<<0)^o))+s[4]-405537848)<<20|e>>>12)+r<<0,e=((e+=((o=((o+=(e^r&((t=((t+=(r^o&(e^r))+s[9]+568446438)<<5|t>>>27)+e<<0)^e))+s[14]-1019803690)<<9|o>>>23)+t<<0)^t&((r=((r+=(t^e&(o^t))+s[3]-187363961)<<14|r>>>18)+o<<0)^o))+s[8]+1163531501)<<20|e>>>12)+r<<0,e=((e+=((o=((o+=(e^r&((t=((t+=(r^o&(e^r))+s[13]-1444681467)<<5|t>>>27)+e<<0)^e))+s[2]-51403784)<<9|o>>>23)+t<<0)^t&((r=((r+=(t^e&(o^t))+s[7]+1735328473)<<14|r>>>18)+o<<0)^o))+s[12]-1926607734)<<20|e>>>12)+r<<0,e=((e+=((i=(o=((o+=((n=e^r)^(t=((t+=(n^o)+s[5]-378558)<<4|t>>>28)+e<<0))+s[8]-2022574463)<<11|o>>>21)+t<<0)^t)^(r=((r+=(i^e)+s[11]+1839030562)<<16|r>>>16)+o<<0))+s[14]-35309556)<<23|e>>>9)+r<<0,e=((e+=((i=(o=((o+=((n=e^r)^(t=((t+=(n^o)+s[1]-1530992060)<<4|t>>>28)+e<<0))+s[4]+1272893353)<<11|o>>>21)+t<<0)^t)^(r=((r+=(i^e)+s[7]-155497632)<<16|r>>>16)+o<<0))+s[10]-1094730640)<<23|e>>>9)+r<<0,e=((e+=((i=(o=((o+=((n=e^r)^(t=((t+=(n^o)+s[13]+681279174)<<4|t>>>28)+e<<0))+s[0]-358537222)<<11|o>>>21)+t<<0)^t)^(r=((r+=(i^e)+s[3]-722521979)<<16|r>>>16)+o<<0))+s[6]+76029189)<<23|e>>>9)+r<<0,e=((e+=((i=(o=((o+=((n=e^r)^(t=((t+=(n^o)+s[9]-640364487)<<4|t>>>28)+e<<0))+s[12]-421815835)<<11|o>>>21)+t<<0)^t)^(r=((r+=(i^e)+s[15]+530742520)<<16|r>>>16)+o<<0))+s[2]-995338651)<<23|e>>>9)+r<<0,e=((e+=((o=((o+=(e^((t=((t+=(r^(e|~o))+s[0]-198630844)<<6|t>>>26)+e<<0)|~r))+s[7]+1126891415)<<10|o>>>22)+t<<0)^((r=((r+=(t^(o|~e))+s[14]-1416354905)<<15|r>>>17)+o<<0)|~t))+s[5]-57434055)<<21|e>>>11)+r<<0,e=((e+=((o=((o+=(e^((t=((t+=(r^(e|~o))+s[12]+1700485571)<<6|t>>>26)+e<<0)|~r))+s[3]-1894986606)<<10|o>>>22)+t<<0)^((r=((r+=(t^(o|~e))+s[10]-1051523)<<15|r>>>17)+o<<0)|~t))+s[1]-2054922799)<<21|e>>>11)+r<<0,e=((e+=((o=((o+=(e^((t=((t+=(r^(e|~o))+s[8]+1873313359)<<6|t>>>26)+e<<0)|~r))+s[15]-30611744)<<10|o>>>22)+t<<0)^((r=((r+=(t^(o|~e))+s[6]-1560198380)<<15|r>>>17)+o<<0)|~t))+s[13]+1309151649)<<21|e>>>11)+r<<0,e=((e+=((o=((o+=(e^((t=((t+=(r^(e|~o))+s[4]-145523070)<<6|t>>>26)+e<<0)|~r))+s[11]-1120210379)<<10|o>>>22)+t<<0)^((r=((r+=(t^(o|~e))+s[2]+718787259)<<15|r>>>17)+o<<0)|~t))+s[9]-343485551)<<21|e>>>11)+r<<0,this.first?(this.h0=t+1732584193<<0,this.h1=e-271733879<<0,this.h2=r-1732584194<<0,this.h3=o+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+e<<0,this.h2=this.h2+r<<0,this.h3=this.h3+o<<0)},Md5.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,o=this.h3;return HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,o=this.h3;return[255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&o,o>>8&255,o>>16&255,o>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var t,e,r,o="",n=this.array(),i=0;i<15;)t=n[i++],e=n[i++],r=n[i++],o+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[63&(t<<4|e>>>4)]+BASE64_ENCODE_CHAR[63&(e<<2|r>>>6)]+BASE64_ENCODE_CHAR[63&r];return t=n[i],o+=BASE64_ENCODE_CHAR[t>>>2]+BASE64_ENCODE_CHAR[t<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(13),__webpack_require__(14))},function(t,e){function r(t,e,r,o,n,i,s){try{var u=t[i](s),a=u.value}catch(t){return void r(t)}u.done?e(a):Promise.resolve(a).then(o,n)}t.exports=function(t){return function(){var e=this,o=arguments;return new Promise((function(n,i){var s=t.apply(e,o);function u(t){r(s,n,i,u,a,"next",t)}function a(t){r(s,n,i,u,a,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(21)},function(t,e){var r,o,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(t){o=s}}();var a,c=[],l=!1,f=-1;function h(){l&&a&&(l=!1,a.length?c=a.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=u(h);l=!0;for(var e=c.length;e;){for(a=c,c=[];++f1)for(var r=1;r=0;--n){var i=this.tryEntries[n],u=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=s.call(i,"catchLoc"),c=s.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&s.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),_}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;P(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:T(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),_}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.r(e);var o=r(10),n=r.n(o),i="40ef4712c26360d01e397ebcb0d031ca22";function s(){return localStorage.getItem("9e549c39c542fc9f835c2a5c260f8cc1")}function u(t){localStorage.setItem(i,t||"")}function a(){return localStorage.getItem(i)||""}var c=r(6),l=r.n(c),f=r(1),h=r.n(f),p=r(2),y=r.n(p);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function v(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};h()(this,t),this.domid=e,this.options=v({},r),this.map=null,this.view=null,this.init()}return y()(t,[{key:"init",value:function(){new ol.layer.Tile({title:"天地图矢量图层",source:new ol.source.XYZ({url:"http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=f45027f1731b61b21dcc714b01694ac1",wrapX:!1})}),new ol.layer.Tile({title:"天地图矢量注记图层",source:new ol.source.XYZ({url:"http://t0.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=f45027f1731b61b21dcc714b01694ac1",wrapX:!1})});this.view=new ol.View({center:[116.39123,39.90691],zoom:8,projection:"EPSG:4326"}),this.map=new ol.Map({target:this.domid,view:this.view})}}]),t}(),_=r(3),w=r.n(_),g=r(4),x=r.n(g),m=r(5),O=r.n(m),E=r(0),S=r.n(E);function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function A(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};h()(this,t),this.sdk=e,this.options=A({},r),this.layer=null,this.feature=null,this.host=a(),this.setDefaultValue(),this.init()}return y()(t,[{key:"init",value:function(){}},{key:"getStyle",value:function(){}},{key:"setStyle",value:function(){this.feature.setStyle(this.getStyle(this.feature))}},{key:"setDefaultStatus",value:function(){this.show=this.options.show,this.zIndex=this.options.zIndex}},{key:"add",value:function(){var t=new ol.source.Vector({features:[this.feature]}),e=new ol.layer.Vector({source:t});this.sdk.map.addLayer(e),this.layer=e}},{key:"show",get:function(){return this.options.show},set:function(t){this.options.show=t,this.layer&&this.layer.setVisible(t)}},{key:"zIndex",get:function(){return this.options.zIndex},set:function(t){this.options.zIndex=t,this.layer&&this.layer.setZIndex(t)}},{key:"setDefaultValue",value:function(){var t,e,r;this.options.zIndex=null!==(t=this.options.zIndex)&&void 0!==t?t:0,this.options.show=null===(e=this.options.show)||void 0===e||e,this.options.id=null!==(r=this.options.id)&&void 0!==r?r:function(t){t=t||32;for(var e="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",r=e.length,o="",i=0;i0&&void 0!==arguments[0]?arguments[0]:17,e=this.getExtend();e[0]===e[2]&&e[1]===e[3]?this.sdk.view.animate({center:[e[0],e[1]],zoom:t,rotation:void 0,duration:3e3}):this.sdk.view.fit(e,{duration:3e3,zoom:t,callback:function(){}})}}]),t}();function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=S()(t);if(e){var n=S()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return O()(this,r)}}var H=function(t){x()(r,t);var e=j(r);function r(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h()(this,r),e.call(this,t,o)}return y()(r,[{key:"setDefaultValue",value:function(){var t,e;w()(S()(r.prototype),"setDefaultValue",this).call(this),this.options.position=null!==(t=this.options.position)&&void 0!==t?t:{lng:0,lat:0},this.options.billboard=this.options.billboard||{},this.options.billboard.image=this.options.billboard.image||"",this.options.billboard.show=!this.options.billboard.hasOwnProperty("show")||this.options.billboard.show,this.options.billboard.scale=this.options.billboard.scale||1,this.options.billboard.width=this.options.width||this.options.billboard.width||48,this.options.billboard.height=this.options.height||this.options.billboard.height||48,this.options.label=this.options.label||{},this.options.label.text=this.options.label.text||"",this.options.label.fontSize=this.options.label.fontSize||20,this.options.label.color=this.options.label.color||"#07f8e4",this.options.label.scale=this.options.label.scale||1,this.options.label.show=null===(e=this.options.label.show)||void 0===e||e}},{key:"getStyle",value:function(t){return new ol.style.Style({image:new ol.style.Icon({anchor:[.5,60],anchorOrigin:"top-right",anchorXUnits:"fraction",anchorYUnits:"pixels",offsetOrigin:"top-right",scale:.5,src:this.options.billboard.image}),text:new ol.style.Text({textAlign:"center",textBaseline:"middle",font:"normal 14px 微软雅黑",text:t.get("name"),fill:new ol.style.Fill({color:"#aa3300"}),stroke:new ol.style.Stroke({color:"#ffcc33",width:2})})})}},{key:"init",value:function(){this.feature=new ol.Feature({geometry:new ol.geom.Point([this.options.position.lng,this.options.position.lat]),name:this.options.label.text}),this.setStyle(),this.add(),this.setDefaultStatus()}}]),r}(k);function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=S()(t);if(e){var n=S()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return O()(this,r)}}var M=function(t){x()(r,t);var e=P(r);function r(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h()(this,r),e.call(this,t,o)}return y()(r,[{key:"color",get:function(){return this.options.color},set:function(t){this.options.color=t,this.setStyle()}},{key:"width",get:function(){return this.options.width},set:function(t){this.options.width=t,this.setStyle()}},{key:"setDefaultValue",value:function(){var t,e,o;w()(S()(r.prototype),"setDefaultValue",this).call(this),this.options.color=null!==(t=this.options.color)&&void 0!==t?t:"#23ec0d",this.options.width=null!==(e=this.options.width)&&void 0!==e?e:5,this.options.positions=null!==(o=this.options.positions)&&void 0!==o?o:[]}},{key:"getStyle",value:function(){return new ol.style.Style({stroke:new ol.style.Stroke({color:this.options.color,width:this.options.width})})}},{key:"init",value:function(){for(var t=[],e=this.options.positions.length-1;e>=0;e--)t.push([this.options.positions[e].lng,this.options.positions[e].lat]);this.feature=new ol.Feature({geometry:new ol.geom.LineString(t)}),this.setStyle(),this.add(),this.setDefaultStatus()}}]),r}(k);function T(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=S()(t);if(e){var n=S()(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return O()(this,r)}}var D=function(t){x()(r,t);var e=T(r);function r(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h()(this,r),e.call(this,t,o)}return y()(r,[{key:"getStyle",value:function(){return new ol.style.Style({fill:new ol.style.Fill({color:this.options.color}),stroke:new ol.style.Stroke({color:this.options.stroke.color,width:this.options.stroke.width})})}},{key:"color",get:function(){return this.options.color},set:function(t){this.options.color=t,this.setStyle()}},{key:"stroke_width",get:function(){return this.options.stroke.width},set:function(t){this.options.stroke.width=t,this.setStyle()}},{key:"stroke_color",get:function(){return this.options.stroke.color},set:function(t){this.options.stroke.color=t,this.setStyle()}},{key:"setDefaultValue",value:function(){var t,e,o,n,i;w()(S()(r.prototype),"setDefaultValue",this).call(this),this.options.color=null!==(t=this.options.color)&&void 0!==t?t:"#23ec0d",this.options.positions=null!==(e=this.options.positions)&&void 0!==e?e:[],this.options.stroke=null!==(o=this.options.stroke)&&void 0!==o?o:{},this.options.stroke.width=null!==(n=this.options.stroke.width)&&void 0!==n?n:1,this.options.stroke.color=null!==(i=this.options.stroke.color)&&void 0!==i?i:"#ffcc33"}},{key:"init",value:function(){var t=[];this.options.positions.forEach((function(e){t.push([e.lng,e.lat])})),this.feature=new ol.Feature({geometry:new ol.geom.Polygon([t])}),this.setStyle(),this.add(),this.setDefaultStatus()}}]),r}(k),C=r(11),B=r.n(C),F=r(8),N=r.n(F);function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}function I(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return h()(this,o),(e=r.call(this,t,n)).range={},e}return y()(o,[{key:"getExtend",value:function(){return[Number(this.range.west),Number(this.range.south),Number(this.range.east),Number(this.range.north)]}},{key:"getInfos",value:function(){var t=new URL("/yjearth4.0/data/service/load-compact-service",this.host);return fetch(t.href,{method:"post",body:JSON.stringify({source_id:this.options.id}),headers:{"Content-Type":"application/json",token:s(),Authorization:"Bearer "+s()}})}},{key:"setDefaultValue",value:function(){var t;w()(S()(o.prototype),"setDefaultValue",this).call(this),this.options.id=null!==(t=this.options.id)&&void 0!==t?t:""}},{key:"init",value:(e=B()(N.a.mark((function t(){var e,r;return N.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getInfos();case 2:return e=t.sent,t.next=5,e.text();case 5:r=t.sent,(r=JSON.parse(r)).code?console.error(r.message):(this.range=I({},r.data),console.log(r.data),this.layer=new ol.layer.Tile({source:new ol.source.XYZ({minZoom:r.data.minimumLevel,maxZoom:r.data.maximumLevel,url:r.data.url,projection:"EPSG:3857"})}),this.sdk.map.addLayer(this.layer),this.setDefaultStatus());case 8:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),o}(k);window.YJMap||(window.YJMap={on:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(t.host)},Map:b,Obj:{BillboardObject:H,PolylineObject:M,PolygonObject:D,Tms:U},Global:{openLeftClick:function(t){t.map.on("singleclick",(function(e){var r=e.coordinate;console.log("coordinate",r);var o=t.map.forEachFeatureAtPixel(e.pixel,(function(t){return t}));console.log(o)}))}}})}]);