markerDisplayName function
Tên người đọc của một marker (cấu hình config) — một quy tắc cho ô
@ lẫn thẻ lộ trình: properties.name → ariaLabel → nhãn chữ. Điểm
dừng Fleet vẽ bỏ trống label (hoặc mang số thứ tự) còn tên thật ở
properties.name / ariaLabel, nên nhãn toàn số không phải tên. Không có
gì → null (không gợi ý).
Implementation
String? markerDisplayName(Map<String, dynamic> config) {
final p = config['properties'];
final text = mentionMarkerLabelText(config['label']);
return normalizeMentionLabel(p is Map ? p['name'] : null) ??
normalizeMentionLabel(config['ariaLabel']) ??
(text != null && !_digits.hasMatch(text) ? text : null);
}