addMapPolygon abstract method
- MapPolygon mapPolygon
Adds a map polygon to this map scene.
Note: Due to technical limitations using the MapPolygon API to add a very large number of polygons (especially 1000+ also depending on their complexity) is not recommended. Adding this many polygons has a negative impact on the performance leading to stuttering of the app and lower frame rates. To work around this limitation add only map items which are in the current camera viewport. A guide on how to achieve this can be found towards the end of the MapScene class doc.
mapPolygonThe map polygon to be added to this map scene.
Implementation
void addMapPolygon(MapPolygon mapPolygon);