keyByGroundOverlayId function

Map<GroundOverlayId, GroundOverlay> keyByGroundOverlayId(
  1. Iterable<GroundOverlay> groundOverlays
)

Converts an Iterable of GroundOverlay to a Map of GroundOverlayId -> GroundOverlay.

Implementation

Map<GroundOverlayId, GroundOverlay> keyByGroundOverlayId(
  Iterable<GroundOverlay> groundOverlays,
) {
  return keyByMapsObjectId<GroundOverlay>(
    groundOverlays,
  ).cast<GroundOverlayId, GroundOverlay>();
}