HERE Android SDK Developer's Guide

Map Schemes

The HERE Android SDK provides a variety of map appearances for your application to choose from, these appearances are otherwise known as map schemes.

Map.Scheme defines visualization types that the HERE map service supports. There is a variety of map schemes available that can be used, based on the specific use case:
  • Explore - Normal, Terrain, Pedestrian
  • Overlays - Grey, Transit, Reduced, Traffic
  • Navigation - Car Navigation, Car Navigation with Traffic, Maneuver
You can set a desired scheme by making a call to the Map.setMapScheme(String) method.

Examples of Map Scheme

All available schemes are defined as constant strings in the Map.Scheme class. The following are examples of string values that you can use to set the map scheme in your application:

Figure 1. Scheme.NORMAL_DAY
Figure 2. Scheme.SATELLITE_DAY
Figure 3. Scheme.HYBRID_DAY
Figure 4. Scheme.TERRAIN_DAY
Note: Your application also needs to switch to one of the following schemes if you enable traffic information with Map.setTrafficInfoVisible(true). These map schemes are otherwise identical to their non-traffic counterparts.
  • Scheme.HYBRID_TRAFFIC_DAY
  • Scheme.HYBRID_TRAFFIC_NIGHT
  • Scheme.NORMAL_TRAFFIC_DAY
  • Scheme.NORMAL_TRAFFIC_NIGHT
Note: In addition to the preceding schemes, Scheme.SATELLITE_NIGHT is also available. It is similar to Scheme.SATELLITE_DAY, but the color of the sky is different when the map is tilted.
Figure 5. Scheme.HYBRID_DAY_TRANSIT
Figure 6. Scheme.NORMAL_NIGHT_TRANSIT
Figure 7. Scheme.NORMAL_NIGHT
Figure 8. Scheme.NORMAL_DAY_TRANSIT

Navigation Schemes

The HERE SDK also offers the following schemes to be used with navigation:

  • Scheme.CARNAV_DAY
  • Scheme.CARNAV_NIGHT
  • Scheme.CARNAV_HYBRID_DAY
  • Scheme.CARNAV_HYBRID_NIGHT
  • Scheme.CARNAV_TRAFFIC_DAY
  • Scheme.CARNAV_TRAFFIC_NIGHT
  • Scheme.CARNAV_TRAFFIC_HYBRID_DAY
  • Scheme.CARNAV_TRAFFIC_HYBRID_NIGHT
  • Scheme.CARNAV_DAY_GREY
  • Scheme.CARNAV_NIGHT_GREY
  • Scheme.PEDESTRIAN_DAY
  • Scheme.PEDESTRIAN_NIGHT
  • Scheme.PEDESTRIAN_DAY_HYBRID
  • Scheme.PEDESTRIAN_NIGHT_HYBRID
  • Scheme.TRUCKNAV_DAY
  • Scheme.TRUCKNAV_NIGHT
  • Scheme.TRUCKNAV_HYBRID_DAY
  • Scheme.TRUCKNAV_HYBRID_NIGHT

If you are using a pedestrian navigation scheme, it is recommended that you also enable the pedestrian features using the Map class. See Maps for more details.

Note: The HERE SDK does not automatically switch map schemes during navigation mode. Before starting car or pedestrian navigation, be sure to save the current map scheme and switch to the appropriate navigation map scheme. When navigation has completed, your application code should switch back to the previously saved scheme.

For more information on how to perform navigation operations, see Turn-by-Turn Navigation for Walking and Driving.

Setting a Map Scheme

The following example demonstrates how to retrieve available map schemes and change the current map scheme:

// Array containing string values of all available map schemes
List<String> schemes = map.getMapSchemes();
// Assume to select the 2nd map scheme in the available list
map.setMapScheme(schemes.get(1));

Listening for MapScheme Change Events

Applications can listen for map scheme change events by way of the Map.OnSchemeChangedListener:

map.addSchemeChangedListener(new OnSchemeChangedListener() {
  @Override
  public void onMapSchemeChanged(String mapScheme) {
    // react to map scheme change here
  }
});

For information on the fleet map scheme, see Mobile Asset Management.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.