Feature layer
Add a feature service layer to the map. This is the real source of the example app’s feature-layer screen — run it on a device
or simulator to see it live.
import { FeatureLayer, Map, MapView } from 'expo-arcgis';
const WORLD_CITIES = 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0';
/** Adds a feature service layer (world cities) on top of a navigation basemap. */export default function FeatureLayerSample() { return ( <Map basemap="arcGISNavigation" initialViewpoint={{ latitude: 20, longitude: 0, scale: 147_000_000 }} > <FeatureLayer url={WORLD_CITIES} /> <MapView style={{ flex: 1 }} /> </Map> );}