Hi,
I using "coordinateFormatter" to translate string coordinates to point.
When try convert coordinates to point i get null. Syntax of coordinates seem correct.
I using:
require([
"esri/geometry/coordinateFormatter"
], function(coordinateFormatter
) {
coordinateFormatter.load().then(function() {
var point = coordinateFormatter.fromLatitudeLongitude("55°56′39″N 3°09′43″W");
console.log(point)
});
});
Solved! Go to Solution.
Hi there,
The fix for this issue will be included at version 4.20 which will be released late June, 2021.
You can test the fix on our `next` version. Here is a test app that shows the new supported characters for CoordinateFormatter.fromLatitudeLongitude: https://codepen.io/U_B_U/pen/XWMdPPZ
-Undral
Hi there,
Thanks for reporting this issue. We have created an issue for this and I will be sure to update you once we address it. In meantime, you can replace degree character/° to * as shown below: This should work.
`55*56'39"N 3*09'43"W`
-Undral
Hi there,
The fix for this issue will be included at version 4.20 which will be released late June, 2021.
You can test the fix on our `next` version. Here is a test app that shows the new supported characters for CoordinateFormatter.fromLatitudeLongitude: https://codepen.io/U_B_U/pen/XWMdPPZ
-Undral
Thanks !