コード例 #1
0
		public void Unregister(GoogleMapsView map)
		{
			if (_activeMaps.Contains(map))
			{
				_activeMaps.Remove(map);
			}
		}
コード例 #2
0
    public void OnShow()
    {
        Dismiss();

        _map = new GoogleMapsView(CreateMapViewOptions());
        _map.Show(RectTransformToScreenSpace(rect), OnMapReady);
    }
コード例 #3
0
		public void Register(GoogleMapsView map)
		{
			if (!_activeMaps.Contains(map))
			{
				_activeMaps.Add(map);
			}
		}
コード例 #4
0
 void Dismiss()
 {
     if (_map != null)
     {
         _map.Dismiss();
         _map = null;
     }
 }
コード例 #5
0
    /// <summary>
    /// Performs a chain of operations to prepare a map, before it's shown
    /// </summary>
    public override void InitializeMap()
    {
        // Perform a basic configuration, and make a map of it
        GoogleMapsOptions options = CreateMapViewOptions();

        map = new GoogleMapsView(options);

        map.Show(RectTransformToScreenSpace(rect), OnMapReady);
    }
コード例 #6
0
    void Start()
    {
        var cameraPosition = new CameraPosition(
            new LatLng(-15.7964211f, -47.8898464f), 11, 0, 0);
        var options = new GoogleMapsOptions()
                      .Camera(cameraPosition);

        _map = new GoogleMapsView(options);
        _map.Show(RectTransformToScreenSpace(rect), OnMapReady);
    }
コード例 #7
0
ファイル: LoadingTest.cs プロジェクト: bi92/nanZo
 void InitMap()
 {
     map = new GoogleMapsView(CreateMapViewOptions());
     map.Show(RectTransformToScreenSpace(MapView), OnMapReady);
 }
コード例 #8
0
        static void SetApiKeyOnlyIOS()
        {
            const string apiKey = "YOUR_API_KEY_HERE";

            GoogleMapsView.SetIosApiKey(apiKey);
        }