????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/71.2fd0a09f78d45ec8f28c.js |
(function(){var e={"esri/views/2d/layers/KMLLayerView2D":"1Afs","esri/views/layers/support/Path":"20TT","esri/views/2d/layers/LayerView2D":"6i4F","esri/views/layers/support/ClipRect":"7MXx","esri/views/layers/LayerView":"WsO6","esri/views/layers/support/ClipArea":"ZMIQ","esri/views/layers/support/Geometry":"ts8o"},t=this||window,i=t.webpackJsonp=t.webpackJsonp||[];i.registerAbsMids?i.registerAbsMids(e):(i.absMidsWaiting=i.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{"1Afs":function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("zp6E"),i("y4WC"),i("eIBl"),i("qMld"),i("afW+"),i("8MXS"),i("Vx27"),i("N7S/"),i("vtMp"),i("N3Jt"),i("ssiz"),i("YaB4"),i("6i4F"),i("apjU"),i("WsO6")],r=(function(e,t,i,n,r,o,s,a,p,l,u,d,c,y,h,f,v,_){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handles=new o,t._bitmapIndex=new Map,t._mapImageContainer=new h.BitmapContainer,t._featuresMap=new Map,t.allVisiblePoints=new y.GraphicsCollection,t.allVisiblePolylines=new y.GraphicsCollection,t.allVisiblePolygons=new y.GraphicsCollection,t.allVisibleMapImages=new r,t}return i.__extends(t,e),t.prototype.hitTest=function(e,t){var i=this;if(this.suspended||!this._pointsView&&!this._polylinesView&&!this._polygonsView)return s.resolve(null);var n=[this._pointsView.hitTest(e,t),this._polylinesView.hitTest(e,t),this._polygonsView.hitTest(e,t)];return s.all(n).then((function(e){return e.filter((function(e){return e&&(e.layer=i.layer,e.sourceLayer=i.layer),!!e}))[0]||null}))},t.prototype.update=function(e){this._polygonsView&&this._polygonsView.processUpdate(e),this._polylinesView&&this._polylinesView.processUpdate(e),this._pointsView&&this._pointsView.processUpdate(e)},t.prototype.attach=function(){var e=this;this._handles.add([this.allVisibleMapImages.on("change",(function(t){t.added.forEach((function(t){return e._addMapImage(t)})),t.removed.forEach((function(t){return e._removeMapImage(t)}))}))]),this.container.addChild(this._mapImageContainer),this._polygonsView=new v.default({view:this.view,graphics:this.allVisiblePolygons,requestUpdateCallback:function(){return e.requestUpdate()}}),this.container.addChild(this._polygonsView.container),this._polylinesView=new v.default({view:this.view,graphics:this.allVisiblePolylines,requestUpdateCallback:function(){return e.requestUpdate()}}),this.container.addChild(this._polylinesView.container),this._pointsView=new v.default({view:this.view,graphics:this.allVisiblePoints,requestUpdateCallback:function(){return e.requestUpdate()}}),this.container.addChild(this._pointsView.container),this.watch("layer.visibleSublayers",(function(){return e._refreshCollections()})),this._fetchingPromise=this._fetchService().then((function(){e._fetchingPromise=null,e.notifyChange("updating")}))},t.prototype.detach=function(){this._handles.removeAll(),this._mapImageContainer.removeAllChildren(),this.container.removeAllChildren(),this._bitmapIndex.clear(),this._polygonsView&&(this._polygonsView.destroy(),this._polygonsView=null),this._polylinesView&&(this._polylinesView.destroy(),this._polylinesView=null),this._pointsView&&(this._pointsView.destroy(),this._pointsView=null)},t.prototype.moveStart=function(){},t.prototype.viewChange=function(){this._polygonsView.viewChange(),this._polylinesView.viewChange(),this._pointsView.viewChange()},t.prototype.moveEnd=function(){},t.prototype.isUpdating=function(){return null!=this._fetchingPromise||this._pointsView.updating||this._polygonsView.updating||this._polylinesView.updating},t.prototype._addMapImage=function(e){var t=this;this.view.spatialReference.isWGS84&&n(e.href,{responseType:"image"}).then((function(i){var n=i.data,r=u.fromJSON(e.extent);d.canProject(r,t.view.spatialReference)&&(r=d.project(r,t.view.spatialReference));var o=new h.Bitmap(n);o.x=r.xmin,o.y=r.ymax,o.resolution=r.width/n.naturalWidth,o.rotation=e.rotation,t._mapImageContainer.addChild(o),t._bitmapIndex.set(e,o)}))},t.prototype._fetchService=function(){var e=this;return this._handles.remove("refresh-collections"),this._getParsedKML().then((function(t){return e._fetchSublayerService(e.layer,t)}))},t.prototype._fetchSublayerService=function(e,t){var i=this,n=e.sublayers;if(!n||0===n.length)return s.resolve();var r=[];return n.forEach((function(e){var n=p.whenTrueOnce(e,"visible").then((function(){return e.load()})).then((function(){return i._getGraphicsForSublayer(e,t)})).then((function(t){return s.create((function(n){e.networkLink?n():(i._featuresMap.set(e,t),i._handles.add(a.schedule((function(){i._refreshCollections(),n()})),"refresh-collections"))}))})).then((function(){return i._fetchSublayerService(e,e.sourceJSON||t)}));e.visible&&r.push(n)})),s.all(r).then((function(){}))},t.prototype._getParsedKML=function(){return c.fetchService(this.layer.url,this.view.spatialReference,this.layer.refreshInterval).then((function(e){return c.parseKML(e.data)}))},t.prototype._getGraphicsForSublayer=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a;return i.__generator(this,(function(i){switch(i.label){case 0:return n=null,t.sublayers.some((function(t){return n=t,t.id===e.id}))?(r={},(o=n.points)?[4,c.getGraphics(n.points)]:[3,2]):[2,null];case 1:o=i.sent(),i.label=2;case 2:return r.points=o,(s=n.polylines)?[4,c.getGraphics(n.polylines)]:[3,4];case 3:s=i.sent(),i.label=4;case 4:return r.polylines=s,(a=n.polygons)?[4,c.getGraphics(n.polygons)]:[3,6];case 5:a=i.sent(),i.label=6;case 6:return[2,(r.polygons=a,r.mapImages=n.mapImages,r)]}}))}))},t.prototype._refreshCollections=function(){var e=this,t=this.get("layer.visibleSublayers");this.allVisiblePoints.removeAll(),this.allVisiblePolylines.removeAll(),this.allVisiblePolygons.removeAll(),this.allVisibleMapImages.removeAll(),t&&t.length&&t.forEach((function(t){var i=e._featuresMap.get(t);i&&(e.allVisiblePoints.addMany(i.points),e.allVisiblePolylines.addMany(i.polylines),e.allVisiblePolygons.addMany(i.polygons),e.allVisibleMapImages.addMany(i.mapImages))}))},t.prototype._removeMapImage=function(e){var t=this._bitmapIndex.get(e);t&&(this._mapImageContainer.removeChild(t),this._bitmapIndex.delete(e))},i.__decorate([l.property()],t.prototype,"_pointsView",void 0),i.__decorate([l.property()],t.prototype,"_polylinesView",void 0),i.__decorate([l.property()],t.prototype,"_polygonsView",void 0),i.__decorate([l.property()],t.prototype,"_fetchingPromise",void 0),i.__decorate([l.property({dependsOn:["_fetchingPromise","_pointsView.updating","_polygonsView.updating","_polylinesView.updating"]})],t.prototype,"updating",void 0),i.__decorate([l.subclass("esri.views.2d.layers.KMLLayerView2D")],t)}(f.LayerView2DMixin(_))}).apply(null,n),void 0===r||(e.exports=r)},"20TT":function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("Vx27"),i("ZMIQ")],r=(function(e,t,i,n,r){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="path",t.path=[],t}return i.__extends(t,e),Object.defineProperty(t.prototype,"version",{get:function(){return(this._get("version")||0)+1},enumerable:!0,configurable:!0}),i.__decorate([n.property({type:[[[Number]]],json:{write:!0}})],t.prototype,"path",void 0),i.__decorate([n.property({readOnly:!0,dependsOn:["path"]})],t.prototype,"version",null),i.__decorate([n.subclass("esri.views.layers.support.Path")],t)}(r)}).apply(null,n),void 0===r||(e.exports=r)},"6i4F":function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("y4WC"),i("K2Kz"),i("8MXS"),i("Vx27"),i("YaB4"),i("ZMIQ"),i("7MXx"),i("ts8o"),i("20TT")],r=(function(e,t,i,n,r,o,s,a,p,l,u,d){Object.defineProperty(t,"__esModule",{value:!0});var c=n.ofType({key:"type",base:p,typeMap:{rect:l,path:d,geometry:u}});t.LayerView2DMixin=function(e){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clips=new c,t.moving=!1,t.attached=!1,t.lastUpdateId=-1,t.updateRequested=!1,t}return i.__extends(t,e),t.prototype.initialize=function(){var e,t=this;this.container||(this.container=new a.Container),this.handles.add([o.init(this,"suspended",(function(e){t.container&&(t.container.visible=!e),t.view&&!e&&t.updateRequested&&t.view.requestUpdate()}),!0),o.init(this,["layer.opacity","container"],(function(){var e,i;t.container&&(t.container.opacity=null!==(i=null===(e=t.layer)||void 0===e?void 0:e.opacity)&&void 0!==i?i:1)}),!0),o.init(this,["layer.blendMode"],(function(e){t.container&&(t.container.blendMode=e)}),!0),this.clips.on("change",(function(){t.container.clips=t.clips,t.notifyChange("clips")}))]),this.container.clips=this.clips,(null===(e=this.view)||void 0===e?void 0:e.whenLayerView)?this.view.whenLayerView(this.layer).then((function(e){e!==t||t.attached||t.destroyed||(t.attach(),t.requestUpdate(),t.attached=!0)}),(function(){})):this.when().then((function(){t.attached||t.destroyed||(t.attach(),t.requestUpdate(),t.attached=!0)}),(function(){}))},t.prototype.destroy=function(){this.attached&&(this.detach(),this.attached=!1),this.handles.remove("initialize"),this.updateRequested=!1,this.layer=null,this.view=null},Object.defineProperty(t.prototype,"updating",{get:function(){return!this.attached||!this.suspended&&(this.updateRequested||this.isUpdating())},enumerable:!0,configurable:!0}),t.prototype.isVisibleAtScale=function(e){var t=!0,i=this.layer,n=i.minScale,r=i.maxScale;if(null!=n&&null!=r){var o=!n,s=!r;!o&&e<=n&&(o=!0),!s&&e>=r&&(s=!0),t=o&&s}return t},t.prototype.requestUpdate=function(){this.updateRequested||(this.updateRequested=!0,this.suspended||this.view.requestUpdate())},t.prototype.processUpdate=function(e){!this.isFulfilled()||this.isResolved()?(this._set("updateParameters",e),this.updateRequested&&!this.suspended&&(this.updateRequested=!1,this.update(e))):this.updateRequested=!1},t.prototype.isUpdating=function(){return!1},t.prototype.isRendering=function(){return!1},t.prototype.canResume=function(){return!!e.prototype.canResume.call(this)&&this.isVisibleAtScale(this.view.scale)},i.__decorate([s.property({type:c,set:function(e){var t=r.referenceSetter(e,this._get("clips"),c);this._set("clips",t)}})],t.prototype,"clips",void 0),i.__decorate([s.property()],t.prototype,"moving",void 0),i.__decorate([s.property()],t.prototype,"attached",void 0),i.__decorate([s.property()],t.prototype,"container",void 0),i.__decorate([s.property({dependsOn:["view.scale","layer.minScale","layer.maxScale"]})],t.prototype,"suspended",void 0),i.__decorate([s.property({readOnly:!0})],t.prototype,"updateParameters",void 0),i.__decorate([s.property()],t.prototype,"updateRequested",void 0),i.__decorate([s.property({dependsOn:["attached","updateRequested","suspended"]})],t.prototype,"updating",null),i.__decorate([s.property()],t.prototype,"view",void 0),i.__decorate([s.subclass("esri.views.2d.layers.LayerView2D")],t)}(e)}}).apply(null,n),void 0===r||(e.exports=r)},"7MXx":function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("Vx27"),i("ZMIQ")],r=(function(e,t,i,n,r){return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="rect",t.left=null,t.right=null,t.top=null,t.bottom=null,t}var r;return i.__extends(t,e),r=t,t.prototype.clone=function(){return new r({left:this.left,right:this.right,top:this.top,bottom:this.bottom})},Object.defineProperty(t.prototype,"version",{get:function(){return(this._get("version")||0)+1},enumerable:!0,configurable:!0}),i.__decorate([n.property({type:[Number,String],json:{write:!0}})],t.prototype,"left",void 0),i.__decorate([n.property({type:[Number,String],json:{write:!0}})],t.prototype,"right",void 0),i.__decorate([n.property({type:[Number,String],json:{write:!0}})],t.prototype,"top",void 0),i.__decorate([n.property({type:[Number,String],json:{write:!0}})],t.prototype,"bottom",void 0),i.__decorate([n.property({readOnly:!0,dependsOn:["left","right","top","bottom"]})],t.prototype,"version",null),r=i.__decorate([n.subclass("esri.views.layers.support.ClipRect")],t)}(r)}).apply(null,n),void 0===r||(e.exports=r)},WsO6:function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("Gtr7"),i("BcWh"),i("7MDj"),i("NfRO"),i("qsST"),i("SZNs"),i("Vx27")],void 0===(r=(function(e,t,i,n,r,o,s,a,p,l){return function(e){function t(t){var i=e.call(this,t)||this;return i.layer=null,i.parent=null,i}return i.__extends(t,e),t.prototype.initialize=function(){var e=this;this.when().catch((function(t){if("layerview:create-error"!==t.name){var i=e.layer&&e.layer.id||"no id",n=e.layer&&e.layer.title||"no title";throw a.getLogger(e.declaredClass).error("#resolve()","Failed to resolve layer view (layer title: '"+n+"', id: '"+i+"')",t),t}}))},t.prototype.destroy=function(){this.layer=this.parent=null},Object.defineProperty(t.prototype,"fullOpacity",{get:function(){var e=function(e){return null==e?1:e};return e(this.get("layer.opacity"))*e(this.get("parent.fullOpacity"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suspended",{get:function(){return!this.canResume()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suspendInfo",{get:function(){return this.getSuspendInfo()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updating",{get:function(){return!!(this.updatingHandles&&this.updatingHandles.updating||this.isUpdating())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return!0===this.get("layer.visible")},set:function(e){void 0!==e?this._override("visible",e):this._clearOverride("visible")},enumerable:!0,configurable:!0}),t.prototype.canResume=function(){return!this.get("parent.suspended")&&this.get("view.ready")&&this.get("layer.loaded")&&this.visible||!1},t.prototype.getSuspendInfo=function(){var e=this.parent&&this.parent.suspended?this.parent.suspendInfo:{};return this.view&&this.view.ready||(e.viewNotReady=!0),this.layer&&this.layer.loaded||(e.layerNotLoaded=!0),this.visible||(e.layerInvisible=!0),e},t.prototype.isUpdating=function(){return!1},i.__decorate([l.property({dependsOn:["layer.opacity","parent.fullOpacity"]})],t.prototype,"fullOpacity",null),i.__decorate([l.property()],t.prototype,"layer",void 0),i.__decorate([l.property()],t.prototype,"parent",void 0),i.__decorate([l.property({readOnly:!0,dependsOn:["visible","layer.loaded","parent.suspended","view?.ready"]})],t.prototype,"suspended",null),i.__decorate([l.property({readOnly:!0,dependsOn:["visible","layer.loaded","parent.suspended","view?.ready"]})],t.prototype,"suspendInfo",null),i.__decorate([l.property({type:Boolean,dependsOn:["updatingHandles.updating"],readOnly:!0})],t.prototype,"updating",null),i.__decorate([l.property({dependsOn:["layer.visible"]})],t.prototype,"visible",null),i.__decorate([l.subclass("esri.views.layers.LayerView")],t)}(o.HandleOwnerMixin(s.IdentifiableMixin(p.EsriPromiseMixin(r.EventedMixin(n)))))}).apply(null,n))||(e.exports=r)},ZMIQ:function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("ycL1"),i("Vx27")],r=(function(e,t,i,n,r){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),i.__decorate([r.subclass("esri.views.layers.support.ClipArea")],t)}(n.JSONSupport)}).apply(null,n),void 0===r||(e.exports=r)},ts8o:function(e,t,i){var n,r;n=[i.dj.c(e.i),t,i("zOht"),i("TMur"),i("Vx27"),i("YADd"),i("Lzvl"),i("ZMIQ")],r=(function(e,t,i,n,r,o,s,a){var p={base:o,key:"type",typeMap:{extent:n.Extent,polygon:n.Polygon}};return function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="geometry",t.geometry=null,t}var n;return i.__extends(t,e),n=t,Object.defineProperty(t.prototype,"version",{get:function(){return(this._get("version")||0)+1},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new n({geometry:this.geometry.clone()})},i.__decorate([r.property({types:p,json:{read:s.fromJSON,write:!0}})],t.prototype,"geometry",void 0),i.__decorate([r.property({readOnly:!0,dependsOn:["geometry"]})],t.prototype,"version",null),n=i.__decorate([r.subclass("esri.views.layers.support.Geometry")],t)}(a)}).apply(null,n),void 0===r||(e.exports=r)}}]);