Map@knitui/map
Interactivity
The map surfaces user interaction through event callbacks. onPress fires for taps/clicks with the lngLat, screen point, and any hit features; onRegionDidChange fires when the viewport settles, reporting the new center, zoom, bearing, pitch, and bounds. A MapRef adds imperative queries such as getCenter, getZoom, and queryRenderedFeatures.
WebiOSAndroid3 examples
import { Map } from "@knitui/map";Playground
Loading playground…
<Map
mapStyle={STREETS_STYLE}
/>Examples
On Press
Record where the user clicks and show the coordinates in an overlay panel.
Loading example…
On Region Did Change
Track the live viewport as the user pans and zooms.
Loading example…
Imperative Ref
Use a ref to imperatively read the viewport on demand.
Loading example…
Props
Not yet generated
Prop extraction did not resolve this component. Run pnpm docs:generate, or add an override in apps/docs/content/overrides/.