addMapPolylines method - MapScene class - mapview library - Dart API
addMapPolylines
addMapPolylines abstract method
- List<
MapPolyline> mapPolylines
Adds map polylines to this map scene.
Note: Due to technical limitations using the MapPolyline API to add a very large number of polylines (especially 1000+ also depending on their complexity) is not recommended. Adding this many polylines 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.
mapPolylinesThe map polylines to be added to this map scene.
Implementation
void addMapPolylines(List<MapPolyline> mapPolylines);