---
title: "mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/mapitemdetailpopover(ispresented:item:displaysmap:attachmentanchor:arrowedge:)"
---

# mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:arrowEdge:)

Presents a map item detail popover.

## Declaration

```swift
@MainActor @preconcurrency func mapItemDetailPopover(isPresented: Binding<Bool>, item: MKMapItem?, displaysMap: Bool = true, attachmentAnchor: PopoverAttachmentAnchor = .rect(.bounds), arrowEdge: Edge) -> some View

```

## Parameters

- `isPresented`: The binding to whether the detail sheet should be shown.
- `item`: The map item to display. If nil, a “loading” view is displayed.
- `displaysMap`: If an inline map should be displayed with the place data. A value of true must be specified if the application UI is not already showing the place in a map view.
- `attachmentAnchor`: The positioning anchor that defines the attachment point of the popover. The default is bounds.
- `arrowEdge`: The edge of the attachmentAnchor that defines the location of the popover’s arrow.

## See Also

### Getting location information

- [LocationButton](corelocationui/locationbutton.md)
- [Map](mapkit/map.md)
- [mapStyle(_:)](swiftui/view/mapstyle(_:).md)
- [mapScope(_:)](swiftui/view/mapscope(_:).md)
- [mapFeatureSelectionDisabled(_:)](swiftui/view/mapfeatureselectiondisabled(_:).md)
- [mapFeatureSelectionAccessory(_:)](swiftui/view/mapfeatureselectionaccessory(_:).md)
- [mapFeatureSelectionContent(content:)](swiftui/view/mapfeatureselectioncontent(content:).md)
- [mapControls(_:)](swiftui/view/mapcontrols(_:).md)
- [mapControlVisibility(_:)](swiftui/view/mapcontrolvisibility(_:).md)
- [mapCameraKeyframeAnimator(trigger:keyframes:)](swiftui/view/mapcamerakeyframeanimator(trigger:keyframes:).md)
- [lookAroundViewer(isPresented:scene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:)](swiftui/view/lookaroundviewer(ispresented:scene:allowsnavigation:showsroadlabels:pointsofinterest:ondismiss:).md)
- [lookAroundViewer(isPresented:initialScene:allowsNavigation:showsRoadLabels:pointsOfInterest:onDismiss:)](swiftui/view/lookaroundviewer(ispresented:initialscene:allowsnavigation:showsroadlabels:pointsofinterest:ondismiss:).md)
- [onMapCameraChange(frequency:_:)](swiftui/view/onmapcamerachange(frequency:_:).md)
- [mapItemDetailPopover(isPresented:item:displaysMap:attachmentAnchor:)](swiftui/view/mapitemdetailpopover(ispresented:item:displaysmap:attachmentanchor:).md)
- [mapItemDetailPopover(item:displaysMap:attachmentAnchor:)](swiftui/view/mapitemdetailpopover(item:displaysmap:attachmentanchor:).md)
