Exemple #1
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            MapboxAccountManager.Start(this, "pk.eyJ1IjoiZmNjbWFuYWdlbWVudHNvZnR3YXJlIiwiYSI6ImNpb3BzMnR6ODAwNm50d2x6eWl4dTJsM3oifQ.NG-ngOgssSz0vL-yiFIRew");
            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
Exemple #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            MapboxAccountManager.Start(this, Resources.GetString(Resource.String.access_token));

            SetContentView(Resource.Layout.Main);

            mapView = FindViewById <MapView>(Resource.Id.mapView);
            //mapView.StyleUrl = Style.MapboxStreets;
            mapView.OnCreate(bundle);

            mapView.GetMapAsync(this);
        }