Can the Web AppBuilder Draw widget have "Show Measurements" checked on by default?

884
2
Jump to solution
02-08-2017 10:32 AM
AdamGebhart
Occasional Contributor III

Our users would like to have the Draw widget's measurements displayed by default so they don't have to check the Show Measurements box each time.  Is this possible in WAB 2.3.

I've tried the following change (highlighted) to apps\#\widgets\Draw\widget.html - line 24, but that didn't work.  Can it be done?  If it's not very easy to see, the modification was to add data-dojo-props="checked:true,value:'true' after type="checkbox".

  

That was based on a similar modification Robert Scheitlin, GISP‌ described for having the Print widget Advanced Settings default set to preserve map extent.

1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Adam,

   For a html input element like that you just need to add "checked"

<input data-dojo-attach-point="showMeasure" type="checkbox" checked/>

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Adam,

   For a html input element like that you just need to add "checked"

<input data-dojo-attach-point="showMeasure" type="checkbox" checked/>
AdamGebhart
Occasional Contributor III

That worked.  Thanks for the help.

0 Kudos