Can I lock the rotation in the 2D view? I want the map always to be horizontal.
Thanks Mike,
I expected to have a poperty like "lockRotation" = true or something like this in 4.0. Because I think in 2D maps rotation would be confusing for many users.
Thanks for your reply!
There may be a "cleaner" way in beta 4.0, but you could watch the MapView's rotation property and handle it there:
var myRotateWatcher = myMapView.watch('rotation', function (evt) {
myMapView.rotation = 0; // Ignore map rotation
});
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.