~/talk

Lessons Learned Migrating the Maps SDK to Compose

Talkat DroidKaigi 2022 · 2022-10-05..10-07· [android, frontend-architecture]
slides:none on file

Maps Compose is an open source interop layer that replaces ~100+ lines of AndroidView boilerplate with composable nodes, using subcomposition and a custom applier to add/update/remove markers, polylines and polygons directly from the composition. It reuses Maps SDK types like CameraUpdate while exposing Compose-first types such as mapProperties and mapUISettings, drives camera movement via cameraPositionState (suspending animate), offers a mapEffect escape hatch, and notes limits: GoogleMap stays stateful so one cameraState per map.

AI-written summary · about

  1. 0:00Lessons Learned Migrating the Maps SDK to Compose
  2. 9:35Think declaratively in Compose
  3. 16:05Reuse as much as possible
  4. 20:20Use Kotlin features
  5. 23:41Stay consistent with Compose Toolkit APIs
  6. 27:04Use Compose common types
  7. 28:59Provide an escape hatch
~/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.