Polygon Marker¶
Show a collection of polygons on map.

Use case¶
Present a collection of polygons 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 polygons will be visible as well.
How it works¶
Create a
MapViewListener
,OpenGLContext
andMapView
.Create a
MarkerCollection
of typePolygon
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.