Widget for Rotation of map in our 2D web Maps - compass

349
0
08-09-2022 11:21 PM
Aneel_Kumar_M
New Contributor III

Hello,

can anyone help me,

Our intention is to provide the rotation of map in our 2D web Maps. Is there already available ready to use widget ? so that I can download and use it in my WAB dev edition?

I want to add or modify the compass code for 2D maps as shown in below script

Aneel_Kumar_M_0-1660112352247.png

 

https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-compass-2d 

Our intention is to provide our end users, the rotation of map in our 2D web Maps

if possible, where can I set the

view.constraints = { rotationEnabledtrue}; "

Aneel_Kumar_M_1-1660112351619.png

 https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#rotation 

please advise and help, thank you,

thank you

0 Replies