зеркало из https://github.com/DeGsoft/maui-linux.git
32 строки
498 B
C#
32 строки
498 B
C#
#if WINDOWS_UWP
|
|
using Xamarin.Forms.Maps.UWP;
|
|
|
|
#else
|
|
using Xamarin.Forms.Maps.WinRT;
|
|
|
|
#endif
|
|
|
|
namespace Xamarin
|
|
{
|
|
public static class FormsMaps
|
|
{
|
|
static bool s_isInitialized;
|
|
|
|
internal static string AuthenticationToken { get; set; }
|
|
|
|
public static void Init()
|
|
{
|
|
if (s_isInitialized)
|
|
return;
|
|
GeocoderBackend.Register();
|
|
s_isInitialized = true;
|
|
}
|
|
|
|
public static void Init(string authenticationToken)
|
|
{
|
|
AuthenticationToken = authenticationToken;
|
|
|
|
Init();
|
|
}
|
|
}
|
|
} |