Select to view content in your preferred language

Add 2D compass to App

2148
3
Jump to solution
07-19-2016 10:46 PM
CPoynter
Frequent Contributor

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

0 Kudos
1 Solution

Accepted Solutions
LemaoWu
Esri Contributor

The 2D Compass widget is in API 4.0. It can't be used in WAB 2D apps which currently use API 3.x.

View solution in original post

3 Replies
LemaoWu
Esri Contributor

The 2D Compass widget is in API 4.0. It can't be used in WAB 2D apps which currently use API 3.x.

CPoynter
Frequent Contributor

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?

0 Kudos
LemaoWu
Esri Contributor

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.

0 Kudos