Polyline Marker¶
Show a collection of polylines on map.

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 WindowsWhen you open the sample, you’ll be viewing the scene from above. A collection of polylines will be visible as well.
How it works¶
Create a
MapViewListener
,OpenGLContext
andMapView
.Create a
MarkerCollection
of typePolyline
and add the desired coordinates to it.Set the newly created
MarkerCollection
in the markers collections of the map view preferences.Instruct the
MapView
to center on the area defined by the earlier createdMarkerCollection
.Allow the application to run until the map views are fully loaded.