<?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 Configure CoordinateConversion Widget to Show Only XY Format as Lat, Lon (ArcGIS JS API v4.32) in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/configure-coordinateconversion-widget-to-show-only/m-p/1627133#M7543</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on an Angular app using &lt;STRONG&gt;ArcGIS JavaScript API v4.32&lt;/STRONG&gt;, and I need help customizing the &lt;STRONG&gt;CoordinateConversion&lt;/STRONG&gt; widget.&lt;/P&gt;&lt;P&gt;I want to achieve two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Keep only the "XY" format option&lt;/STRONG&gt; (i.e., hide MGRS, UTM, etc.).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Display it in Lat, Lon order&lt;/STRONG&gt; (Latitude first, then Longitude)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’ve tried this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const latLonFormat = new CoordinateFormat({
      name: "Lat Lon",
      currentPattern: "YX",
      defaultPattern: "YX"
    });
 const coordinateConversion = new CoordinateConversion({
      view: this.view,
      formats: [latLonFormat], 
      multipleConversions: false,
      visibleElements: {
        settingsButton: false,
        editButton: false,
        expandButton: true,
        captureButton: true
      }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the widget still displays &lt;STRONG&gt;Longitude, Latitude&lt;/STRONG&gt; (i.e., X, Y), regardless of what I set in currentPattern.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2025 10:29:25 GMT</pubDate>
    <dc:creator>alabanu</dc:creator>
    <dc:date>2025-06-26T10:29:25Z</dc:date>
    <item>
      <title>Configure CoordinateConversion Widget to Show Only XY Format as Lat, Lon (ArcGIS JS API v4.32)</title>
      <link>https://community.esri.com/t5/developers-questions/configure-coordinateconversion-widget-to-show-only/m-p/1627133#M7543</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on an Angular app using &lt;STRONG&gt;ArcGIS JavaScript API v4.32&lt;/STRONG&gt;, and I need help customizing the &lt;STRONG&gt;CoordinateConversion&lt;/STRONG&gt; widget.&lt;/P&gt;&lt;P&gt;I want to achieve two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Keep only the "XY" format option&lt;/STRONG&gt; (i.e., hide MGRS, UTM, etc.).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Display it in Lat, Lon order&lt;/STRONG&gt; (Latitude first, then Longitude)&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I’ve tried this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; const latLonFormat = new CoordinateFormat({
      name: "Lat Lon",
      currentPattern: "YX",
      defaultPattern: "YX"
    });
 const coordinateConversion = new CoordinateConversion({
      view: this.view,
      formats: [latLonFormat], 
      multipleConversions: false,
      visibleElements: {
        settingsButton: false,
        editButton: false,
        expandButton: true,
        captureButton: true
      }
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the widget still displays &lt;STRONG&gt;Longitude, Latitude&lt;/STRONG&gt; (i.e., X, Y), regardless of what I set in currentPattern.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 10:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/configure-coordinateconversion-widget-to-show-only/m-p/1627133#M7543</guid>
      <dc:creator>alabanu</dc:creator>
      <dc:date>2025-06-26T10:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Configure CoordinateConversion Widget to Show Only XY Format as Lat, Lon (ArcGIS JS API v4.32)</title>
      <link>https://community.esri.com/t5/developers-questions/configure-coordinateconversion-widget-to-show-only/m-p/1627425#M7547</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/485477"&gt;@alabanu&lt;/a&gt;,&amp;nbsp;thanks for posting your question here. You can do this, but you need to handle both the conversion and the reverse-conversion functions. Here is a sample app that you can follow:&lt;BR /&gt;&lt;A href="https://codepen.io/noash/pen/EajrdrB?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/EajrdrB?editors=1000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 18:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/configure-coordinateconversion-widget-to-show-only/m-p/1627425#M7547</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2025-06-26T18:43:20Z</dc:date>
    </item>
  </channel>
</rss>

