Skip to content
GuidesToolkitAPI

CalloutProps

CalloutProps = object

Defined in: packages/expo-arcgis/src/Callout.tsx:18

optional colors?: object

Defined in: packages/expo-arcgis/src/Callout.tsx:55

The Kotlin Toolkit’s CalloutColors.

optional backgroundColor?: ColorValue

optional borderColor?: ColorValue

the Material theme's

android


optional geoElement?: GraphicRef | FeatureRef | null

Defined in: packages/expo-arcgis/src/Callout.tsx:25

What the callout points at, and follows as it moves: a <Graphic> ref, or the ref of a feature from the view’s identify.


optional leaderPosition?: "automatic" | "upperLeftCorner" | "upperMiddle" | "upperRightCorner" | "rightMiddle" | "lowerRightCorner" | "lowerMiddle" | "lowerLeftCorner" | "leftMiddle"

Defined in: packages/expo-arcgis/src/Callout.tsx:44

Where the leader sits on the callout; 'automatic' picks the side with the most room.

'lowerMiddle'

android — the Swift callout places its leader itself.


optional location?: CalloutLocation | null

Defined in: packages/expo-arcgis/src/Callout.tsx:20

Where the callout points. Ignored while geoElement is set.


optional offset?: object

Defined in: packages/expo-arcgis/src/Callout.tsx:29

Moves the callout from location, right and down, in points.

x: number

y: number

{ x: 0, y: 0 }

optional rotateOffsetWithGeoView?: boolean

Defined in: packages/expo-arcgis/src/Callout.tsx:34

Turns the offset with the view as it rotates (Swift’s allowsOffsetRotation).

false

optional shapes?: object

Defined in: packages/expo-arcgis/src/Callout.tsx:61

The Kotlin Toolkit’s CalloutShapes, in dp.

optional borderWidth?: number

optional contentPadding?: number

Padding around the content.

cornerRadius + borderWidth / 2

optional cornerRadius?: number

optional leaderSize?: object

height: number

width: number

optional minSize?: object

height: number

width: number

{ cornerRadius: 10, borderWidth: 2, leaderSize: { width: 12, height: 10 } }

android


optional style?: StyleProp<ViewStyle>

Defined in: packages/expo-arcgis/src/Callout.tsx:39

The content’s own style: its padding, width and the like. Where it shows is the callout’s to decide.


optional tapLocation?: CalloutLocation | null

Defined in: packages/expo-arcgis/src/Callout.tsx:27

With geoElement: where on it the user tapped, for a line or a polygon.