<?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 Re: How to modify measurement widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586952#M54836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cool beans Jian. That worked great to remove the area button. Working off your code, I found this code will remove the location button. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var location = dojo.query('[widgetid=\"location\"]')[0];
location.parentNode.removeChild(location);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about changing the default units, when using the distance tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 01:14:11 GMT</pubDate>
    <dc:creator>RyanStrain</dc:creator>
    <dc:date>2021-12-12T01:14:11Z</dc:date>
    <item>
      <title>How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586947#M54831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using the measurement widget that is provided in the ArcGIS API for Javascript. I'd like to remove the "location" button that gives coordinate results. And I'd also like to change the default units from "Miles" to "Feet". Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://i1216.photobucket.com/albums/dd378/EssTrain/MeasureWidget.jpg"&gt;&lt;IMG src="http://i1216.photobucket.com/albums/dd378/EssTrain/MeasureWidget.jpg" /&gt;&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 20:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586947#M54831</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2011-05-31T20:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586948#M54832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also curious how to modify this widget.&amp;nbsp; I want to change the text size of the drop down menu (ie: where it says Miles, kilometers, etc) as well as shrink down some other elements of it.&amp;nbsp; I cant figure out the CSS to change in order to modify the measurement widget beyond changing what the icons are.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 13:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586948#M54832</guid>
      <dc:creator>DanielNieto_Jr</dc:creator>
      <dc:date>2011-06-01T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586949#M54833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am also curious how to modify this widget.&amp;nbsp; I want to change the text size of the drop down menu (ie: where it says Miles, kilometers, etc) as well as shrink down some other elements of it.&amp;nbsp; I cant figure out the CSS to change in order to modify the measurement widget beyond changing what the icons are.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Given that the JS API for measurement list very few properties, events and methods. It does not have super class, It really cannot do much modification except change the appearence of the icons such as remove the location icon: .locationIcon { display: none; }. It would be interesting to see ESRI's input on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 13:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586949#M54833</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-06-01T13:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586950#M54834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The area tool does not wlways works as expected - it is kind of difficult at times to close a polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to turn off the area tool just because it does not behave nice for us...so i was also wondering if there was a way to do this ESRI??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 19:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586950#M54834</guid>
      <dc:creator>GabiVoicu</dc:creator>
      <dc:date>2011-06-02T19:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586951#M54835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var measurement = new esri.dijit.Measurement({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, dojo.byId('measurement'));
&amp;nbsp; measurement.startup();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var area = dojo.query('[widgetid=\"area\"]')[0];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; area.parentNode.removeChild(area);&amp;nbsp; 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:14:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586951#M54835</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2021-12-12T01:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586952#M54836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cool beans Jian. That worked great to remove the area button. Working off your code, I found this code will remove the location button. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var location = dojo.query('[widgetid=\"location\"]')[0];
location.parentNode.removeChild(location);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about changing the default units, when using the distance tool?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586952#M54836</guid>
      <dc:creator>RyanStrain</dc:creator>
      <dc:date>2021-12-12T01:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586953#M54837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also can this be used to change the CSS elements of the widget.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that the area where i want to modify the text-size is labeled :#unit_label, under the node #unit I believe. I have tried jQuery .CSS command to change #unit_label it was unsuccessful&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;span class="dijit dijitReset dijitInline esriToggleButton" style="visibility: visible;" widgetid="unit"&amp;gt;
&amp;lt;span class="dijitReset dijitInline dijitButtonNode" dojoattachpoint="_buttonNode" dojoattachevent="ondijitclick:_onButtonClick"&amp;gt;
&amp;lt;span id="unit" class="dijitReset dijitStretch dijitButtonContents dijitDownArrowButton" aria-labelledby="unit_label" aria-haspopup="true" role="button" dojoattachpoint="focusNode,titleNode,_arrowWrapperNode" style="-moz-user-select: none;" tabindex="0"&amp;gt;
&amp;lt;span class="dijitReset dijitInline dijitIcon" dojoattachpoint="iconNode"&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;span id="unit_label" class="dijitReset dijitInline dijitButtonText" dojoattachpoint="containerNode,_popupStateNode" style="font-size:16px !important;" popupactive="true"&amp;gt;Miles&amp;lt;/span&amp;gt;
&amp;lt;span class="dijitReset dijitInline dijitArrowButtonInner"&amp;gt;&amp;lt;/span&amp;gt;
&amp;lt;span class="dijitReset dijitInline dijitArrowButtonChar"&amp;gt;�?�&amp;lt;/span&amp;gt;
&amp;lt;/span&amp;gt;
&amp;lt;/span&amp;gt;
&amp;lt;input class="dijitOffScreen" type="button" dojoattachpoint="valueNode" tabindex="-1" value="unit"&amp;gt;
&amp;lt;/span&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586953#M54837</guid>
      <dc:creator>DanielNieto_Jr</dc:creator>
      <dc:date>2021-12-12T01:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586954#M54838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have the same requirement. Did one one figure out how the css element style can be changed for the elements inside the measurement widget?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 22:47:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586954#M54838</guid>
      <dc:creator>UdayBurrey</dc:creator>
      <dc:date>2016-03-18T22:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586955#M54839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is easy. There's a buildIn function to hide or show the three Types of measurement called hideTool('toolname').&lt;/P&gt;&lt;P&gt;Just insert the Toolname you don't want to see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To change the default Unit for Area-Measurement use defaultAreaUnit and for changing the default length Unit use defaultLengthUnit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;TD&gt;measurement = new Measurement({&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; map: map,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; defaultAreaUnit: Units.SQUARE_METERS,&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; defaultLengthUnit: Units.METERS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; }, dom.byId('measurementDiv'));&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; measurement.startup();&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt; measurement.hideTool("location");&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further Informations have a look here : &lt;A href="https://developers.arcgis.com/javascript/jsapi/measurement-amd.html#hidetool" title="https://developers.arcgis.com/javascript/jsapi/measurement-amd.html#hidetool"&gt;Measurement | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 09:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586955#M54839</guid>
      <dc:creator>MiriamBrockmann</dc:creator>
      <dc:date>2016-03-21T09:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586956#M54840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for providing help on this. My actual problem was the arrow with the drop down list on the measurement widget was not showing up. I found that the display of the arrow element is set to "none" by default. I had to overwrite that attribute by placing this block in my CSS file&lt;/P&gt;&lt;P&gt;.dijitArrowButtonChar {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:inline !important;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-modify-measurement-widget/m-p/586956#M54840</guid>
      <dc:creator>UdayBurrey</dc:creator>
      <dc:date>2016-03-22T18:55:18Z</dc:date>
    </item>
  </channel>
</rss>

