init(bounds:interactionModes:selection:scope:content:)
Creates a new map with the bounds, interaction modes, selected map feature, scope, and map content you provide.
Declaration
@MainActor @preconcurrency init<C>(bounds: MapCameraBounds? = nil, interactionModes: MapInteractionModes = .all, selection: Binding<MapFeature?>, scope: Namespace.ID? = nil, @MapContentBuilder content: () -> C) where Content == MapContentView<MapFeature, C>, C : MapContentParameters
- 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.
- selection:
A binding to a Mapfeature that represents a person’s selection.
- scope:
The map’s Id.
- content:
A Mapcontent content builder that supplies the map’s content.
See Also
Creating a map
init(bounds:interactionModes:scope:)init(bounds:interactionModes:scope:content:)init(bounds:interactionModes:selection:scope:)init(bounds:interactionModes:selection:scope:)init(bounds:interactionModes:selection:scope:content:)init(initialPosition:bounds:interactionModes:scope:)init(initialPosition:bounds:interactionModes:scope:content:)init(initialPosition:bounds:interactionModes:selection:scope:)init(initialPosition:bounds:interactionModes:selection:scope:content:)init(initialPosition:bounds:interactionModes:selection:scope:content:)init(position:bounds:interactionModes:scope:)init(position:bounds:interactionModes:scope:content:)init(position:bounds:interactionModes:selection:scope:)init(position:bounds:interactionModes:selection:scope:content:)init(position:bounds:interactionModes:selection:scope:content:)