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
The 2D Compass widget is in API 4.0. It can't be used in WAB 2D apps which currently use API 3.x.
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.
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?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.