keyTileOverlayId function

Map<TileOverlayId, TileOverlay> keyTileOverlayId(
  1. Iterable<TileOverlay> tileOverlays
)

Converts an Iterable of TileOverlay in a Map of TileOverlayId -> TileOverlay.

Implementation

Map<TileOverlayId, TileOverlay> keyTileOverlayId(
    Iterable<TileOverlay> tileOverlays) {
  return keyByMapsObjectId<TileOverlay>(tileOverlays)
      .cast<TileOverlayId, TileOverlay>();
}