wxr
2019-12-06 9aa32bd5ed75d54b2141b6c91f163d43216a3643
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
33
34
35
36
37
38
39
40
41
using System;
using Shared.IOS.TBL;
 
namespace Shared
{
    public static class GDMapKit
    {
        public static void Show(Action<double , double, int, string> action, string titleName = "", bool bSetHome = false, double mLatitude = 0.0, double mLongitude = 0.0, int mRadius = 500)
        {
 
        
            GDMapViewController mGDMapViewController = new GDMapViewController();
 
            mGDMapViewController.TitleName = titleName;
            mGDMapViewController.MSaveButtonCallBack += (mmLatitude, mmLongitude, mmRadius, addressName) =>
            {
                action?.Invoke(mmLatitude, mmLongitude, mmRadius, addressName);
            };
 
 
            Application.currentVC.NavigationController.PushViewController(mGDMapViewController, true);
 
 
            if (bSetHome && (mLatitude != 0.0) && (mLongitude != 0.0))
            {
                //mGDMapViewController.MRadius = mRadius;
                mGDMapViewController.SetmHomeCoordinate(mLatitude, mLongitude, mRadius);
                Console.WriteLine("GDMapKitShow: " + mLongitude + "-" + mLatitude);
            }
 
        }
 
 
        public static void setGDApiKey(string KEY)
        {
   
            AMapServices.SharedServices.ApiKey = KEY;
 
        }
    }
}