PopupView
PopupView(
__namedParameters):Element
Defined in: packages/expo-arcgis-toolkit/src/PopupView.tsx:52
The ArcGIS Toolkit’s popup view: a popup’s title, fields, media, attachments and related records,
with its expressions evaluated. Show the popup of a feature the user taps: pass the ref of a
result of the view’s identifyPopups. A panel: lay it out anywhere, in a sheet or below the map.
const [popup, setPopup] = useState<PopupRef | null>(null);
<MapView ref={mapView} onTap={async ({ nativeEvent }) => { const [result] = await mapView.current!.identifyPopups(nativeEvent.screenPoint); setPopup(result?.ref ?? null);}} />{popup && <PopupView popup={popup} onDismiss={() => setPopup(null)} style={{ height: 320 }} />}Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”Element