Custom Gis Application with Arcgis Javascript API with modern layouting
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

6 lines
1.3 KiB

// All material copyright Esri, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.30/esri/copyright.txt for details.
//>>built
define("../../chunks/tslib.es6 ../../core/Accessor ../../core/reactiveUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(c,a,e,d,g,h,k,f){a=class extends a{constructor(b){super(b);this._navigationMode="pan";this.view=null}initialize(){this.addHandles(e.when(()=>this.view?.inputManager,()=>this._setNavigationMode()))}destroy(){this.view=null}get state(){return this.view?.ready&&
"3d"===this.view?.type?"ready":"disabled"}get navigationMode(){return this._navigationMode}set navigationMode(b){this._navigationMode=b;this._setNavigationMode()}toggle(){"disabled"!==this.state&&(this.navigationMode="pan"!==this.navigationMode?"pan":"rotate")}_setNavigationMode(){const b=this.view?.inputManager;b&&(b.primaryDragAction="pan"===this._navigationMode?"pan":"rotate")}};c.__decorate([d.property({readOnly:!0})],a.prototype,"state",null);c.__decorate([d.property()],a.prototype,"_navigationMode",
void 0);c.__decorate([d.property()],a.prototype,"view",void 0);return a=c.__decorate([f.subclass("esri.widgets.NavigationToggle.NavigationToggleViewModel")],a)});