Contents

init(bounds:interactionModes:selection:scope:)

Creates a new, empty map with the bounds, interaction modes, the selected map feature, and scope you provide.

Declaration

@MainActor @preconcurrency init<SelectedValue>(bounds: MapCameraBounds? = nil, interactionModes: MapInteractionModes = .all, selection: Binding<SelectedValue?>, scope: Namespace.ID? = nil) where Content == MapContentView<SelectedValue, EmptyMapContent>, SelectedValue : Hashable

Parameters

  • bounds:

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

  • interactionModes:

    The Mapinteractionmodes that describe ways the user can interact with the map.

  • selection:

    A binding to a Mapfeature that represents a person’s selection.

  • scope:

    The map’s Id.

See Also

Creating a map