How to pass mapview instance to sceneview

816
7
12-10-2019 03:20 AM
GirishchandraY
New Contributor II

Hello Team,

I am currently using mapview for 2D maps with tiledlayers.

But If I want to switch view to sceneview on click of a button and pass existing layers in mapview to sceneview in CPP widgets.

I don't see any method for the same.

Can anyone suggest something.

Thank you,

Tags (1)
0 Kudos
7 Replies
LucasDanzinger
Esri Frequent Contributor

There aren't any convenience APIs available to convert a 2D map to a 3D scene. You'll need to create new layer instances and add those to a new scene.

0 Kudos
GirishchandraY
New Contributor II

When I tried to create new tiledLayer instance of wgs84 projection on sceneview it is not being displayed...What could be reason for this...because same layer I can see in mapview

0 Kudos
LucasDanzinger
Esri Frequent Contributor

SceneView supports Web Mercator by default. If you set the scene view tiling scheme to WGS 84 first, does it work? Scene Class | ArcGIS for Developers 

0 Kudos
GirishchandraY
New Contributor II

How to set tiling scheme to scene as I don't see any option there.

0 Kudos
LucasDanzinger
Esri Frequent Contributor
scene->setSceneViewTilingScheme(SceneViewTilingScheme::Geographic);‍
GirishchandraY
New Contributor II

Do we have COPY function for sceneview in QT similar to Java

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Not yet. That is something we want to add but haven't yet.

0 Kudos