????
Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/ |
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/84.d255c4e72ae155082fb1.js |
(function(){var e={"esri/layers/support/SceneModifications":"Kkcm","esri/layers/support/SceneModification":"sLdR","esri/layers/IntegratedMeshLayer":"wehw"},t=this||window,r=t.webpackJsonp=t.webpackJsonp||[];r.registerAbsMids?r.registerAbsMids(e):(r.absMidsWaiting=r.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{Kkcm:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("zp6E"),r("y4WC"),r("ycL1"),r("LxLY"),r("jfWY"),r("Vx27"),r("sLdR")],void 0===(i=(function(e,t,r,o,i,n,s,a,p,c){return function(e){function t(t){var r=e.call(this,t)||this;return r.url=null,r}var i;return r.__extends(t,e),i=t,t.prototype.toJSON=function(e){return this.toArray().map((function(t){return t.toJSON(e)})).filter((function(e){return!!e.geometry}))},t.prototype.clone=function(){return new i({url:this.url,items:this.items.map((function(e){return e.clone()}))})},t.prototype._readModifications=function(e,t){for(var r=0,o=e;r<o.length;r++)this.add(c.fromJSON(o[r],t))},t.fromJSON=function(e,t){var r=new i;return r._readModifications(e,t),r},t.fromUrl=function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var p,l,y,d,u,f,_;return r.__generator(this,(function(h){switch(h.label){case 0:return p={url:a.urlToObject(e),origin:"service"},[4,o(e,{responseType:"json",signal:s.get(n,"signal")})];case 1:for(l=h.sent(),y=t.toJSON(),d=[],u=0,f=l.data;u<f.length;u++)d.push(c.fromJSON(r.__assign(r.__assign({},_=f[u]),{geometry:r.__assign(r.__assign({},_.geometry),{spatialReference:y})}),p));return[2,new i({url:e,items:d})]}}))}))},r.__decorate([p.property({type:String})],t.prototype,"url",void 0),i=r.__decorate([p.subclass("esri.layers.support.SceneModifications")],t)}(n.JSONSupportMixin(i.ofType(c)))}).apply(null,o))||(e.exports=i)},sLdR:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("TMur"),r("ycL1"),r("rg9i"),r("V2ZO"),r("Vx27"),r("RPEu"),r("mmEe")],void 0===(i=(function(e,t,r,o,i,n,s,a,p,c){return function(e){function t(t){var r=e.call(this,t)||this;return r.geometry=null,r.type="clip",r}var i;return r.__extends(t,e),i=t,t.prototype.writeGeometry=function(e,t,r,i){if(i.layer&&i.layer.spatialReference&&!i.layer.spatialReference.equals(this.geometry.spatialReference)){if(!c.canProject(e.spatialReference,i.layer.spatialReference))return void(i&&i.messages&&i.messages.push(new s("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:i.layer.spatialReference,context:i})));var n=new o.Polygon({spatialReference:i.layer.spatialReference});c.polygonToPolygon(e,n),t[r]=n.toJSON(i)}else t[r]=e.toJSON(i);delete t[r].spatialReference},t.prototype.clone=function(){return new i({geometry:n.clone(this.geometry),type:this.type})},r.__decorate([a.property({type:o.Polygon}),p.persistable()],t.prototype,"geometry",void 0),r.__decorate([a.writer(["web-scene","portal-item"],"geometry")],t.prototype,"writeGeometry",null),r.__decorate([a.property({type:["clip","mask","replace"],nonNullable:!0}),p.persistable()],t.prototype,"type",void 0),i=r.__decorate([a.subclass("esri.layers.support.SceneModification")],t)}(i.JSONSupport)}).apply(null,o))||(e.exports=i)},wehw:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("ma1f"),r("eIBl"),r("LxLY"),r("EUqE"),r("8MXS"),r("Vx27"),r("RPEu"),r("0RER"),r("2fnV"),r("FEX1"),r("QJ8R"),r("OXmT"),r("JNpq"),r("EtsK"),r("OjNT"),r("Kkcm"),r("ojLd")],i=(function(e,t,r,o,i,n,s,a,p,c,l,y,d,u,f,_,h,m,v,g){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=e.apply(this,t)||this;return o.handles=new i,o.geometryType="mesh",o.operationalLayerType="IntegratedMeshLayer",o.type="integrated-mesh",o.nodePages=null,o.materialDefinitions=null,o.textureSetDefinitions=null,o.geometryDefinitions=null,o.serviceUpdateTimeStamp=null,o.profile="mesh-pyramids",o.modifications=null,o._modificationsSource=null,o.elevationInfo=null,o.path=null,o}return r.__extends(t,e),t.prototype.destroy=function(){this.handles.destroy()},t.prototype.initialize=function(){var e=this;this.handles.add(a.on(this,"modifications","after-changes",(function(){return e.modifications=e.modifications}),null,null,!0))},t.prototype.normalizeCtorArgs=function(e,t){return"string"==typeof e?r.__assign({url:e},t):e},t.prototype.readModifications=function(e,t,r){this._modificationsSource={url:g.fromJSON(e,r),context:r}},t.prototype.load=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.addResolvingPromise(this._doLoad(e)),[2,this]}))}))},t.prototype._doLoad=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,o;return r.__generator(this,(function(r){switch(r.label){case 0:t=n.get(e,"signal"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.loadFromPortal({supportedTypes:["Scene Service"]},e)];case 2:case 3:return r.sent(),[3,4];case 4:return[4,this._fetchService(t)];case 5:return r.sent(),n.isSome(this._modificationsSource)?[4,v.fromUrl(this._modificationsSource.url,this.spatialReference,e)]:[3,7];case 6:o=r.sent(),this.setAtOrigin("modifications",o,this._modificationsSource.context.origin),this._modificationsSource=null,r.label=7;case 7:return[4,this._verifyRootNodeAndUpdateExtent(this.nodePages,t)];case 8:return r.sent(),[2]}}))}))},t.prototype.beforeSave=function(){if(!n.isNone(this._modificationsSource))return this.load().then((function(){}),(function(){}))},t.prototype.saveAs=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var o=this;return r.__generator(this,(function(i){return[2,this._saveAs(e,r.__assign(r.__assign({},t),{getTypeKeywords:function(){return o._getTypeKeywords()},portalItemLayerType:"integrated-mesh"}))]}))}))},t.prototype.save=function(){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(t){return[2,this._save({getTypeKeywords:function(){return e._getTypeKeywords()},portalItemLayerType:"integrated-mesh"})]}))}))},t.prototype.validateLayer=function(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})},t.prototype._getTypeKeywords=function(){return["IntegratedMeshLayer"]},r.__decorate([p.property({type:String,readOnly:!0})],t.prototype,"geometryType",void 0),r.__decorate([p.property({type:["show","hide"]})],t.prototype,"listMode",void 0),r.__decorate([p.property({type:["IntegratedMeshLayer"]})],t.prototype,"operationalLayerType",void 0),r.__decorate([p.property({json:{read:!1},readOnly:!0})],t.prototype,"type",void 0),r.__decorate([p.property({type:m.I3SNodePageDefinition,readOnly:!0})],t.prototype,"nodePages",void 0),r.__decorate([p.property({type:[m.I3SMaterialDefinition],readOnly:!0})],t.prototype,"materialDefinitions",void 0),r.__decorate([p.property({type:[m.I3STextureSetDefinition],readOnly:!0})],t.prototype,"textureSetDefinitions",void 0),r.__decorate([p.property({type:[m.I3SGeometryDefinition],readOnly:!0})],t.prototype,"geometryDefinitions",void 0),r.__decorate([p.property({readOnly:!0})],t.prototype,"serviceUpdateTimeStamp",void 0),r.__decorate([p.property({type:v}),c.persistable({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],t.prototype,"modifications",void 0),r.__decorate([p.reader(["web-scene","portal-item"],"modifications")],t.prototype,"readModifications",null),r.__decorate([p.property(h.elevationInfo)],t.prototype,"elevationInfo",void 0),r.__decorate([p.property({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],t.prototype,"path",void 0),r.__decorate([p.subclass("esri.layers.IntegratedMeshLayer")],t)}(_.SceneService(y.ArcGISService(d.OperationalLayer(u.PortalLayer(f.ScaleRangeLayer(s.MultiOriginJSONMixin(l)))))))}).apply(null,o),void 0===i||(e.exports=i)}}]);