summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Maps.UWP/FormsMaps.cs
blob: ee6313556410f08420f1f1ba7c3a986a9d47cdc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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();
		}
	}
}