protected override void OnCreate(Bundle bundle)
        {
            //TabLayoutResource = Resource.Layout.Tabbar;
            //ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            MapboxAccountManager.GetInstance(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);

            //global::Xamarin.Forms.Forms.Init(this, bundle);

            //LoadApplication(new App());

            MarkerOptions options = new MarkerOptions()
                                    .SetTitle("Hello")
                                    .This <MarkerOptions>();

            MarkerViewOptions viewOptions = new MarkerViewOptions()
                                            .InvokeTitle("Hello")
                                            .This <MarkerViewOptions>();
        }
Example #2
0
        protected override void OnCreate(Bundle bundle)
        {
            //TabLayoutResource = Resource.Layout.Tabbar;
            //ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            MapboxAccountManager.GetInstance(this, Resources.GetString(Resource.String.access_token));

            SetContentView(Resource.Layout.Main);
            System.Diagnostics.Debug.WriteLine("===========" + Com.Mapbox.Mapboxsdk.BuildConfig.MAPBOX_SDK_VERSION + "   " + Com.Mapbox.Mapboxsdk.BuildConfig.MAPBOX_VERSION_STRING + "   " + Com.Mapbox.Mapboxsdk.BuildConfig.MAPBOX_SDK_IDENTIFIER);
            mapView = FindViewById <MapView>(Resource.Id.mapView);
            mapView.OnCreate(bundle);
            mapView.GetMapAsync(this);
        }