coordinateFormatter fail when use DMS

197
3
Jump to solution
04-19-2021 07:26 AM
geopamplona
New Contributor II

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)
	});

  });

 

 

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
UndralBatsukh
Esri Regular Contributor

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

View solution in original post

0 Kudos
3 Replies
UndralBatsukh
Esri Regular Contributor

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

0 Kudos
UndralBatsukh
Esri Regular Contributor

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

View solution in original post

0 Kudos
geopamplona
New Contributor II

Thanks !

0 Kudos