MapViewHandle
MapViewHandle =
object
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:595
Imperative handle exposed by <MapView> via ref.
Properties
Section titled “Properties”geoView
Section titled “geoView”
readonlygeoView:GeoViewRef
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:600
The view for packages built on expo-arcgis whose own views bind to it: pass this ref to them as
their geoView (expo-arcgis-toolkit’s panels).
Methods
Section titled “Methods”getBookmarkNames()
Section titled “getBookmarkNames()”getBookmarkNames():
Promise<string[]>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:620
Names of the displayed map’s bookmarks (e.g. those saved in a loaded web map).
Returns
Section titled “Returns”Promise<string[]>
getCenter()
Section titled “getCenter()”getCenter():
Promise<{latitude:number;longitude:number; } |null>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:627
Geographic centre of the visible map in WGS84, or null before the view has drawn.
Accounts for contentInsets, so it reports the centre of the part the user can actually see.
Returns
Section titled “Returns”Promise<{ latitude: number; longitude: number; } | null>
identify()
Section titled “identify()”identify(
screenPoint,options?):Promise<IdentifyResult[]>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:605
Identifies the features under a screen point (in points, e.g. from onTap’s screenPoint).
Returns one IdentifyResult per layer that has hits.
Parameters
Section titled “Parameters”screenPoint
Section titled “screenPoint”number
number
options?
Section titled “options?”maxResults?
Section titled “maxResults?”number
tolerance?
Section titled “tolerance?”number
Returns
Section titled “Returns”Promise<IdentifyResult[]>
identifyPopups()
Section titled “identifyPopups()”identifyPopups(
screenPoint,options?):Promise<PopupResult[]>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:613
Identifies popups under a screen point and evaluates them — returns each popup’s title and its formatted fields. Requires the layers to have popups enabled.
Parameters
Section titled “Parameters”screenPoint
Section titled “screenPoint”number
number
options?
Section titled “options?”maxResults?
Section titled “maxResults?”number
tolerance?
Section titled “tolerance?”number
Returns
Section titled “Returns”Promise<PopupResult[]>
retryLoad()
Section titled “retryLoad()”retryLoad():
Promise<void>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:618
Retries loading the map after a failure (e.g. a network outage). Re-fires onMapLoaded/onMapLoadError.
Returns
Section titled “Returns”Promise<void>
setBookmark()
Section titled “setBookmark()”setBookmark(
name):Promise<boolean>
Defined in: packages/expo-arcgis/src/ExpoArcgis.types.ts:622
Navigates to the named bookmark’s viewpoint; resolves to whether a matching bookmark was found.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<boolean>