Overview UI

Display an overview of a route at anytime

Before you can do this, you need a TGRoute . Here's how to get one.

Display a route overview using a pre-built activity:

TGLauncher.startMapOverview(CONTEXT, route.getRouteId());

Display a route overview using a fragment:

FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
transaction.replace(R.id.fl_overview_fragment_holder,
    TGRouteOverviewSupportFragment.newInstance(route.getRouteId()), TGRouteOverviewSupportFragment.TAG);
transaction.commit();
Check out the Android Reference App to see this example in action.