How to disable map rotation on runtime 100.1

1389
2
11-30-2017 04:26 PM
ShengchuanZhou
New Contributor II

Hi guys,

I am working on a map App using runtime 100.1 for iOS recently, and I am looking for a way to disable map rotation for two finger twist gesture. Because the map views always be rotated a little bit when i use pinch-in and pinch-out gestures for map zooming, and it's really disturbing.

As the api guide indicated, If you want to allow the two finger twist gesture to rotate the map the enable the allowInteractiveRotation property on AGSMapView. So it seems there is a property can do it, but i can not find that property in AGSMapView class.

Are there any suggestions? I really appreciate your help.

Thanks!

0 Kudos
2 Replies
Nicholas-Furness
Esri Regular Contributor

You should use the "rotateEnabled" property of the AGSMapView's "interactionOptions".

Seems the Guide documentation is out of date. We'll get it updated.

Hope that helps.

Nick.

0 Kudos
ShengchuanZhou
New Contributor II

Problem solved! Thank you!