Search code examples
mapsarcgisarcgis-js-apicustom-widgets

Is it possible to add a custom widget to switch between 2D and 3D view in Web Appbuilder Developer Edition?


I am new to the application development community and I am trying to customize an application created with ArcGIS Web AppBuilder to switch between 2D and 3D views. I have published 2 maps on my ArcGIS Portal, a 2D and a 3D from the same study area. The switch between the two views is easily done using ArcGIS API for JS, but this means that I will have to add all other widgets by myself. As I don't have the time to learn this from scratch, I have built an application using Web AppBuilder and have added one custom widget to it. However, I cannot make the widget work at all and I was wondering if my idea was even possible. Web AppBuilder only works with one map (2D OR 3D), which makes me doubt that I could insert the link to the 3D map at all in my Widget.js file. Did anyone try to do this?


Solution

  • Update on my issue: It seems that adding a custom widget to switch between views in WAB (developer's edition) is not currently possible.

    I've received an answer on my post on the Esri Geonet forum: https://community.esri.com/thread/223878-s-it-possible-to-add-a-custom-widget-to-switch-between-2d-and-3d-view-in-web-appbuilder-developer-edition

    "The reason is that WAB 2D currently uses the 3.x API and 3D uses 4.x. The sample in the 4.x samples can switch because it only uses the 4.x API. WAB has yep to solely uses the 4.x API due to all the features that are yet to be implemented. Once the APIs have reached parity then this will be possible."