Contents

mapFeatureSelectionDisabled(_:)

Specifies which map features should have selection disabled.

Declaration

@MainActor @preconcurrency func mapFeatureSelectionDisabled(_ selectionDisabled: @escaping (MapFeature) -> Bool) -> some View

Parameters

  • selectionDisabled:

    Determines if selection should be disabled for a given map feature.

Discussion

The selectionDisabled parameter takes a closure which maps map features, to booleans. If that closure returns true for a given map feature, that map feature will be considered unselectable.

See Also

Getting location information