????

Your IP : 3.134.253.166


Current Path : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/
Upload File :
Current File : C:/inetpub/vhost/bcvt.kontum.gov.vn/www/101-es2015.js.map

{"version":3,"sources":["./node_modules/arcgis-js-api/views/2d/layers/KMLLayerView2D.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,iCAAO,CAAC,kCAAS,CAAC,OAAS,CAAC,8IAA8C,CAAC,kIAAwC,CAAC,oIAAyC,CAAC,gIAAuC,CAAC,sFAAkB,CAAC,sFAAkB,CAAC,sGAA0B,CAAC,gGAAuB,CAAC,0GAA4B,CAAC,sGAA0B,CAAC,sGAA0B,CAAC,sIAA0C,CAAC,sGAA0B,CAAC,0IAA4C,CAAC,sHAAkC,CAAC,uFAAW,CAAC,uGAAe,CAAC,+HAA2B,CAAC,2GAAwB,CAAC,mCAAC,oDAAoD,kBAAkB,mBAAmB,aAAa,8CAA8C,oQAAoQ,gDAAgD,WAAW,uGAAuG,uGAAuG,iCAAiC,4BAA4B,sDAAsD,WAAW,EAAE,gCAAgC,iJAAiJ,+BAA+B,WAAW,oEAAoE,4BAA4B,yBAAyB,gCAAgC,4BAA4B,EAAE,oCAAoC,0KAA0K,uFAAuF,gDAAgD,2FAA2F,iDAAiD,yFAAyF,8CAA8C,qGAAqG,+BAA+B,6DAA6D,mDAAmD,oMAAoM,+BAA+B,iWAAiW,kCAAkC,qBAAqB,mCAAmC,qBAAqB,gCAAgC,qBAAqB,mCAAmC,yHAAyH,sCAAsC,WAAW,8CAA8C,qBAAqB,mBAAmB,oCAAoC,kFAAkF,sBAAsB,yIAAyI,EAAE,sCAAsC,WAAW,yFAAyF,0CAA0C,EAAE,iDAAiD,yBAAyB,uCAAuC,SAAS,6BAA6B,kDAAkD,gBAAgB,kBAAkB,sCAAsC,mBAAmB,4BAA4B,iCAAiC,6DAA6D,4BAA4B,yBAAyB,EAAE,kBAAkB,kDAAkD,EAAE,qBAAqB,4BAA4B,EAAE,sCAAsC,6GAA6G,0BAA0B,EAAE,mDAAmD,uCAAuC,gBAAgB,0BAA0B,gBAAgB,qDAAqD,uBAAuB,QAAQ,0DAA0D,4BAA4B,8EAA8E,4BAA4B,+EAA+E,4BAA4B,2DAA2D,EAAE,EAAE,4CAA4C,gDAAgD,mLAAmL,4BAA4B,yKAAyK,EAAE,yCAAyC,+BAA+B,wEAAwE,sOAAsO,yGAAyG,6FAA6F,+BAA+B;AAAA,oGAAC,C","file":"101-es2015.js","sourcesContent":["// COPYRIGHT © 2019 Esri\n//\n// All rights reserved under the copyright laws of the United States\n// and applicable international laws, treaties, and conventions.\n//\n// This material is licensed for use under the Esri Master License\n// Agreement (MLA), and is bound by the terms of that agreement.\n// You may redistribute and use this code without modification,\n// provided you adhere to the terms of the MLA and include this\n// copyright notice.\n//\n// See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english\n//\n// For additional information, contact:\n// Environmental Systems Research Institute, Inc.\n// Attn: Contracts and Legal Services Department\n// 380 New York Street\n// Redlands, California, USA 92373\n// USA\n//\n// email: contracts@esri.com\n//\n// See http://js.arcgis.com/4.14/esri/copyright.txt for details.\n\ndefine([\"require\",\"exports\",\"../../../core/tsSupport/declareExtendsHelper\",\"../../../core/tsSupport/decorateHelper\",\"../../../core/tsSupport/generatorHelper\",\"../../../core/tsSupport/awaiterHelper\",\"../../../Graphic\",\"../../../request\",\"../../../core/Collection\",\"../../../core/Handles\",\"../../../core/promiseUtils\",\"../../../core/scheduling\",\"../../../core/watchUtils\",\"../../../core/accessorSupport/decorators\",\"../../../geometry/Extent\",\"../../../geometry/support/webMercatorUtils\",\"../../../layers/support/kmlUtils\",\"../engine\",\"./LayerView2D\",\"./graphics/GraphicsView2D\",\"../../layers/LayerView\"],function(e,i,t,n,s,o,r,l,a,p,h,c,u,y,d,_,f,g,w,m,v){var V=a.ofType(r);return function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i._handles=new p,i._bitmapIndex=new Map,i._mapImageContainer=new g.BitmapContainer(i.clips),i._featuresMap=new Map,i.allVisiblePoints=new V,i.allVisiblePolylines=new V,i.allVisiblePolygons=new V,i.allVisibleMapImages=new a,i.container=new g.Container,i}return t(i,e),i.prototype.hitTest=function(e,i){var t=this;if(this.suspended||!this._pointsView&&!this._polylinesView&&!this._polygonsView)return h.resolve(null);var n=[this._pointsView.hitTest(e,i),this._polylinesView.hitTest(e,i),this._polygonsView.hitTest(e,i)];return h.all(n).then(function(e){return e.filter(function(e){return e&&(e.layer=t.layer,e.sourceLayer=t.layer),!!e})[0]||null})},i.prototype.update=function(e){this._polygonsView&&this._polygonsView.update(e),this._polylinesView&&this._polylinesView.update(e),this._pointsView&&this._pointsView.update(e)},i.prototype.attach=function(){var e=this;this._handles.add([this.allVisibleMapImages.on(\"change\",function(i){i.added.forEach(function(i){return e._addMapImage(i)}),i.removed.forEach(function(i){return e._removeMapImage(i)})}),this.clips.on(\"change\",function(){e._polygonsView.container.setClips(e.clips),e._polylinesView.container.setClips(e.clips),e._pointsView.container.setClips(e.clips),e._mapImageContainer.setClips(e.clips)})]),this.container.addChild(this._mapImageContainer),this._polygonsView=new m.default({view:this.view,graphics:this.allVisiblePolygons}),this.container.addChild(this._polygonsView.container),this._polylinesView=new m.default({view:this.view,graphics:this.allVisiblePolylines}),this.container.addChild(this._polylinesView.container),this._pointsView=new m.default({view:this.view,graphics:this.allVisiblePoints}),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\")}),this._polygonsView.container.setClips(this.clips),this._polylinesView.container.setClips(this.clips),this._pointsView.container.setClips(this.clips),this._mapImageContainer.setClips(this.clips)},i.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)},i.prototype.moveStart=function(){this.requestUpdate()},i.prototype.viewChange=function(){this.requestUpdate()},i.prototype.moveEnd=function(){this.requestUpdate()},i.prototype.isUpdating=function(){return null!=this._fetchingPromise||this._pointsView.updating||this._polygonsView.updating||this._polylinesView.updating},i.prototype._addMapImage=function(e){var i=this;this.view.spatialReference.isWGS84&&l(e.href,{responseType:\"image\"}).then(function(t){var n=t.data,s=d.fromJSON(e.extent);_.canProject(s,i.view.spatialReference)&&(s=_.project(s,i.view.spatialReference));var o=new g.Bitmap(n);o.x=s.xmin,o.y=s.ymax,o.resolution=s.width/n.naturalWidth,o.rotation=e.rotation,i._mapImageContainer.addChild(o),i._bitmapIndex.set(e,o)})},i.prototype._fetchService=function(){var e=this;return this._handles.remove(\"refresh-collections\"),this._getParsedKML().then(function(i){return e._fetchSublayerService(e.layer,i)})},i.prototype._fetchSublayerService=function(e,i){var t=this,n=e.sublayers;if(!n||0===n.length)return h.resolve();var s=[];return n.forEach(function(e){var n=u.whenTrueOnce(e,\"visible\").then(function(){return e.load()}).then(function(){return t._getGraphicsForSublayer(e,i)}).then(function(i){return h.create(function(n){if(e.networkLink)return void n();t._featuresMap.set(e,i),t._handles.add(c.schedule(function(){t._refreshCollections(),n()}),\"refresh-collections\")})}).then(function(){return t._fetchSublayerService(e,e.sourceJSON||i)});e.visible&&s.push(n)}),h.all(s).then(function(){})},i.prototype._getParsedKML=function(){return f.fetchService(this.layer.url,this.view.spatialReference,this.layer.refreshInterval).then(function(e){return f.parseKML(e.data)})},i.prototype._getGraphicsForSublayer=function(e,i){return o(this,void 0,void 0,function(){var t,n,o,r,l,a;return s(this,function(s){switch(s.label){case 0:return t=null,(n=i.sublayers.some(function(i){return t=i,i.id===e.id}))?(o={},r=t.points,r?[4,f.getGraphics(t.points)]:[3,2]):[2,null];case 1:r=s.sent(),s.label=2;case 2:return o.points=r,l=t.polylines,l?[4,f.getGraphics(t.polylines)]:[3,4];case 3:l=s.sent(),s.label=4;case 4:return o.polylines=l,a=t.polygons,a?[4,f.getGraphics(t.polygons)]:[3,6];case 5:a=s.sent(),s.label=6;case 6:return[2,(o.polygons=a,o.mapImages=t.mapImages,o)]}})})},i.prototype._refreshCollections=function(){var e=this,i=this.get(\"layer.visibleSublayers\");this.allVisiblePoints.removeAll(),this.allVisiblePolylines.removeAll(),this.allVisiblePolygons.removeAll(),this.allVisibleMapImages.removeAll(),i&&i.length&&i.forEach(function(i){var t=e._featuresMap.get(i);t&&(e.allVisiblePoints.addMany(t.points),e.allVisiblePolylines.addMany(t.polylines),e.allVisiblePolygons.addMany(t.polygons),e.allVisibleMapImages.addMany(t.mapImages))})},i.prototype._removeMapImage=function(e){var i=this._bitmapIndex.get(e);i&&(this._mapImageContainer.removeChild(i),this._bitmapIndex.delete(e))},n([y.property()],i.prototype,\"_pointsView\",void 0),n([y.property()],i.prototype,\"_polylinesView\",void 0),n([y.property()],i.prototype,\"_polygonsView\",void 0),n([y.property()],i.prototype,\"_fetchingPromise\",void 0),n([y.property({dependsOn:[\"_fetchingPromise\",\"_pointsView.updating\",\"_polygonsView.updating\",\"_polylinesView.updating\"]})],i.prototype,\"updating\",void 0),i=n([y.subclass(\"esri.views.2d.layers.KMLLayerView2D\")],i)}(y.declared(w.LayerView2D(v)))});"],"sourceRoot":"webpack:///"}