Hi,
I saw the developer coding for "Add the Compass widget to a basic 2D map | ArcGIS API for JavaScript 4.0 ". I have downloaded my App built using Web App Builder, and wish to customize it to incorporate the 2D compass. Where within my downloaded App files, can I modify to add this custom widget?
Regards,
Craig
Solved! Go to Solution.
The 2D Compass widget is in API 4.0. It can't be used in WAB 2D apps which currently use API 3.x.
The 2D Compass widget is in API 4.0. It can't be used in WAB 2D apps which currently use API 3.x.
Thank you for your response. When will WAB 2D apps be available in API 4.0?
How would I incorporate the code into my app, or will the 2D compass become a widget when WAB moves to API 4.0?
Hi Craig,
It's not difficult to implement such a widget if 2D apps are based on API 4.x. Unfortunately the timeline of this upgrade is not clear yet.
If you'd like to write your own widget by using 3.x API, you might need to deal with the map rotation by performing CSS3 transformations on your map.