Planar mode (versus Spherical)

2240
2
Jump to solution
07-31-2015 09:41 AM
ChristianMorin
New Contributor III

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)"

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
YannCabon
Esri Contributor

Hi Christian,

planar mode is not yet supported nor finished.

It will be available at beta2.

thanks!

View solution in original post

0 Kudos
2 Replies
YannCabon
Esri Contributor

Hi Christian,

planar mode is not yet supported nor finished.

It will be available at beta2.

thanks!

0 Kudos
ChristianMorin
New Contributor III

Thanks Yann,

   I'm looking forward to trying it in beta 2.

Cheers,

Christian.

0 Kudos