updateLegend method
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 {
}