import Map from 'react-map-gl/maplibre';
import { Canvas, UndergroundCamera } from '@wendylabsinc/react-three-map/maplibre';
<Map maxPitch={180} centerClampedToGround={false} initialViewState={...}>
<UndergroundCamera minAltitude={-300} />
<Canvas latitude={51.5} longitude={-0.12}>
<Tunnels />
</Canvas>
</Map>
Lets the MapLibre camera go below the ground while mounted, see allowUndergroundCamera.
Must be used as a child of a
Mapcomponent fromreact-map-gl/maplibre.