????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/98.6ae334e2576e067d0210.js |
(function(){var e={"esri/layers/support/WMSSublayer":"Gny7","esri/layers/WMSLayer":"dWJG"},r=this||window,t=r.webpackJsonp=r.webpackJsonp||[];t.registerAbsMids?t.registerAbsMids(e):(t.absMidsWaiting=t.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{Gny7:function(e,r,t){var n,o;n=[t.dj.c(e.i),r,t("zOht"),t("y4WC"),t("eIBl"),t("EUqE"),t("Vx27"),t("1dvD"),t("N7S/")],void 0===(o=(function(e,r,t,n,o,a,i,s,l){var p=0;return function(e){function r(r){var t=e.call(this,r)||this;return t._sublayersHandles=new o,t.fullExtents=null,t.featureInfoFormat=null,t.featureInfoUrl=null,t.legendUrl=null,t.legendEnabled=!0,t.maxScale=0,t.minScale=0,t.popupEnabled=!1,t.queryable=!1,t.spatialReferences=null,t}var a;return t.__extends(r,e),a=r,Object.defineProperty(r.prototype,"description",{get:function(){return this._get("description")},set:function(e){this._set("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fullExtent",{get:function(){return this._get("fullExtent")},set:function(e){this._set("fullExtent",e)},enumerable:!0,configurable:!0}),r.prototype.readExtent=function(e,r){return(e=r.extent)?l.fromJSON(e):null},Object.defineProperty(r.prototype,"id",{get:function(){var e=this._get("id");return null==e?p++:e},set:function(e){this._set("id",e)},enumerable:!0,configurable:!0}),r.prototype.readLegendUrl=function(e,r){return r?r.legendUrl||r.legendURL:null},Object.defineProperty(r.prototype,"layer",{set:function(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((function(r){return r.layer=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._get("name")},set:function(e){this._set("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sublayers",{set:function(e){var r=this,t=this._get("sublayers");t&&(t.forEach((function(e){e.layer=null})),this._sublayersHandles.removeAll(),this._sublayersHandles=null),e&&(e.forEach((function(e){e.parent=r,e.layer=r.layer})),this._sublayersHandles.add([e.on("after-add",(function(e){var t=e.item;t.parent=r,t.layer=r.layer})),e.on("after-remove",(function(e){var r=e.item;r.parent=null,r.layer=null}))])),this._set("sublayers",e)},enumerable:!0,configurable:!0}),r.prototype.castSublayers=function(e){return s.default(n.ofType(a),e)},Object.defineProperty(r.prototype,"title",{get:function(){return this._get("title")},set:function(e){this._set("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visible",{get:function(){return this._get("visible")},set:function(e){this._setAndNotifyLayer("visible",e)},enumerable:!0,configurable:!0}),r.prototype.clone=function(){var e=new a;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents.map((function(e){return e.clone()}))),this.hasOwnProperty("featureInfoFormat")&&(e.featureInfoFormat=this.featureInfoFormat),this.hasOwnProperty("featureInfoUrl")&&(e.featureInfoUrl=this.featureInfoUrl),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((function(e){return e.clone()}))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences.map((function(e){return e}))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e},r.prototype._setAndNotifyLayer=function(e,r){var t=this.layer;this._get(e)!==r&&(this._set(e,r),t&&t.emit("wms-sublayer-update",{propertyName:e,id:this.id}))},t.__decorate([i.property()],r.prototype,"description",null),t.__decorate([i.property({value:null})],r.prototype,"fullExtent",null),t.__decorate([i.reader("fullExtent",["extent"])],r.prototype,"readExtent",null),t.__decorate([i.property()],r.prototype,"fullExtents",void 0),t.__decorate([i.property()],r.prototype,"featureInfoFormat",void 0),t.__decorate([i.property()],r.prototype,"featureInfoUrl",void 0),t.__decorate([i.property({type:Number,json:{write:{enabled:!1,overridePolicy:function(){return{ignoreOrigin:!0,enabled:!0}}}}})],r.prototype,"id",null),t.__decorate([i.property({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],r.prototype,"legendUrl",void 0),t.__decorate([i.reader(["web-document"],"legendUrl")],r.prototype,"readLegendUrl",null),t.__decorate([i.property({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],r.prototype,"legendEnabled",void 0),t.__decorate([i.property({value:null})],r.prototype,"layer",null),t.__decorate([i.property()],r.prototype,"maxScale",void 0),t.__decorate([i.property()],r.prototype,"minScale",void 0),t.__decorate([i.property({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],r.prototype,"name",null),t.__decorate([i.property()],r.prototype,"parent",void 0),t.__decorate([i.property({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],r.prototype,"popupEnabled",void 0),t.__decorate([i.property({type:Boolean,json:{write:{ignoreOrigin:!0}}})],r.prototype,"queryable",void 0),t.__decorate([i.property()],r.prototype,"sublayers",null),t.__decorate([i.cast("sublayers")],r.prototype,"castSublayers",null),t.__decorate([i.property({type:[Number],json:{read:{source:"spatialReferences"}}})],r.prototype,"spatialReferences",void 0),t.__decorate([i.property({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],r.prototype,"title",null),t.__decorate([i.property({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],r.prototype,"visible",null),a=t.__decorate([i.subclass("esri.layers.support.WMSSublayer")],r)}(a.MultiOriginJSONSupport)}).apply(null,n))||(e.exports=o)},dWJG:function(e,r,t){var n,o;n=[t.dj.c(e.i),r,t("zOht"),t("0J3i"),t("jZlN"),t("ifLZ"),t("zp6E"),t("y4WC"),t("6Ej+"),t("eIBl"),t("ImIS"),t("rg9i"),t("LxLY"),t("EUqE"),t("qMld"),t("jfWY"),t("Vx27"),t("Kg8D"),t("N7S/"),t("Z4y+"),t("qDpW"),t("nrlZ"),t("0RER"),t("FEX1"),t("QJ8R"),t("WaJo"),t("OXmT"),t("8CIp"),t("EtsK"),t("UDyV"),t("Gny7"),t("xii5")],o=(function(e,r,t,n,o,a,i,s,l,p,u,y,d,c,f,h,m,g,_,b,v,w,x,S,E,O,I,P,U,j,R,L){var q=new u.JSONMap({svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",gif:"image/gif",bmp:"image/bmp"},{ignoreUnknown:!1});function M(e,r,t){var n=new Map;e.every((function(e){return null==e.id}))&&(e=y.clone(e)).forEach((function(e,r){return e.id=r}));for(var o=0,a=e;o<a.length;o++){var i=a[o];(d=new R).read(i,r),-1===(null==t?void 0:t.indexOf(d.name))&&(d.visible=!1),n.set(d.id,d)}for(var l=[],p=0,u=e;p<u.length;p++){var d=n.get((i=u[p]).id);if(i.parentLayerId>=0){var c=n.get(i.parentLayerId);c.sublayers||(c.sublayers=new s),c.sublayers.unshift(d)}else l.unshift(d)}return l}return function(e){function r(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var n=e.apply(this,r)||this;return n._sublayersHandles=new p,n.allSublayers=new l({root:n,rootCollectionNames:["sublayers"],getChildrenFunction:function(e){return e.sublayers}}),n.customParameters=null,n.customLayerParameters=null,n.copyright=null,n.description=null,n.fullExtent=null,n.fullExtents=null,n.featureInfoFormat=null,n.featureInfoUrl=null,n.imageFormat=null,n.imageMaxHeight=2048,n.imageMaxWidth=2048,n.imageTransparency=!0,n.legendEnabled=!0,n.mapUrl=null,n.isReference=null,n.operationalLayerType="WMS",n.spatialReference=null,n.spatialReferences=null,n.sublayers=null,n.type="wms",n.url=null,n.version=null,n.watch("sublayers",(function(e,r){r&&(r.forEach((function(e){e.layer=null})),n._sublayersHandles.removeAll(),n._sublayersHandles=null),e&&(e.forEach((function(e){e.parent=n,e.layer=n})),n._sublayersHandles||(n._sublayersHandles=new p),n._sublayersHandles.add([e.on("after-add",(function(e){var r=e.item;r.parent=n,r.layer=n})),e.on("after-remove",(function(e){var r=e.item;r.parent=null,r.layer=null}))]))}),!0),n}return t.__extends(r,e),r.prototype.normalizeCtorArgs=function(e,r){return"string"==typeof e?t.__assign({url:e},r):e},r.prototype.load=function(e){var r=this,t=d.isSome(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).then((function(){return r._fetchService(t)}),(function(){return r._fetchService(t)}))),f.resolve(this)},r.prototype.readFullExtentFromItemOrMap=function(e,r){var t=r.extent;return new _({xmin:t[0][0],ymin:t[0][1],xmax:t[1][0],ymax:t[1][1]})},r.prototype.writeFullExtent=function(e,r){r.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]},r.prototype.readImageFormat=function(e,r){var t=r.supportedImageFormatTypes;return t&&t.indexOf("image/png")>-1?"image/png":t&&t[0]},r.prototype.readSpatialReferenceFromItemOrDocument=function(e,r){return new b(r.spatialReferences[0])},r.prototype.writeSpatialReferences=function(e,r){var t=this.spatialReference&&this.spatialReference.wkid;e&&t?(r.spatialReferences=e.filter((function(e){return e!==t})),r.spatialReferences.unshift(t)):r.spatialReferences=e},r.prototype.readSublayersFromItemOrMap=function(e,r,t){return M(r.layers,t,r.visibleLayers)},r.prototype.readSublayers=function(e,r,t){return M(r.layers,t)},r.prototype.writeSublayers=function(e,r,n,o){r.layers=[];var a=new Map,i=e.flatten((function(e){var r=e.sublayers;return r&&r.toArray()})).toArray();i.forEach((function(e){"number"==typeof e.parent.id&&(a.has(e.parent.id)?a.get(e.parent.id).push(e.id):a.set(e.parent.id,[e.id]))})),i.forEach((function(e){var n=t.__assign({sublayer:e},o),i=e.write({parentLayerId:"number"==typeof e.parent.id?e.parent.id:-1},n);if(a.has(e.id)&&(i.sublayerIds=a.get(e.id)),!e.sublayers&&e.name){var s=e.write({},n);delete s.id,r.layers.push(s)}})),r.visibleLayers=i.filter((function(e){return e.visible&&!e.sublayers})).map((function(e){return e.name}))},r.prototype.createExportImageParameters=function(e,r,t,n){var o=n&&n.pixelRatio||1,a=v.getScale({extent:e,width:r})*o;return this._exportWMSImageParameters=new j({layer:this,extent:e,scale:a}),this._exportWMSImageParameters.toJSON()},r.prototype.fetchImage=function(e,r,n,o){return t.__awaiter(this,void 0,void 0,(function(){var a,s,l,p;return t.__generator(this,(function(u){return a=this.mapUrl,(s=this.createExportImageParameters(e,r,n,o)).layers?(p={responseType:"image",query:this._mixCustomParameters(t.__assign({width:r,height:n},s)),signal:o&&o.signal},o&&o.timestamp&&(p.query=t.__assign({_ts:o.timestamp},p.query)),[2,i(a,p).then((function(e){return e.data}))]):((l=document.createElement("canvas")).width=r,l.height=n,[2,l])}))}))},r.prototype.fetchFeatureInfo=function(e,r,n,s,l){var p=this,u=L.getPopupLayers(this._exportWMSImageParameters.visibleSublayers);if(!this.featureInfoUrl||!u)return null;var y=t.__assign({query_layers:u,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:r,height:n},"1.3.0"===this.version?{I:s,J:l}:{x:s,y:l}),d=t.__assign(t.__assign({},this.createExportImageParameters(e,r,n)),y);return d=this._mixCustomParameters(d),i(this.featureInfoUrl,{query:d,responseType:"text"}).then((function(e){var r=p.featureInfoUrl;for(var t in r+=-1===r.indexOf("?")?"?":"",d)r+="?"===r.substring(r.length-1,r.length)?"":"&",r+=t+"="+d[t];var n=document.createElement("iframe");return n.src=r,n.frameBorder="0",n.marginHeight="0",n.marginWidth="0",n.innerHTML=e.data,n.style.width="100%",new o({sourceLayer:p,popupTemplate:new a({title:p.title,content:n})})}))},r.prototype.findSublayerById=function(e){return this.allSublayers.find((function(r){return r.id===e}))},r.prototype.supportsSpatialReference=function(e){return P.isWmsServer(this.url)||this.spatialReferences.some((function(r){var t=900913===r?b.WebMercator:new b({wkid:r});return w.equals(t,e)}))},r.prototype._fetchService=function(e){return t.__awaiter(this,void 0,void 0,(function(){var r,o;return t.__generator(this,(function(a){switch(a.label){case 0:return this.resourceInfo?[3,2]:(this.parsedUrl.query&&this.parsedUrl.query.service&&(this.parsedUrl.query.SERVICE=this.parsedUrl.query.service,delete this.parsedUrl.query.service),this.parsedUrl.query&&this.parsedUrl.query.request&&(this.parsedUrl.query.REQUEST=this.parsedUrl.query.request,delete this.parsedUrl.query.request),[4,i(this.parsedUrl.path,{query:t.__assign(t.__assign({SERVICE:"WMS",REQUEST:"GetCapabilities"},this.parsedUrl.query),this.customParameters),responseType:"xml",signal:e})]);case 1:r=a.sent(),this.resourceInfo=L.parseCapabilities(r.data),a.label=2;case 2:return this.parsedUrl&&("https"!==(o=new h.Url(this.parsedUrl.path)).scheme||o.port&&"443"!==o.port||-1!==n.request.httpsDomains.indexOf(o.host)||n.request.httpsDomains.push(o.host)),this.read(this.resourceInfo,{origin:"service"}),[2]}}))}))},r.prototype._mixCustomParameters=function(e){if(!this.customLayerParameters&&!this.customParameters)return e;var r=t.__assign(t.__assign({},this.customParameters),this.customLayerParameters);for(var n in r)e[n.toLowerCase()]=r[n];return e},t.__decorate([m.property({readOnly:!0})],r.prototype,"allSublayers",void 0),t.__decorate([m.property({json:{type:Object,write:!0}})],r.prototype,"customParameters",void 0),t.__decorate([m.property({type:["show","hide","hide-children"]})],r.prototype,"listMode",void 0),t.__decorate([m.property({json:{type:Object,write:!0}})],r.prototype,"customLayerParameters",void 0),t.__decorate([m.property({type:String,json:{write:!0}})],r.prototype,"copyright",void 0),t.__decorate([m.property()],r.prototype,"description",void 0),t.__decorate([m.property({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{service:{read:{source:"extent"}}}}})],r.prototype,"fullExtent",void 0),t.__decorate([m.reader(["web-document","portal-item"],"fullExtent",["extent"])],r.prototype,"readFullExtentFromItemOrMap",null),t.__decorate([m.writer(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],r.prototype,"writeFullExtent",null),t.__decorate([m.property()],r.prototype,"fullExtents",void 0),t.__decorate([m.property({type:String,json:{write:{ignoreOrigin:!0}}})],r.prototype,"featureInfoFormat",void 0),t.__decorate([m.property({type:String,json:{write:{ignoreOrigin:!0}}})],r.prototype,"featureInfoUrl",void 0),t.__decorate([m.property({type:String,json:{origins:{"web-document":{default:"image/png",type:q.jsonValues,read:{reader:q.read,source:"format"},write:{writer:q.write,target:"format"}}}}})],r.prototype,"imageFormat",void 0),t.__decorate([m.reader("imageFormat",["supportedImageFormatTypes"])],r.prototype,"readImageFormat",null),t.__decorate([m.property({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],r.prototype,"imageMaxHeight",void 0),t.__decorate([m.property({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],r.prototype,"imageMaxWidth",void 0),t.__decorate([m.property()],r.prototype,"imageTransparency",void 0),t.__decorate([m.property(U.legendEnabled)],r.prototype,"legendEnabled",void 0),t.__decorate([m.property({type:String,json:{write:{ignoreOrigin:!0}}})],r.prototype,"mapUrl",void 0),t.__decorate([m.property({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:function(){return{enabled:!1}}}}})],r.prototype,"isReference",void 0),t.__decorate([m.property({type:["WMS"]})],r.prototype,"operationalLayerType",void 0),t.__decorate([m.property({type:b,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],r.prototype,"spatialReference",void 0),t.__decorate([m.reader(["web-document","portal-item"],"spatialReference",["spatialReferences"])],r.prototype,"readSpatialReferenceFromItemOrDocument",null),t.__decorate([m.property({type:[Number],json:{read:{source:"spatialReferences"},write:{ignoreOrigin:!0}}})],r.prototype,"spatialReferences",void 0),t.__decorate([m.writer(["web-document","portal-item"],"spatialReferences")],r.prototype,"writeSpatialReferences",null),t.__decorate([m.property({type:s.ofType(R),json:{write:{target:"layers",overridePolicy:function(e,r,t){if(function(e,r){return e.some((function(e){for(var t in e)if(g.willPropertyWrite(e,t,null,r))return!0;return!1}))}(this.allSublayers,t))return{ignoreOrigin:!0}}}}})],r.prototype,"sublayers",void 0),t.__decorate([m.reader(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],r.prototype,"readSublayersFromItemOrMap",null),t.__decorate([m.reader("service","sublayers",["layers"])],r.prototype,"readSublayers",null),t.__decorate([m.writer("sublayers",{layers:{type:[R]},visibleLayers:{type:[String]}})],r.prototype,"writeSublayers",null),t.__decorate([m.property({json:{read:!1},readOnly:!0,value:"wms"})],r.prototype,"type",void 0),t.__decorate([m.property(U.url)],r.prototype,"url",void 0),t.__decorate([m.property({type:String,json:{write:{ignoreOrigin:!0}}})],r.prototype,"version",void 0),t.__decorate([m.subclass("esri.layers.WMSLayer")],r)}(O.RefreshableLayer(I.ScaleRangeLayer(S.OperationalLayer(E.PortalLayer(c.MultiOriginJSONMixin(x))))))}).apply(null,n),void 0===o||(e.exports=o)}}]);