keyByPolylineId function
Converts an Iterable of Polylines in a Map of PolylineId -> Polyline.
Implementation
Map<PolylineId, Polyline> keyByPolylineId(Iterable<Polyline> polylines) {
return keyByMapsObjectId<Polyline>(polylines).cast<PolylineId, Polyline>();
}