<?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 SketchTooltipOptions length units support in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1224707#M79104</link>
    <description>&lt;P&gt;Hi, I'd like to know if it's currently possible to change the length units for the SketchTooltipOptions. By default, the lengths are displayed in the metric system and I wasn't able to find a way to change it to imperial units.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 14:44:13 GMT</pubDate>
    <dc:creator>FabricioBezerra</dc:creator>
    <dc:date>2022-10-24T14:44:13Z</dc:date>
    <item>
      <title>SketchTooltipOptions length units support</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1224707#M79104</link>
      <description>&lt;P&gt;Hi, I'd like to know if it's currently possible to change the length units for the SketchTooltipOptions. By default, the lengths are displayed in the metric system and I wasn't able to find a way to change it to imperial units.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 14:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1224707#M79104</guid>
      <dc:creator>FabricioBezerra</dc:creator>
      <dc:date>2022-10-24T14:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: SketchTooltipOptions length units support</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1233701#M79399</link>
      <description>&lt;P&gt;Hi Fabricio.&lt;BR /&gt;Thanks for reaching out.&lt;BR /&gt;With the current release (4.25) it derives the units either from:&lt;BR /&gt;- if "view.map" created from WebScene/WebMap and user logged in it gets the units (metric or imperal) from the user's configuration.&lt;BR /&gt;- or from the unit&amp;nbsp;&lt;SPAN&gt;of the spatial reference&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;At the moment it is not possible to change it on the SketchTooltipOptions directly, but this could change in an upcoming release.&lt;BR /&gt;&lt;BR /&gt;In the meantime,&amp;nbsp;a way to change the unit between metric and imperial is on the `view.map.portalItem`:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;map.portalItem = new PortalItem({
  portal: { units: "english" }
}); &lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;or if portalItem already exist with instantiating from WebMap or WebScene:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;map.portalItem.units = "english" &lt;/PRE&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:17:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1233701#M79399</guid>
      <dc:creator>SaschaBrunnerCH</dc:creator>
      <dc:date>2022-11-21T12:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: SketchTooltipOptions length units support</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1234262#M79419</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/179132"&gt;@SaschaBrunnerCH&lt;/a&gt;! It worked like a charm&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Note: Just noticed the portalItem "portal" property missing in the second option:&lt;/P&gt;&lt;PRE&gt;map.portalItem.portal.units = "english" &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 20:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1234262#M79419</guid>
      <dc:creator>FabricioBezerra</dc:creator>
      <dc:date>2022-11-22T20:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: SketchTooltipOptions length units support</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1365274#M83232</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're facing a similar problem. We're working in the aviation industry so we'd like to show the tooltipOptions length unit in nautical miles instead of km and the labelOptions height in feet instead of meters. Area should still be shown in km^2.&lt;BR /&gt;Our map is not created from a portal item and I wasn't able to to find nautical-miles as an option in&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#unit" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#unit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there any workaround for this use case&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/179132"&gt;@SaschaBrunnerCH&lt;/a&gt;?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 08:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sketchtooltipoptions-length-units-support/m-p/1365274#M83232</guid>
      <dc:creator>snlasystem</dc:creator>
      <dc:date>2024-01-02T08:30:54Z</dc:date>
    </item>
  </channel>
</rss>

