Select to view content in your preferred language

Rotate the Map Without annotation layer

2820
5
08-15-2012 06:43 PM
FrankLin1
Emerging Contributor
Hi~

ArcGIS Runtime SDK for iOS give 'allowRotationByPinching' property to map view to enable 'Two finger Twist' rotate the map.

But if someone knows how can I rotate map without annotation layer ?

Frank Lin
0 Kudos
5 Replies
NimeshJarecha
Esri Regular Contributor
Is annotation layer a dynamic layer or feature layer?

Regards,
Nimesh
0 Kudos
FrankLin1
Emerging Contributor
Is annotation layer a dynamic layer or feature layer?

Regards,
Nimesh


Currently it is a tiled layer. Can it works if it is a dynamic layer or feature layer ?

Tks & Bgds

Frank
0 Kudos
NimeshJarecha
Esri Regular Contributor
If it is a feature layer then, YES. You need set the *angle* of feature layer's symbol. The *angle* should be exactly opposite to self.mapView.rotaionAngle. i.e. if self.mapView.rotaionAngle is 40 then you need to set symbol's angle to -40.

Hope this helps!

Regards,
Nimesh
0 Kudos
FrankLin1
Emerging Contributor
If it is a feature layer then, YES. You need set the *angle* of feature layer's symbol. The *angle* should be exactly opposite to self.mapView.rotaionAngle. i.e. if self.mapView.rotaionAngle is 40 then you need to set symbol's angle to -40.

Hope this helps!

Regards,
Nimesh


I will try to change the service type . Thanks !

Regards.

Frank
0 Kudos
FaisalSabri
Emerging Contributor
Hi ,

i have a problem with "allowRotationByPinching" it was working without any problems , but now it's rotating the View not the map

so I'm getting the attached result ..

[ATTACH=CONFIG]22336[/ATTACH]

can you please help meee 😞
0 Kudos