Accessing jimu.js/SpatialReference/utils.js

3122
1
Jump to solution
03-09-2015 10:29 AM
TimWitt2
MVP Regular Contributor

Hey everybody,

I am trying to use the getCSStr function within the jimu.js/SpatialReference/utils.js to translate a wkid to a wkt.

Here iare the relevant parts:

require(['jimu/SpatialReference/utils'], function(Spatialutils)

var mySpatial = new SpatialReference(4326);
var WKTCurrent = Spatialutils.getCSStr(mySpatial.wkid);

What am I missing?

Tim

0 Kudos
1 Solution

Accepted Solutions
TimWitt2
MVP Regular Contributor

I think i have figured it out. I was missing the following:

Spatialutils.loadResource();

View solution in original post

0 Kudos
1 Reply
TimWitt2
MVP Regular Contributor

I think i have figured it out. I was missing the following:

Spatialutils.loadResource();

0 Kudos