~/talk

Building with Mapbox GL JS in React

Talkat BUILD with Mapbox 2025 · 2025-09-08..09-12· [react, javascript]
slides:none on file

Live demo builds a React wrapper that instantiates Mapbox GL JS via a ref, mirrors props with useEffect hooks, and sets mapboxgl.accessToken; buttons change camera by updating state which triggers map.flyTo, clicks append timestamped marker objects to state and a React Marker class component mounts/unmounts DOM markers cleanly, a Marker list UI deletes them, and a GeoJSON subway-stops source plus a filtered highlight layer shows selection — the demo runs end-to-end in the session.

AI-written summary · about

  1. 0:00Introduction and logistics
  2. 2:16Using Mapbox GL JS in React
  3. 3:44Mental model and wrappers
  4. 7:10Live coding: setting up the map
  5. 15:05Controlling the map with state
  6. 20:41Implementing markers with state
  7. 29:28Using a marker component
  8. 31:43Syncing markers with a list
  9. 35:42Adding GeoJSON data and interactions
  10. 42:35Q&A and closing remarks
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.