keyByPolylineId function

Map<PolylineId, Polyline> keyByPolylineId(
  1. Iterable<Polyline> polylines
)

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>();
}