# What a head unit needs that a phone does not

A phone app can assume it owns the screen, that the user is looking at it, and that anything unclear can be tapped. A head unit gives you none of those. The screen geometry is fixed by the car, the reading distance is arm's length at 70 mph, and every control you add is one the driver should not be using. Our cluster demo at `/demo/cluster` is what our 3D navigation view looks like when those assumptions are removed: one fixed 1920 by 720 frame, no page chrome, and four interface elements deleted rather than shrunk.

## What does "chrome-stripped" mean in practice?

It means specific elements are removed, not restyled. The cluster route hides the site header, footer and banner outright, locks the body to the viewport height with `overflow:hidden`, and renders the drive inside a dashboard bezel at a hard-coded `aspectRatio: "1920 / 720"`, which is the de facto 12.3-inch cluster resolution. An `?embed=1` flag drops the bezel and the page's caption too, for the case where the page around it draws its own frame. The page does carry city, light and vehicle pills, but they sit outside the bezel by design: the display itself stays HUD-only.

Inside the drive view, a `clusterMode` flag removes four things:

| Removed | Why it cannot be on a cluster |
|---|---|
| Day and night preset switch | The vehicle decides the mode, not the driver, and the switch rebuilds the whole scene |
| Restart button | There is no take to restart in a car |
| Caption card explaining the demo | Explanatory copy at 70 mph is noise |
| ETA card with a scrubbable progress bar | A draggable timeline is a control nobody should touch while driving |

One element moves rather than going: the speed stack drops from `4.5rem` to `2.75rem` from the bottom, so it sits bottom-anchored the way a real cluster does, and clear of the map mark in the corner.

What is left is the display. The manoeuvre banner, the lane-guidance ribbon and the speed stack, which carries the limit sign, the live speed and an HGV chip when the demo is driven with `?vehicle=truck`. If that list looks short, that is the argument. On a phone those three would be the top third of a screen full of other affordances. On a cluster they are the entire product, and everything else was decoration we could not justify.

## Why is the day and night switch a page reload?

Because the scene is built per mode, not tinted per mode. Sun position, fog density, light colour, window emissive materials and the road-legibility treatment are all constructed at build time for the selected time of day, so switching is a reload with `?time=day`, `dusk`, `night` or `dawn` in the URL. With no parameter at all, the scene follows the real sun at that city's location.

On the web that is a visible reload and a minor cost. On a cluster it is the correct model anyway: the vehicle tells you it is night, you build the night scene, and there is no in-scene control for the driver to find. It also happens to line up with Apple's review guidance for CarPlay navigation apps, which requires both a day and a night map style.

## What did the rendering have to give up?

Fill rate, mostly, and deliberately. The demo caps the device pixel ratio at 1.5 on coarse-pointer devices against 2 on desktops, because a dpr-3 panel quadruples fill cost for detail nobody resolves at driving pitch, and the whole post-processing chain derives its targets from the drawing buffer, so the entire stack shrinks with the cap. There is a `?lowfx` flag that forces the lower cap on any device.

The camera is clamped too: minimum zoom 13.5, maximum 18.5, maximum pitch 72 degrees, and the view is bounded to the corridor. Those limits exist because an unconstrained camera in a car is a way to end up looking at the sky with the route off screen, and because bounded camera state is bounded tile fetching.

## What actually exists for the car platforms?

Real code in both native SDKs, in beta, not yet validated on hardware. On iOS, `MapMapCarPlay` is a product of the public [`Mapmapai/mapmap-ios`](https://github.com/Mapmapai/mapmap-ios) package from 0.7.0; on Android, `ai.mapmap:car` and `ai.mapmap:car-maplibre` are not on Maven Central, so they are built from the SDK source until head-unit hardware validation is done. The iOS product is built on `CPMapTemplate`, with trip and manoeuvre conversions, an audio session and a session-configuration observer that tracks the head unit's light and dark content style. On Android there are `car` and `car-maplibre` modules on the Car App Library with navigation template builders for trips, manoeuvres, lanes and travel estimates, intent parsing for `geo:` and `google.navigation:` links, and a map host that renders through a `VirtualDisplay`. Both are adaptations of the BSD-3-Clause Ferrostar car integrations against our own bindings, because we ship one combined navigation core with both binding namespaces and cannot link the upstream car artefacts directly.

The honest status is the one in our own documentation: everything builds and is unit-tested, and none of it has been run on real head-unit hardware. Two external gates apply to any app that ships this, and neither is ours to close on a schedule. Apple's CarPlay entitlement, `com.apple.developer.carplay-maps`, is required even to use the simulator, is granted per app and per developer account, and has a lead time running from days to around eight weeks. Google Play reviews the navigation category manually, and a failed review on a production track blocks the release of the whole app, not just the car part.

## What we do not have yet

- **One aspect ratio.** The cluster page is fixed at 1920 by 720. There is no support for other cluster geometries, portrait centre stacks or the split layouts some head units use.
- **No cluster type scale.** We removed elements; we did not enlarge the survivors. There is no cluster-specific contrast pass or type ramp in the code, and anyone claiming otherwise has not read it.
- **Touch and pointer only.** Drag to look, wheel to zoom, and a Re-centre pill to return to the chase camera. There is no rotary or knob input path, which is exactly the navigation model a lot of European head units use, and it is on the list of things a bench test with real hardware would force us to build.
- **A known upstream scaling bug.** MapLibre Native on iOS derives display scale from the phone's screen rather than the CarPlay screen. We ship a window-scale adjuster to work around it, and the integrator has to apply it.
- **Desktop only for the live scene.** Phones, meaning a coarse pointer with a screen narrower than 768 px on its short side, are served a recorded capture of the night drive rather than the live render, because the scene that this whole post describes is what low-memory mobile GPUs crash the browser on. None of the URL parameters below apply to that capture.
- **The cluster page is unlisted.** It answers 200, and it is `noindex` and absent from the sitemap. It is no longer unlinked, though: `/solutions/automotive` embeds it and links it full-screen.

## Try it

Open the cluster demo from the [automotive page](https://mapmap.ai/solutions/automotive) on a desktop browser and resize the window: the frame keeps its 1920 by 720 ratio because that is the constraint the design is answering. Add `?vehicle=truck` for the HGV variant of the speed stack, or `?time=night` for the night build. The [car integration guide](/docs/car) documents the CarPlay and Android Auto surfaces, their beta status and the platform gates in detail, the [navigation app write-up](/news/mapmap-nav) covers the phone-shaped version of the same stack, and [lane guidance](/news/lane-guidance) explains the ribbon that stays on screen when everything else has gone.

Map rendering derives from OpenStreetMap. Credit "© OpenStreetMap contributors" when you render or republish it.
