Skip to content

Polyline Marker

Show a collection of polylines on map.

Polyline Marker

Use case

Present a collection of polylines on map.

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. A collection of polylines will be visible as well.

How it works

  1. Create a MapViewListener, OpenGLContext and MapView.

  2. Create a MarkerCollection of type Polyline and add the desired coordinates to it.

  3. Set the newly created MarkerCollection in the markers collections of the map view preferences.

  4. Instruct the MapView to center on the area defined by the earlier created MarkerCollection.

  5. Allow the application to run until the map views are fully loaded.

C++ Examples

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