Skip to content

Display a map

A basemap and an initial viewpoint. This is the real source of the example app’s display-map screen — run it on a device or simulator to see it live.

app/basics/display-map.tsx
import { Map, MapView } from 'expo-arcgis';
/** Displays a topographic basemap centered on the Santa Monica Mountains. */
export default function DisplayMap() {
return (
<Map
basemap="arcGISTopographic"
initialViewpoint={{ latitude: 34.027, longitude: -118.805, scale: 72_000 }}
>
<MapView style={{ flex: 1 }} />
</Map>
);
}