зеркало из https://github.com/DeGsoft/maui-linux.git
26 строки
435 B
C#
26 строки
435 B
C#
using Xamarin.Forms.Maps.UWP;
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |