Xamarin.forms.googlemaps: Decouple 'IsShowingUser' from displaying the Location Button

Created on 9 Feb 2017  路  4Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

FEATURE REQUEST

SUMMARY

I'd vote for decoupling showing the 'LocationButton' from the 'IsShowingUser' property and instead introduce another Property for that. (e.g. 'IsShowingUserPositionButton')

DETAILS

In iOS Renderer:

void UpdateIsShowingUser()
{
((MapView)Control).MyLocationEnabled = ((Map)Element).IsShowingUser;
((MapView)Control).Settings.MyLocationButton = ((Map)Element).IsShowingUser;
}

In my use case I very much want to show the user's location on the map - but NOT the button (i have my own Button for that properly handling requesting permission at the right time etc.)

PLATFORMS

which platform do you want?

  • [x] Android
  • [x] iOS
  • [ ] UWP
enhancement

Most helpful comment

Hi @woellij ,
Thanks for your requesting.

I have a plan to #8 which has separated each settings.

Your suggestion IsShowingUserPositionButton is same as UiSetting.isMyLocationButtonEnabled.
But I should make Map.MyLocationEnabled which can only enable/disable the "blue marker" shown.

All 4 comments

Hi @woellij ,
Thanks for your requesting.

I have a plan to #8 which has separated each settings.

Your suggestion IsShowingUserPositionButton is same as UiSetting.isMyLocationButtonEnabled.
But I should make Map.MyLocationEnabled which can only enable/disable the "blue marker" shown.

+1

I released Xamarin.Forms.GoogleMaps 2.1.0-beta2 that contains #8 .

You can use separated twice properties.

  • map.UiSettings.MyLocationButtonEnabled - location button
  • map.MyLocationEnabled - tracking location

Don`t working.
map.MyLocationEnabled = true - the "blue marker" disable

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LukasThijs picture LukasThijs  路  7Comments

prajithmp picture prajithmp  路  6Comments

galadril picture galadril  路  3Comments

talhaa91 picture talhaa91  路  4Comments

JKennedy24 picture JKennedy24  路  6Comments