coordinateFormatter fail when use DMS

61
1
3 weeks ago
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 Reply
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