Select to view content in your preferred language

Coordinate Conversion component setting currentLocation doesn't work properly

330
3
01-27-2026 03:54 AM
SvitlanaBilan
Occasional Contributor

Hi, after migrating to the new `@arcgis/map-components`, I noticed an issue with the **Coordinates Conversion** component.

We use this component to select a point on the map. If a point was initially selected, it should be restored after the map is initialized.

After the migration, the initially set `currentLocation` is displayed incorrectly. Instead of showing a proper DMS value, it is rendered as:

`77.037° 38.907' ", ° ' "`

This suggests that the degrees/minutes/seconds values are not being correctly parsed or formatted during initialization.

SvitlanaBilan_0-1769514692039.png

    <arcgis-scene
      basemap="topo-vector"
      center="-118.836, 36.487"
      zoom="10"
      ground="world-elevation"
      camera-tilt="10">
      <arcgis-zoom slot="top-right"></arcgis-zoom>
      <arcgis-coordinate-conversion
        slot="bottom-left"
        mode="capture"
        hide-settings-button multiple-conversions-disabled></arcgis-coordinate-conversion>
    </arcgis-scene>
    <script type="module">
      const coordinateConversion = document.querySelector("arcgis-coordinate-conversion");
      await coordinateConversion.componentOnReady();
      const toRemove = coordinateConversion.formats.filter(format => format.name !== 'dms');
			coordinateConversion.formats.removeMany(toRemove);
      coordinateConversion.currentLocation = { x: 77.0369, y: 38.9072, spatialReference: { wkid: 4326 }};
    </script>

 

Tags (1)
0 Kudos
3 Replies
Noah-Sager
Esri Regular Contributor

Hi @SvitlanaBilan, thanks for posting here. I'm seeing some issues as well, we'll investigate and update this thread as appropriate.

Noah-Sager
Esri Regular Contributor

Hi @SvitlanaBilan, good news! We found the cause of the issue, and this will be resolved at the next release (expected in late February or early March).

SvitlanaBilan
Occasional Contributor

Great, thanks for the reply and confirmation 🙂