Polygon Marker
Render a set of polygons on the interactive map.

Polygon Marker
Instantiate a gem::MarkerCollection of the gem::EMarkerType::MT_Polygon type and give it a name. Add at least 3 points for each polygon, where each point contains a coordinate - a latitude, and a longitude, in degrees. Each polygon is a gem::Marker that is added to the marker collection. Set a polygon color by specifying rgba (red green blue alpha) using gem::MarkerCollectionRenderSettings and setting polygonFillColor to a gem::Rgba() value. Add the markers to the map using mapView->preferences().markers().add() and then center the map on the rectangle containing all the added points: mapView->centerOnArea(col.getArea())so they all fit in the viewport.
auto col = gem::MarkerCollection(gem::EMarkerType::MT_Point, "test");
col.add(gem::Marker({
{ 37.78301592799968, -122.44509746977026 },
{ 37.744870145184954, -122.47291375685005 },
{ 37.73182234501792, -122.39309744523473 }
}));
col.add(gem::Marker({
{ 37.7727019264254, -122.42707148907742 },
{ 37.76671282078619, -122.39085098046263 },
{ 37.75083649188404, -122.41110088290034 }
}));
auto styleList = gem::ContentStore().getLocalContentList(gem::EContentType::CT_ViewStyleLowRes);
if (styleList.size() > 0)
{
mapView->preferences().setMapStyle(styleList.at(0));
}
gem::MarkerCollectionRenderSettings markerCollDisplaySettings;
markerCollDisplaySettings.polygonFillColor = gem::Rgba(0, 100, 100, 100);
mapView->preferences().markers().add(col, markerCollDisplaySettings);
mapView->centerOnArea(col.getArea());