Xamarin.forms.googlemaps: [UWP]HasRotateEnabled property

Created on 18 Oct 2016  路  7Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

Firstly, many thanks for this library, it's really useful and stable, nice high quality code.

My request, if possible, is for a HasRotationEnabled property, which if set to false would disable the two-finger twist gesture to rotate the map.

I haven't really found rotation to be useful, and there's no way that I can find to get the map exactly straight again.

Thanks again!

enhancement welcomecontribute

Most helpful comment

Exactly, @dreamsystems!

I plan to Add Map.HasRotationEnabled as bool that wrapped setRotateGesturesEnabled and rotateGestures.

This is very easy way.
I hope someone send me Pull-request鉂わ笍 .

All 7 comments

Rotate gesture can be disabled with something like this in android :

GoogleMap.getUiSettings.setRotateGesturesEnabled(false);
https://developers.google.com/maps/documentation/android-api/controls

and on iOS

GMSMapView.settings.rotateGestures = false;
https://developers.google.com/maps/documentation/ios-sdk/reference/interface_g_m_s_u_i_settings

This can accelerate your research.

Exactly, @dreamsystems!

I plan to Add Map.HasRotationEnabled as bool that wrapped setRotateGesturesEnabled and rotateGestures.

This is very easy way.
I hope someone send me Pull-request鉂わ笍 .

Many thanks to you both, I wasn't expecting such quick and perfect responses

Thanks to you. I learn a lot these days, I hope to be ready soon to contribute to projects like this.

Current status:

TASKS

  • [x] Android implementation
  • [x] iOS implementation
  • [ ] UWP implementation
  • [ ] Add samples

I released v1.8.0 that contained it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ViktorBylbas picture ViktorBylbas  路  4Comments

Gavrielo picture Gavrielo  路  3Comments

JKennedy24 picture JKennedy24  路  6Comments

prajithmp picture prajithmp  路  6Comments

hieumoscow picture hieumoscow  路  5Comments