Exemplo n.º 1
0
        public void RouteReady()
        {
            RouteAdapter adapter = new RouteAdapter(mAct, map.Route);

            routeListView.Adapter = adapter;

            if (map.Route.Count > 0)
            {
                int task = map.Route[0].Servicio - 1;
                txt_Task.Text      = Common.Services.Service[task];
                txt_Direction.Text = map.Route[0].Calle + " " + map.Route[0].Numero;
                txt_Detail.Text    = map.Route[0].Comentarios;
            }
        }
Exemplo n.º 2
0
        public async void OnMapReady(GoogleMap googleMap)
        {
            map.Map   = googleMap;
            map.Route = await core.Route(0);

            RouteAdapter adapter = new RouteAdapter(this, map.Route);

            routeListView.Adapter = adapter;

            if (map.Route.Count > 0)
            {
                SetDetallesRuta(map.Route[0]);
            }
            map.Map.SetOnMarkerClickListener(this);
            map.MapReady();
        }