Skip to content

Map Style

Show a different map style.

Map Style

Use case

Change the map style to a more suitable one.

How to use the sample

First, get an API key token, see the Getting Started guide.

Download the Maps & Navigation SDK for C++ archive file for Linux or Windows

When you open the sample, you’ll be viewing the scene from above. The map style will be different than in the previous examples.

How it works

  1. Create a MapViewListener, OpenGLContext and MapView.

  2. Using a progress listener instruct the ContentStore to bring the ContentList. Wait for the operation to finish.

  3. Get the ContentList of styles.

  4. If unavailable locally, download the missing styles.

  5. Set the desired style in the preferences of the MapView.

C++ Examples

Maps SDK for C++ Examples can be downloaded or cloned with Git