Example #1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method
            BMKMapManager manager = new BMKMapManager();

            //manager.SetValueForKey();
            BMKMapManager.SetCoordinateTypeUsedInBaiduMapSDK(BMKCoordType.BMK_COORDTYPE_BD09LL);
            bool result = manager.Start("Dy3aGkoZZ6jx89Z9p7Co1Arz5gVeqg6G", new MyBMKGeneralDelegate());

            // create a new window instance based on the screen size
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            var cvc = new CustomViewController();

            var navController = new UINavigationController(cvc);

            Window.RootViewController = navController;

            Window.MakeKeyAndVisible();
            return(true);
        }
Example #2
0
        public static void Init(string APIKey)
        {
            BMKMapManager mgr = new BMKMapManager();

            mgr.Start(APIKey, new GeneralDelegate());
        }