<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Measure widget - default values in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016689#M20169</link>
    <description>&lt;P&gt;I am trying to set the default values in the Measure widget. As shown below, the highlighted toggle button by default is on. I am trying to set it to &lt;STRONG&gt;off by default&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NovicaJ_0-1610580446221.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3824iA24DD2F67294E458/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NovicaJ_0-1610580446221.png" alt="NovicaJ_0-1610580446221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can I do this somehow? How do I set it to &lt;STRONG&gt;off&lt;/STRONG&gt; by default?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 23:28:04 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-01-13T23:28:04Z</dc:date>
    <item>
      <title>Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016689#M20169</link>
      <description>&lt;P&gt;I am trying to set the default values in the Measure widget. As shown below, the highlighted toggle button by default is on. I am trying to set it to &lt;STRONG&gt;off by default&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NovicaJ_0-1610580446221.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3824iA24DD2F67294E458/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NovicaJ_0-1610580446221.png" alt="NovicaJ_0-1610580446221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can I do this somehow? How do I set it to &lt;STRONG&gt;off&lt;/STRONG&gt; by default?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 23:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016689#M20169</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-13T23:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016697#M20171</link>
      <description>&lt;P&gt;You can control the areas to be visible by changing to false under the configs/measurement&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 23:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016697#M20171</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-01-13T23:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016700#M20172</link>
      <description>&lt;P&gt;Can I kindly ask to you elaborate? This is what the config.json file looks like for my Measure widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NovicaJ_0-1610582639241.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3825i6327B999FDD9C092/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NovicaJ_0-1610582639241.png" alt="NovicaJ_0-1610582639241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 00:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016700#M20172</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-14T00:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016706#M20173</link>
      <description>&lt;P&gt;Is it a custom widget? What version of WAB are you using?&lt;/P&gt;&lt;P&gt;The measurement widget in WAB has this config.json&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "measurement": {
    "defaultAreaUnit": "esriAcres",
    "defaultLengthUnit": "esriMiles"
  },
  "showArea": true,
  "showDistance": true,
  "showLocation": true,
  "defaultAreaUnit": "esriSquareMiles",
  "defaultLengthUnit": "esriMiles",
  "isOperationalLayer": false
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 14 Jan 2021 00:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016706#M20173</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-01-14T00:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016708#M20174</link>
      <description>&lt;P&gt;Yes, it it a custom widget, so to say. It's a combination of the draw and measure widgets.&amp;nbsp;&lt;BR /&gt;I attached the Widget.js file for your viewing pleasure.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;As for the config for the widget, I tried adding the following but the toggle button is still toggled on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NovicaJ_0-1610583957468.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/3828i205BDCA5D677E40D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NovicaJ_0-1610583957468.png" alt="NovicaJ_0-1610583957468.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 00:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016708#M20174</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-14T00:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016718#M20175</link>
      <description>&lt;P&gt;By adding the in the config file with no action in js, it wont do anything. You will need to add the action under the postCreate function to read the setting in the config like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;initialstate= this.config.showDistance&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, disable or enable the visibility of the "show distance measurement" div depending on the initial state value. However, if the toggle button is in the same div as the "show distance measurement" , and the div is not enabled,&amp;nbsp; you will not be able to click on it and enable it on later. The button needs to be outside. Hope it makes sense.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 00:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1016718#M20175</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2021-01-14T00:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Measure widget - default values</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1061896#M20889</link>
      <description>&lt;P&gt;I'm by no means a Developer...&amp;nbsp; One of our staff insists on 'the simplest of apps.'&amp;nbsp; Which means I'm poking code until it breaks, then undoing my last poke.&lt;/P&gt;&lt;P&gt;I had the opposite problem in the Draw Widget.&amp;nbsp; Toggles were off by default, when I wanted them selected.&lt;/P&gt;&lt;P&gt;In the #\widgets\Draw\Widget.html, I made an alteration:&lt;/P&gt;&lt;P&gt;&amp;lt;div data-dojo-attach-point="areaMeasure" class="draw-item jimu-symbol-chooser"&amp;gt;&lt;BR /&gt;&amp;lt;div class="header&lt;STRONG&gt;&lt;FONT color="#993300"&gt; applied&lt;/FONT&gt;&lt;/STRONG&gt;" data-dojo-attach-point="areaMeasureHeader" data-index="areaMeasure"&amp;gt;&lt;BR /&gt;&amp;lt;!-- &amp;lt;span class="arrow jimu-float-leading jimu-trailing-margin05" &amp;gt;&amp;lt;/span&amp;gt; --&amp;gt;&lt;BR /&gt;&amp;lt;span class="item-title"&amp;gt;${nls.showAreaMeasurement}&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;span class="toggle-draw jimu-trailing-margin1" data-dojo-attach-point="areaToggleDraw"&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;&amp;lt;span class="toggle-draw jimu-trailing-margin1 jimu-toggle-button checked" data-dojo-attach-point="areaToggleDraw" id="jimu_dijit_ToggleButton_1" widgetid="jimu_dijit_ToggleButton_1" role="button" tabindex="0" aria-pressed="true"&amp;gt;&amp;lt;/span&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;lt;/div&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I'm not really done poking yet, but this change had the desired effect: selecting an area draw tool and using it immediately adds the area label.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 16:58:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/measure-widget-default-values/m-p/1061896#M20889</guid>
      <dc:creator>DavidMurray_ODWC</dc:creator>
      <dc:date>2021-05-26T16:58:25Z</dc:date>
    </item>
  </channel>
</rss>

