Skip to content

MapProps

MapProps = object

Defined in: src/ExpoArcgis.types.ts:43

Props for the <Map> model component — mirror the configurable properties of the native ArcGISMap. Reconciled into the underlying SharedObject via applyProps.

optional basemap?: BasemapStyle

Defined in: src/ExpoArcgis.types.ts:45

Basemap style. Defaults to arcGISTopographic. Ignored when portalItem is set.


optional basemapLanguage?: string

Defined in: src/ExpoArcgis.types.ts:53

Language for basemap place-name labels. Only applies when basemap is a built-in style string. Special values: "global" — English worldwide; "local" — local place names; "default" — SDK default; "applicationLocale" — device locale. Any other value is treated as a BCP-47 language tag (e.g. "fr", "ar", "zh-Hans"). Corresponds to BasemapStyleParameters.language on both platforms.


optional basemapWorldview?: string

Defined in: src/ExpoArcgis.types.ts:59

Worldview code for disputed-boundary rendering. Only applies when basemap is a built-in style. Known codes: "CN", "IN", "IL", "JP", "MA", "PK", "KR", "AE", "US", "VN". Corresponds to BasemapStyleParameters.worldview on both platforms.


optional bookmarks?: object[]

Defined in: src/ExpoArcgis.types.ts:87

Named saved viewpoints stored on the map. Replaces the map’s bookmark list each time the prop changes. Each entry creates a native Bookmark(name, Viewpoint(latitude, longitude, scale)). Navigation to a bookmark is done separately via the <MapView viewpoint> prop.

name: string

viewpoint: object

latitude: number

longitude: number

scale: number


optional initialViewpoint?: Viewpoint

Defined in: src/ExpoArcgis.types.ts:73

Center + scale applied when the map first loads.


optional maxExtent?: Geometry

Defined in: src/ExpoArcgis.types.ts:71

Constrains panning to this envelope — the user cannot scroll the map outside this extent. Must be an envelope geometry. Omit (or pass undefined) to remove the constraint. Maps to maxExtent on both platforms.


optional mobileMapPackagePath?: string

Defined in: src/ExpoArcgis.types.ts:81

Display an offline map from a mobile map package (.mmpk) at this local path — e.g. the directory returned by offline.generateOfflineMap. The package loads asynchronously and the map appears once ready.


optional portalItem?: PortalItem

Defined in: src/ExpoArcgis.types.ts:75

Load the map from an ArcGIS web map. Construction-only (set once; remount to change).


optional referenceScale?: number

Defined in: src/ExpoArcgis.types.ts:65

The scale at which feature symbols and text are drawn at their authored size. Features scale relative to this value as the user zooms in and out. Set to 0 (or omit) to disable reference scaling. Maps to referenceScale on both platforms.