SPB Git

Repository Public BSD-3-Clause

0002-rendering-engine.md 1.8 KB 26 lines markdown

1# ADR 0002 — MapLibre Native behind an engine-neutral controller; ORIX Atlas Metal engine in parallel23Date: 2026-11-25 · Status: accepted45**Context.** The map must not be a skin over MapKit and must work with no Apple or Google server (§2, §6). A complete6vector renderer (tile parsing, triangulation, line joins, glyph atlas, label collision, 3D buildings) is years of work.78**Options.**9- *MapKit* — excluded: Apple servers and Apple cartography.10- *MapLibre Native iOS 7.0.0* — BSD-2-Clause, Metal backend, mature (fork of Mapbox GL Native 1.x maintained by the11  MapLibre organization), style specification v8, reads PMTiles archives from `file://` URLs natively, no telemetry.12  Binary size: the dynamic framework is about 9 MB per architecture in a release build (to be measured in the archive).13- *A proprietary Metal engine first* — excluded for V1: it would block the product.1415**Decision.** V1 renders with MapLibre Native. The application only talks to `ORIXMapRenderer.MapController`16(camera, style document, overlays, events, frame statistics) and the `MapBackend` protocol; `MapLibreBackend` is the only17file that imports MapLibre. The ORIX Atlas engine (Metal) is specified and prototyped behind the same protocol (phase 7)18and is not announced as available until it renders the same style documents.1920**Verified on 2026-11-25.** Simulator iPhone 17 Pro, iOS 26.5: style generated by `ORIXMapStyle`, tiles from a local21`pmtiles://file://…` archive, glyphs from the application bundle (`file://…/Glyphs/{fontstack}/{range}.pbf`), no network22request configured anywhere in the style. Not yet measured on a device.2324**Consequences.** Label fonts must ship as glyph PBF ranges (Noto Sans Regular / Medium / Italic, SIL OFL 1.1, 13 MB).25Icons are registered at run time from SF Symbols instead of a sprite sheet.26
Files main
Menu

Theme