Update map.md (#2396)

This commit is contained in:
Danny Noenickx 2024-07-05 16:09:14 -04:00 committed by GitHub
parent a36f1a3238
commit e003343718
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -577,7 +577,7 @@ import Map from 'react-map-gl';
import type {MapRef} from 'react-map-gl';
function App() {
const mapRef = useRef<MapRef>();
const mapRef = useRef<MapRef>(null);
const onMapLoad = useCallback(() => {
mapRef.current.on('move', () => {