Knit UI
GitHub

Playground

Loading playground…

Playground
<LayerAnnotation
  lngLat={AMSTERDAM}
/>

Examples

Single

Custom content anchored at a single coordinate.

Loading example…

SingleSourceStorybook

Multiple

A couple of layer annotations across several cities.

Loading example…

MultipleSourceStorybook

Props

PropTypeDefaultDescription
lngLat required[longitude: number, latitude: number]——
animatedboolean | undefined——
animationDurationnumber | undefined——
animationEasingFunction((x: number) => number) | undefined——
childrenReactNode——
idstring | undefined——
onPress((event: PressEventWithFeatures) => void) | undefined——
testIDstring | undefined——

Edit this page on GitHub