Initial Exent changes at 3.7?

530
3
Jump to solution
10-03-2013 11:12 AM
DavidColey
Frequent Contributor
Hi all,

I'm noticing an exent shift upon map load event at the 3.7 api that was not present at the 3.6 api.  For example, the exent:

  var extentWM = new Extent({
   "xmin": -9223319.21340548,
   "ymin": 3108650.4632008513,
   "xmax": -9102472.271686783,
   "ymax": 3178361.032996838,
   "spatialReference" : {
    "wkid" : 102100
   }
  });

seems to shift my map some 40 km south of where it should be on load. A tiled and dynamic map service are both configured as web mercator.  If anyone has any ideas, that would be great. 

Thanks,
David
0 Kudos
1 Solution

Accepted Solutions
DavidColey
Frequent Contributor
Hi all-
For those that are interested, it would appear that the parseOnLoad option must be set within the dojoConfig section when configured for asynchronous module loading in your index.html at 3.7:

   <script>
      var dojoConfig = {
        async : true,
        parseOnLoad : true
      };
    </script>

As such, I would consider this thread answered
David

View solution in original post

0 Kudos
3 Replies
DavidColey
Frequent Contributor
Hi all-
For those that are interested, it would appear that the parseOnLoad option must be set within the dojoConfig section when configured for asynchronous module loading in your index.html at 3.7:

   <script>
      var dojoConfig = {
        async : true,
        parseOnLoad : true
      };
    </script>

As such, I would consider this thread answered
David
0 Kudos
KenBuja
MVP Esteemed Contributor
You should mark your own post as the correct answer to help users who may be searching on this question.
0 Kudos
DavidColey
Frequent Contributor
Ah, thanks.  Should be all set.
0 Kudos