I'd vote for decoupling showing the 'LocationButton' from the 'IsShowingUser' property and instead introduce another Property for that. (e.g. 'IsShowingUserPositionButton')
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.)
which platform do you want?
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 buttonmap.MyLocationEnabled - tracking locationDon`t working.
map.MyLocationEnabled = true - the "blue marker" disable
Most helpful comment
Hi @woellij ,
Thanks for your requesting.
I have a plan to #8 which has separated each settings.
Your suggestion
IsShowingUserPositionButtonis same asUiSetting.isMyLocationButtonEnabled.But I should make
Map.MyLocationEnabledwhich can only enable/disable the "blue marker" shown.