<?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: Measurement Widget default Location unit in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529999#M49433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the "Select with Feature Layer" example. You can digitize a line and select intersecting segments. The tricky part might be setting the 5 mile threshold...not sure how I would do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2018 17:19:48 GMT</pubDate>
    <dc:creator>EricMcPhee</dc:creator>
    <dc:date>2018-03-26T17:19:48Z</dc:date>
    <item>
      <title>Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529994#M49428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to change the default unit of the location tool on the measurement widget?&lt;/P&gt;&lt;P&gt;I would like to default to DMS instead of Degrees.&lt;/P&gt;&lt;P&gt;Area and length both have properties to set the default unit (defaultAreaUnit, defaultLengthUnit)...why not Location???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, is it possible to limit the units of measure that I do not want to be in the drop down list? I don't want the user to be able to choose Degrees at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 13:41:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529994#M49428</guid>
      <dc:creator>EricMcPhee</dc:creator>
      <dc:date>2015-05-19T13:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529995#M49429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is possible....although undocumented. I'm not sure what the big secret is, or if it was simply an oversight.&lt;/P&gt;&lt;P&gt;If you look at the Measurement Widget sample (&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_measurement.html" title="https://developers.arcgis.com/javascript/jssamples/widget_measurement.html"&gt;Measurement Widget | ArcGIS API for JavaScript)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and play in the sandbox, you can change the defaultLengthUnit, defaultAreaUnit, and the _defaultLocationUnit .&lt;/P&gt;&lt;P&gt;Notice the preceding underscore for the _defaultLocationUnit. Not sure why that one is left out of the documentation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var measurement = new Measurement({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defaultLengthUnit: "esriMiles",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; defaultAreaUnit: "esriSquareFeet",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _defaultLocationUnit: "esriDegreeMinuteSeconds",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, dom.byId("measurementDiv"));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would still like to know how to remove unwanted units from the dropdown lists in the Measurement Widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 15:54:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529995#M49429</guid>
      <dc:creator>EricMcPhee</dc:creator>
      <dc:date>2015-05-27T15:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529996#M49430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/people/slcemcphee33"&gt;slcemcphee33&lt;/A&gt;‌, did you ever find a way to remove the unwanted units from the dropdown list?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution I found was to download a copy of the API locally and remove the entries from the actual API backend. Would love a more elegant solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 13:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529996#M49430</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-03-26T13:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529997#M49431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had come to the same conclusion...would need to download the API locally. I did not go this route. I still have Nautical Miles in my Measurement widget for no good reason&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/cry.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 14:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529997#M49431</guid>
      <dc:creator>EricMcPhee</dc:creator>
      <dc:date>2018-03-26T14:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529998#M49432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah no bueno. Having the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While I have you here though, I'm trying to what I think is a fairly straightforward workflow and running into issues, was hoping you might know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to put together an app that would allow users to "click along" a series of highway segments and, when the user hits a distance threshold (5 miles), they can then "submit" the selected segments to an identify task that would return all the ObjectIDs of the features that are overlaid. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 16:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529998#M49432</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-03-26T16:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529999#M49433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check out the "Select with Feature Layer" example. You can digitize a line and select intersecting segments. The tricky part might be setting the 5 mile threshold...not sure how I would do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 17:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/529999#M49433</guid>
      <dc:creator>EricMcPhee</dc:creator>
      <dc:date>2018-03-26T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/530000#M49434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&amp;nbsp; you need to look at this thread where I show how to limit the units available in the&amp;nbsp;Measurement widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/530000#M49434</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-03-27T17:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measurement Widget default Location unit</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/530001#M49435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert - I assume you are referring to one of these threads?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/199857"&gt;Measurement Widget: disable tooltips &amp;amp;amp; units&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/207129"&gt;Measurement in meters in Javascript&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for chiming in, it prompted me to revisit this topic. I played with this in the Sandbox sample for the Measurement Widget and was able to get to remove unwanted Units.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Farewell, Nautical Miles and Square Yards. I hope to never see you in my applications again&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2018 19:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-default-location-unit/m-p/530001#M49435</guid>
      <dc:creator>EricMcPhee</dc:creator>
      <dc:date>2018-03-27T19:39:19Z</dc:date>
    </item>
  </channel>
</rss>

