The `availableMaps` API fetches information for all maps that are available to be displayed.

This is useful if you would like to give your users a variety of maps styles to choose from.

```swift
var maps = [Geo.MapStyle]()

Amplify.Geo.availableMaps { result in
    switch result {
    case .failure(let error):
        print(error)
    case .success(let availableMaps):
        maps = availableMaps
    }
}
```

You can load a different style map by passing it to the createMap function.

```swift
guard let mapStyle = maps.first else {
    print("No maps available")
    return
}

let mapView = AmplifyMapLibre.createMap(mapStyle)
```