~/talk

Captain Hook: Mastering MapLibre’s hooks

links:none on file
slides:none on file

MapLibre exposes concrete extension points: community Contour plugin and inspect control let client code draw contours and inspect tile types; simple addControl returns an HTML element and stacks in corners; setTransformRequest rewrites every tile request (headers, HTTPS, credentials). A tiny ~10-line PR added addProtocol (custom protocols) enabling offline and h3 tiles for isra hiking map by returning byte arrays instead of network fetches. importScripts in workers injects JS into map workers but is fragile, undocumented and requires intimate worker internals.

AI-written summary · about

  1. 0:00Introduction to MapLibre
  2. 3:14Why use hooks in MapLibre
  3. 4:38Plugins as simple hooks
  4. 6:00Adding controls to maps
  5. 7:26Transforming network requests
  6. 8:32Custom layer interface
  7. 10:00Custom protocol for offline tiles
  8. 13:56Using custom protocol
  9. 15:01Transform camera update hook
  10. 17:12Importing scripts in workers
  11. 22:43Summary of MapLibre hooks
  12. 23:06Sponsorship and maintenance
  13. 26:05Keeping hooks functional
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.