Custom widget for 2D and 3D manifest config

279
2
Jump to solution
06-14-2018 12:14 AM
VictorTey
Esri Contributor

Hi, I have a custom widget that works for both 2D and 3D. However, every time it is deployed, we have to change the configuration in manifest.json

platform: HTML3D or HTML for 2D

Is it possible to configure it such that a single widget will work for BOTH 2D and 3D? 

something like 

platform: HTML3D, HTML

Any workarounds will also be appreciated

Thanks

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Victor,

  Looking in the WidgetManager.js they have this hard coded for one or the other:

if(window.appInfo.appType === "HTML3D"){

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Victor,

  Looking in the WidgetManager.js they have this hard coded for one or the other:

if(window.appInfo.appType === "HTML3D"){
VictorTey
Esri Contributor

Indeed it did not look possible. Thanks

0 Kudos