Skip to content
GuidesToolkitAPI

Legend

Legend(props): Element | null

Defined in: packages/expo-arcgis-toolkit/src/Legend.tsx:62

The ArcGIS Toolkit’s legend: the symbols of a view’s map or scene, its layers’ and its basemap’s, at the view’s current scale. A panel: place it inside the <MapView> / <SceneView> and lay it out over the map, or anywhere else with the view’s ref as geoView.

<MapView style={{ flex: 1 }}>
<Legend style={{ position: 'absolute', bottom: 32, left: 16, width: 220, height: 280 }} />
</MapView>

LegendProps

Element | null

android — the Swift Toolkit has no legend; on iOS it renders nothing.