Hi,
I'm new to Web AppBuilder and JavaScript API and I'm implementing a small app for digitizing features over a orthophoto map. I'm using the developer version of the Web AppBuilder and an intranet Portal for ArcGIS.
I need to set a maximum scale for the map and disable the move/scale/rotate options when using the default editor widget.
I couldn't find a way to set a maximum scale for the map after the initialization of the map (ie when the editor widget is started), but I hooked to the "zoom-end" event of the map and if the user zooms out, the app automatically zooms back in. Is there a better way to do this?
this.blockScaleEvent =
this.map.on("zoom-end", lang.hitch(this, function () {
if (this.map.getScale() > 250) {
this.map.setScale(250);
}
}));
I couldn't find a way to disable the move/scale/rotate options when using the default editor widget. Can anyone help me with this?
Thank you,
Ciprian