How can I return the value of a deferred method in javascript
问题 I am trying to write a module which projects coordinates into a new Spatial Reference, but the javascript syntax has beaten me once again. This is how the module currently looks like: define(["esri/geometry/Point", ...], function(Point, SpatialReference, ...){ var gmsvc = new GeometryService("http://server/maps/rest/services/Utilities/Geometry/GeometryServer"); /*...*/ return { /*...*/ //transforms the current point on the map to the new wkid transformCoordinates: function(point, newWkId) {