AnsweredAssumed Answered

Planar mode (versus Spherical)

Question asked by chrismorinx on Jul 31, 2015
Latest reply on Jul 31, 2015 by chrismorinx

Hello,

 

I was trying to set the scene to planar by assigning the globeMode property on the SceneView but that generates an "out of stack space" error. Looking at the API code, it seems to be assigning the globleMode property within the globeMode property setter.

 

What is the correct way to set the scene to planar?

 

The only way I got planar to work is by setting globeMode to “planar” (instead of "spherical") in the constructor function in the SceneView.js file that I’m serving locally from the downloaded API but that's not a viable solution.

 

Cheers,

Christian.

 

P.S. below is the error I get when setting the globeMode property:

 

  Error: Out of stack space in domReady callback Error: Out of stack space

   at cache.get (http://js.arcgis.com/4.0beta1/:790:427)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:377)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:398)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:398)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   {

      [functions]: ,

      __proto__: { },

      description: "Out of stack space",

      message: "Out of stack space",

      name: "Error",

      number: -2146828260,

      stack: "Error: Out of stack space

   at cache.get (http://js.arcgis.com/4.0beta1/:790:427)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:377)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:398)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:398)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)"

   }

   "in domReady callback"

   "Error: Out of stack space

   at cache.get (http://js.arcgis.com/4.0beta1/:790:427)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:377)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:398)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)

   at _globeModeSetter (http://js.arcgis.com/4.0beta1/esri/views/SceneView.js:1425:398)

   at m.prototype.set (http://js.arcgis.com/4.0beta1/:749:259)

   at cache.set (http://js.arcgis.com/4.0beta1/:791:218)"

Outcomes