Drawing the Path

No map, no map tiles

There's no Google Maps tile here β€” real map tiles cost money and need an API key. LiveScreen's route is drawn, with Compose's low-level Canvas composable: it hands you a drawing scope with methods like drawLine, drawPath, and drawCircle, and you paint directly, pixel by pixel. Think whiteboard, not map widget.

To turn a list of (lat, lng) fixes into pixel coordinates, LiveScreen projects them: longitude gets squished by cos(midLat) β€” degrees of longitude shrink the farther you get from the equator, so skipping this step stretches every route sideways β€” then the whole set is scaled and centered to fit a padded rectangle on screen. Relative shape survives; that's all a route sketch needs.

Where Maps Compose would replace this: if PawWalk added a Google Maps API key, MapCanvas's hand-rolled projection and drawPath call would become a Polyline composable from the maps-compose library, drawn over real map tiles instead of a blank canvas. Same fixes, same Fix list β€” just a fancier renderer.