Dear users,
I use in ArcGIS Maps SDK 4.29 "projection" to reproject coordinates:
require([
"esri/geometry/projection"
], function(projection) { ....
I do it in that way:
projection.load().then(function() {
var punkt2=projection.project(punkt1, cs2);
alert ("In Function: "+punkt2.x);
});
alert ("Ausserhalb Function: "+punkt2.x);
Within the function it works fine. "alert ("In Function: "+punkt2.x);"
shows the correct coordinate value I want to have.
But outside the function: How can I get the value then? I `m looking for a way to get the value back to use it outside the function.
Could anybody help?