Disable rotation events but rotate by script

62
0
03-22-2019 02:27 AM
RomanKönig
New Contributor III

In JS API 4.9 it was possible to disable the rotation events on a MapView by setting the rotationEnabled constraint to false. This resulted in the user not being able to rotate the map, but it was still possible to change the rotation by script.

In 4.10 setting the rotationEnabled constraint prevents setting the rotation by script also.

Is this a bug or as designed? 
Especially on (smaller) mobile devices users are often accidentially rotating the map, e.g. on zooming.

How can we prevent the user rotating the map but being able to still set the mapview rotation property?

0 Kudos
0 Replies