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.
<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>
Hi @SvitlanaBilan, thanks for posting here. I'm seeing some issues as well, we'll investigate and update this thread as appropriate.
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).
Great, thanks for the reply and confirmation 🙂