> For the complete documentation index, see [llms.txt](https://docs.mapbox.com/ios/ja/maps/llms.txt)

# Display a simple map view

![Create and display a map that uses the default Mapbox Standard style.](https://docs.mapbox.com/ios/ja/assets/ideal-img/maps-examples-simple-map.e4eadbf.480.png)

This example demonstrates how to create a basic map using the [`MapboxMaps`](https://docs.mapbox.com/ios/maps/api/latest/documentation/mapboxmaps/) class from the **Mapbox Maps SDK for iOS**. The `BasicMapExample` class inherits from [`UIViewController`](https://docs.mapbox.com/ios/maps/api/latest/documentation/mapboxmaps/map/uiviewcontrollerrepresentable-implementations/) and conforms to the `ExampleProtocol`.

In the `viewDidLoad` method, a [`CameraOptions`](https://docs.mapbox.com/ios/maps/api/latest/documentation/mapboxmaps/mapinitoptions/cameraoptions/) object is created with specified center coordinates, zoom level, bearing, and pitch. These options are used to initialize [`MapInitOptions`](https://docs.mapbox.com/ios/maps/api/latest/documentation/mapboxmaps/mapinitoptions/) which are then used to create the `MapboxMaps` instance with the given camera options. The map view is added as a subview to the current view, with a visible scale bar ornament. Finally, in the `viewDidAppear` method, a finishing function is called for internal testing purposes.

> **Note: iOS Examples App Available**
> 
> This example code is part of the **Maps SDK for iOS Examples App**, a working iOS project [available on Github](https://github.com/mapbox/mapbox-maps-ios/tree/11.28.4/Sources/Examples). iOS developers are encouraged to run the examples app locally to interact with this example in an emulator and explore other features of the Maps SDK.
> 
> See our [Run the Maps SDK for iOS Examples App](https://docs.mapbox.com/help/tutorials/maps-sdk-ios-examples-app/) tutorial for step-by-step instructions.

**Swift**

Title: `BasicMapExample.swift`

[View on GitHub](https://github.com/mapbox/mapbox-maps-ios/blob/main/Sources/Examples/All%20Examples/BasicMapExample.swift)

```swift
import UIKit
@_spi(Experimental) import MapboxMaps

final class ViewController: UIViewController {
    private var mapView: MapView!

    override func viewDidLoad() {
        super.viewDidLoad()

        let cameraOptions = CameraOptions(
            center: CLLocationCoordinate2D(latitude: 41.879, longitude: -87.635),
            zoom: 16,
            bearing: 12,
            pitch: 60)
        let options = MapInitOptions(cameraOptions: cameraOptions)

        mapView = MapView(frame: view.bounds, mapInitOptions: options)

        mapView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        mapView.ornaments.options.scaleBar.visibility = .visible

        view.addSubview(mapView)

    }

    
}
```