MapView component.

The root component which renders the map and provides context to the hooks and child components.

const { mapData } = useMapData({ key: '...', secret: '...', mapId: '...' });
return (
<MapView mapData={mapData}>
<Marker target={...} />
</MapView>
)
  • Parameters

    • props: MapViewProps & Omit<
          Omit<
              DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
              "ref",
          >,
          keyof MapViewProps,
      > & RefAttributes<undefined | MapView>

    Returns ReactNode

Properties

$$typeof: symbol
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.