Path Renderer

"/home/yossef/notes/git/projects/maplibra/modules/Path Renderer.md"

path: maplibra/modules/Path Renderer.md

- **fileName**: Path Renderer
- **Created on**: 2026-06-16 00:48:42

Path Renderer

Purpose: Renders computed routes as animated GeoJSON LineString layers on the map.

Related: ../Home.md, ../Architecture.md, ./Pathfinding.md, ./Map Rendering.md

What It Does

PathRenderer (src/path-renderer.js) takes the smoothed route coordinates produced by the pathfinding engine and displays them as map layers. It handles route lines, outdoor segments, animation, and theme updates.

Components

Route Rendering (src/path-renderer/route.js)

Layers (src/path-renderer/layers.js)

Animation (src/path-renderer/animation.js)

Metrics (src/path-renderer/metrics.js)

Route Data Structure

Routes are stored as GeoJSON FeatureCollection with LineString features per floor:

Important Files

How It Connects