Exemple #1
0
 public void OnMapReady(MapboxMap p0)
 {
     p0.SetStyle(Style.MapboxStreets, new MyOnStyleLoaded(() =>
     {
         p0.AddOnMapLongClickListener(this);
         map = new NavigationMapboxMap(mapView, p0);
         map.SetOnRouteSelectionChangeListener(this);
         map.UpdateLocationLayerRenderMode(RenderMode.Compass);
         InitializeLocationEngine();
     }));
 }
 public void OnMapReady(MapboxMap p0)
 {
     mapboxMap = p0;
     mapboxMap.AddOnMapLongClickListener(this);
     mapboxMap.SetStyle(Style.MapboxStreets, new MapboxMapSetStyleListener((style) =>
     {
         InitializeLocationEngine();
         InitializeLocationComponent(style);
         InitMapRoute();
         FetchRoute();
     }));
 }
Exemple #3
0
        public void OnMapReady(MapboxMap p0)
        {
            var mapboxMap = p0;

            this.mapboxMap = mapboxMap;
            mapboxMap.SetStyle(styleCycle.GetStyle(), new MapboxMapSetStyleListener((style) =>
            {
                InitializeLocationComponent(mapboxMap);
                navigationMapRoute = new NavigationMapRoute(null, mapView, mapboxMap);
                mapboxMap.AddOnMapLongClickListener(this);
                Snackbar.Make(mapView, "Long press to select route", Snackbar.LengthShort).Show();
            }));
        }