Skip to content
GuidesToolkitAPI

LegendProps

LegendProps = ViewProps & object

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

optional geoView?: RefObject<GeoViewHandle | null>

The view the legend is for: a <MapView>, <SceneView> or <LocalSceneView> ref.

the view the legend is placed in

optional respectScaleRange?: boolean

Leaves out the layers that don’t draw at the view’s current scale.

true

optional reverseLayerOrder?: boolean

Lists the layers from the bottom one up.

false

optional title?: string

The heading; an empty string shows none.

the Toolkit's ("Legend", localized)

optional typography?: object

The Toolkit’s Typography: text styles for its title, layer names and symbol labels.

optional layerName?: LegendTextStyle

optional legendInfoName?: LegendTextStyle

optional subLayerName?: LegendTextStyle

optional title?: LegendTextStyle