????

Your IP : 3.15.168.130


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/95.485d805f92f5e0c9bf19.js

(function(){var e={"esri/layers/BaseTileLayer":"8rsy","esri/layers/BingMapsLayer":"V7mb"},t=this||window,r=t.webpackJsonp=t.webpackJsonp||[];r.registerAbsMids?r.registerAbsMids(e):(r.absMidsWaiting=r.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{"8rsy":function(e,t,r){var o,a;o=[r.dj.c(e.i),t,r("zOht"),r("zp6E"),r("ma1f"),r("Vx27"),r("N7S/"),r("Z4y+"),r("lRq4"),r("0RER"),r("WaJo"),r("OXmT"),r("pMLx")],a=(function(e,t,r,o,a,n,i,l,s,p,u,d,y){var c={id:"0/0/0",level:0,row:0,col:0,extent:null};return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tileInfo=y.create({spatialReference:l.WebMercator,size:256}),t.type="base-tile",t.fullExtent=new i(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,l.WebMercator),t.spatialReference=l.WebMercator,t}return r.__extends(t,e),t.prototype.getTileBounds=function(e,t,r,o){var a=o||s.create();return c.level=e,c.row=t,c.col=r,c.extent=a,this.tileInfo.updateTileInfo(c),c.extent=null,a},t.prototype.fetchTile=function(e,t,r,a){void 0===a&&(a={});var n=a.signal,i=a.timestamp,l=this.getTileUrl(e,t,r),s={responseType:"image",signal:n};return null!=i&&(s.query={_ts:a.timestamp}),o(l,s).then((function(e){return e.data}))},t.prototype.getTileUrl=function(){throw new a("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")},r.__decorate([n.property({type:y})],t.prototype,"tileInfo",void 0),r.__decorate([n.property({type:["show","hide"]})],t.prototype,"listMode",void 0),r.__decorate([n.property({readOnly:!0,value:"base-tile"})],t.prototype,"type",void 0),r.__decorate([n.property()],t.prototype,"fullExtent",void 0),r.__decorate([n.property()],t.prototype,"spatialReference",void 0),r.__decorate([n.subclass("esri.layers.BaseTileLayer")],t)}(d.ScaleRangeLayer(u.RefreshableLayer(p)))}).apply(null,o),void 0===a||(e.exports=a)},V7mb:function(e,t,r){var o,a;o=[r.dj.c(e.i),t,r("zOht"),r("zp6E"),r("ma1f"),r("ImIS"),r("LxLY"),r("EUqE"),r("qMld"),r("Vx27"),r("Z4y+"),r("8rsy"),r("FEX1"),r("pMLx")],void 0===(a=(function(e,t,r,o,a,n,i,l,s,p,u,d,y,c){var g=new n.default({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});return function(e){function t(t){var r=e.call(this,t)||this;return r.type="bing-maps",r.tileInfo=new c({size:[256,256],dpi:96,origin:{x:-20037508.342787,y:20037508.342787,spatialReference:u.WebMercator},spatialReference:u.WebMercator,lods:[{level:1,resolution:78271.5169639999,scale:295828763.795777},{level:2,resolution:39135.7584820001,scale:147914381.897889},{level:3,resolution:19567.8792409999,scale:73957190.948944},{level:4,resolution:9783.93962049996,scale:36978595.474472},{level:5,resolution:4891.96981024998,scale:18489297.737236},{level:6,resolution:2445.98490512499,scale:9244648.868618},{level:7,resolution:1222.99245256249,scale:4622324.434309},{level:8,resolution:611.49622628138,scale:2311162.217155},{level:9,resolution:305.748113140558,scale:1155581.108577},{level:10,resolution:152.874056570411,scale:577790.554289},{level:11,resolution:76.4370282850732,scale:288895.277144},{level:12,resolution:38.2185141425366,scale:144447.638572},{level:13,resolution:19.1092570712683,scale:72223.819286},{level:14,resolution:9.55462853563415,scale:36111.909643},{level:15,resolution:4.77731426794937,scale:18055.954822},{level:16,resolution:2.38865713397468,scale:9027.977411},{level:17,resolution:1.19432856685505,scale:4513.988705},{level:18,resolution:.597164283559817,scale:2256.994353},{level:19,resolution:.298582141647617,scale:1128.497176},{level:20,resolution:.1492910708238085,scale:564.248588}]}),r.key=null,r.style="road",r.culture="en-US",r.region=null,r.portalUrl=null,r.hasAttributionData=!0,r}return r.__extends(t,e),Object.defineProperty(t.prototype,"bingMetadata",{get:function(){return this._get("bingMetadata")},set:function(e){this._set("bingMetadata",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"copyright",{get:function(){return i.isSome(this.bingMetadata)?this.bingMetadata.copyright:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bingLogo",{get:function(){return i.isSome(this.bingMetadata)?this.bingMetadata.brandLogoUri:null},enumerable:!0,configurable:!0}),t.prototype.load=function(e){var t=this;return this.addResolvingPromise(this.key?this._getMetadata():this.portalUrl?this._getPortalBingKey().then((function(){return t._getMetadata()})):s.reject(new a("bingmapslayer:load","Bing layer must have bing key."))),s.resolve(this)},t.prototype.getTileUrl=function(e,t,r){if(!this.loaded||i.isNone(this.bingMetadata))return null;var o=this.bingMetadata.resourceSets[0].resources[0],a=o.imageUrlSubdomains[t%o.imageUrlSubdomains.length],n=this._getQuadKey(e,t,r);return o.imageUrl.replace("{subdomain}",a).replace("{quadkey}",n)},t.prototype.fetchAttributionData=function(){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(t){return[2,this.load().then((function(){return i.isNone(e.bingMetadata)?null:{contributors:e.bingMetadata.resourceSets[0].resources[0].imageryProviders.map((function(e){return{attribution:e.attribution,coverageAreas:e.coverageAreas.map((function(e){return{zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]}}))}}))}}))]}))}))},t.prototype._getMetadata=function(){var e=this;return o("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+{road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style],{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then((function(t){var r=t.data;if(200!==r.statusCode)throw new a("bingmapslayer:getmetadata",r.statusDescription);if(e.bingMetadata=r,0===e.bingMetadata.resourceSets.length)throw new a("bingmapslayer:getmetadata","no bing resourcesets");if(0===e.bingMetadata.resourceSets[0].resources.length)throw new a("bingmapslayer:getmetadata","no bing resources")})).catch((function(e){throw new a("bingmapslayer:getmetadata",e.message)}))},t.prototype._getPortalBingKey=function(){var e=this;return o(this.portalUrl,{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then((function(t){if(!t.data.bingKey)throw new a("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");e.key=t.data.bingKey})).catch((function(e){throw new a("bingmapslayer:getportalbingkey",e.message)}))},t.prototype._getQuadKey=function(e,t,r){for(var o="",a=e;a>0;a--){var n=0,i=1<<a-1;0!=(r&i)&&(n+=1),0!=(t&i)&&(n+=2),o+=n.toString()}return o},r.__decorate([p.property({json:{read:!1,write:!1},value:null})],t.prototype,"bingMetadata",null),r.__decorate([p.property({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],t.prototype,"type",void 0),r.__decorate([p.property({type:c})],t.prototype,"tileInfo",void 0),r.__decorate([p.property({type:String,readOnly:!0,dependsOn:["bingMetadata"],json:{read:!1,write:!1}})],t.prototype,"copyright",null),r.__decorate([p.property({type:String,json:{write:!1,read:!1}})],t.prototype,"key",void 0),r.__decorate([p.property({type:String,json:{write:{target:"layerType",writer:g.write},read:{source:"layerType",reader:g.read}}})],t.prototype,"style",void 0),r.__decorate([p.property({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"],readOnly:!0,json:{read:{source:"layerType"}}})],t.prototype,"operationalLayerType",void 0),r.__decorate([p.property({type:String,json:{write:!1,read:!1}})],t.prototype,"culture",void 0),r.__decorate([p.property({type:String,json:{write:!1,read:!1}})],t.prototype,"region",void 0),r.__decorate([p.property({type:String,json:{write:!0,read:!0}})],t.prototype,"portalUrl",void 0),r.__decorate([p.property({type:Boolean,json:{write:!1,read:!1}})],t.prototype,"hasAttributionData",void 0),r.__decorate([p.property({type:String,readOnly:!0,dependsOn:["bingMetadata"]})],t.prototype,"bingLogo",null),r.__decorate([p.subclass("esri.layers.BingMapsLayer")],t)}(y.OperationalLayer(l.MultiOriginJSONMixin(d)))}).apply(null,o))||(e.exports=a)}}]);