3D development guide

ArcGIS API for JavaScript

Web AppBuilder developer edition 2.1 is built on two versions of ArcGIS API for JavaScript: 3.17 and 4.0. The builder and the 2D app are built on version 3.17, and the 3D app is built on version 4.0. There is one exception; because the setting page runs in the builder, the 3D widget setting page is built on 3.17.

3D widgets

The 3D widgets are very similar to the 2D widgets. Consequently, you can follow the 2D widget development guide to create 3D widgets, with the following exceptions:

  • Because the map property uses sceneView, use this.sceneView to access the scene view in your widget.
  • Use the stemapp3d/widgets folder for your 3D widgets.
  • In the widget manifest.json file, set “platform”: “HTML3D” and "3D": true..
  • Use ArcGIS API for JavaScript 4.0 to develop 3D widgets at run time, but use 3.17 to create the 3D widgets setting page in the builder.

3D themes

The 3D themes are very similar to the 2D themes. Consequently, you can follow the 2D theme development guide to create 3D themes, with the following exceptions:

  • Because the map property uses sceneView, use this.sceneView to access the scene view in your widget and panels.
  • Save your theme in the stemapp3d/themes folder.
  • In the theme manifest.json file, set “platform”: “HTML3D”.