Contents

init(bounds:interactionModes:scope:content:)

Creates a new map with the bounds, interaction modes, scope, and content you provide.

Declaration

@MainActor @preconcurrency init<C>(bounds: MapCameraBounds? = nil, interactionModes: MapInteractionModes = .all, scope: Namespace.ID? = nil, @MapContentBuilder content: () -> C) where Content == MapContentView<Never, C>, C : MapContent

Parameters

  • bounds:

    The Mapcamerabounds that define the camera’s view of the map.

  • interactionModes:

    The Mapinteractionmodes that describe ways a person can interact with the map.

  • scope:

    The map’s Id.

  • content:

    A Mapcontent content builder that supplies the map’s content.

See Also

Creating a map