updateLegend method

Future updateLegend(
  1. List<OsmChange> amenities, {
  2. Locale? locale,
  3. int maxItems = 6,
})

Updates legend colors for amenities. The list should be ordered closest to farthest. The function tries to reuse colors. The locale is needed to translate labels.

Implementation

Future updateLegend(List<OsmChange> amenities,
    {Locale? locale, int maxItems = 6}) async {
}