mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 05:47:28 +02:00
Version 3.0.362
This commit is contained in:
parent
cba4da9357
commit
4ff3307997
128 changed files with 3954 additions and 3193 deletions
|
@ -43,7 +43,6 @@
|
|||
WidthRequest="320"
|
||||
HeightRequest="800"
|
||||
x:Name="MyMap"
|
||||
MyLocationEnabled="True"
|
||||
MapType="Street">
|
||||
<maps:Map.Behaviors>
|
||||
<bindings:BindingPinsBehavior Value="{Binding Pins}"/>
|
||||
|
|
|
@ -31,9 +31,6 @@ namespace TINK.View.Map
|
|||
public MapPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
MyMap.UiSettings.MyLocationButtonEnabled = true;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -211,6 +208,24 @@ namespace TINK.View.Map
|
|||
isInitializationStarted = false;
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Log.ForContext<MapPage>().Verbose("Setting map settings.");
|
||||
|
||||
//show current user position (blue dot) and enable button for centering map manually.
|
||||
MyMap.UiSettings.MyLocationButtonEnabled = MapPageViewModel.IsLocationPermissionGranted;
|
||||
MyMap.IsShowingUser = MapPageViewModel.IsLocationPermissionGranted;
|
||||
|
||||
//disable +/- buttons
|
||||
MyMap.UiSettings.ZoomControlsEnabled = false;
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
Log.ForContext<MapPage>().Verbose("Setting map settings failed. {Exception}", exception);
|
||||
isInitializationStarted = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue