Returns a waypoint's POI name, otherwise its free-form address, otherwise nothing, as RoutingModule labels it when WaypointLabelConfig.title is not a function.
// "Home" at the finish, the default label elsewhereroutingModule.applyConfig({ waypoints: { label: { title: (waypoint) => waypoint.properties.indexType === 'finish' ? 'Home' : (buildWaypointTitle(waypoint) ?? ''), }, },}); Copy
// "Home" at the finish, the default label elsewhereroutingModule.applyConfig({ waypoints: { label: { title: (waypoint) => waypoint.properties.indexType === 'finish' ? 'Home' : (buildWaypointTitle(waypoint) ?? ''), }, },});
Returns a waypoint's POI name, otherwise its free-form address, otherwise nothing, as RoutingModule labels it when WaypointLabelConfig.title is not a function.