init(bounds:interactionModes:scope:)
Creates a new, empty map with the bounds, interaction modes, and scope you provide.
Declaration
@MainActor @preconcurrency init(bounds: MapCameraBounds? = nil, interactionModes: MapInteractionModes = .all, scope: Namespace.ID? = nil) where Content == MapContentView<Never, EmptyMapContent>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.
See Also
Creating a map
init(bounds:interactionModes:scope:content:)init(bounds:interactionModes:selection:scope:)init(bounds:interactionModes:selection:scope:)init(bounds:interactionModes:selection:scope:content:)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:)