Files
maptool/TODO.adoc
T
randy db58468187
CI / check (push) Successful in 40s
CI / deploy (push) Successful in 12s
Add polygon notes (Area mode) to the user overlay tool
notes.js: Point/Area mode toggle mirroring measure.js's UX — Area
mode accumulates clicked vertices with a live dashed-preview polygon
(own small preview source/layers), a Finish button once 3+ corners
are placed, then the same save form as Point mode.

gpx.js's _addLayers now also renders Polygon features from a file's
"lines" source (fill + outline, filtered by geometry-type — the
existing line layer already only draws LineString, so this is just
two more layers on the same source, not a new bucket) with
popup-on-click like a waypoint, not the track line's hover-summary/
profile-panel behavior. Without this a saved polygon wouldn't have
rendered back on reload.

Fixed along the way: .notes-panel__form/.notes-panel__modes both set
their own `display`, which silently wins over the browser's default
`[hidden] { display: none }` (author styles always beat user-agent
ones) — same gotcha .gpx-panel__action[hidden] already has a comment
about. The form was never actually invisible before being opened.

Verified live: real polygon file (fill/outline render, click ->
popup) and the full Area-mode draw flow (mode switch, live preview,
Finish, form) via headless Chrome. Full test suite: 104 runs, 0
failures — one new backend test confirms a Polygon feature round-
trips through POST /api/gpx/notes.

Known gap (noted in TODO.adoc): the category filter matrix only
re-slices the points source, so toggling "Note" off hides point notes
but not polygon ones.
2026-09-09 11:27:25 +02:00

5.3 KiB
Raw Blame History

TODO — implementation ideas

Ideas for offline use in a camper van. Implement incrementally, grouped by topic.

The local server has access to both the vehicle’s hardware and offline data — the vision is to grow it into a complete offline control center: resources, data, and independence from connectivity.

Offline data and cartography

  • ❏ Offline vector tiles (PMTiles/MBTiles) for Europe/world via Planetiler or MapTiler

  • ✓ Shaded relief / DEM layer — hillshade toggle in the sidebar, sourced from public Terrarium tiles online; reads data/terrain.pmtiles for offline if one’s been generated (see docs/development.adoc), otherwise the toggle is online-only for now

    • ❏ Terrain slope readout for parking (numeric, not just visual shading)

  • ❏ Contour lines from OSM for hikes and mountain passes

  • ✓ Overpass/OSM scripts to extract POIs (drinking water, dump stations, LPG, public toilets, laundromats, shops, springs) — rake overpass:pois, see docs/development.adoc; writes a .geojson to drop in data/gpx/ or upload, not called by the running app itself

  • ❏ Import Park4Night / iOverlander / Freecampsites data

  • ❏ Kiwix/ZIM offline Wikipedia linked to POI GPS coordinates

  • ✓ Cache weather forecast when temporarily connected — Open-Meteo 3-day forecast in the Radar flyout, last successful fetch cached in localStorage as a fallback when offline

    • ✓ Cache the radar tile images too — public/sw.js, network-falling-back-to-cache for RainViewer tile requests, registered from layout.erb

NPS visual style

  • ❏ Map Park4Night/OSM place types to NPS pictograms (campground, primitive camp, drinking water, dump station, viewpoint, picnic table) for instant recognition without reading text

  • ❏ Restyle popovers, side panels, and point detail views after the NPS Unigrid layout system (Massimo Vignelli) with Frutiger/Rawlinson Roadside-style typography

    • ✓ Top black banner (full width): "MAPTOOL" on the left, live map-center coordinates in the center, offline-data status dot on the right, white sans-serif type — DEM elevation and a hamburger menu skipped (no DEM layer yet; sidebar isn’t mobile-collapsed, so nothing for a hamburger to reveal)

    • ❏ Point detail/sidepanel: black header banner with white location name and an NPS pictogram in the corner; amenities (water, waste, power, slope) shown as a pictogram grid, no extra text; action buttons for "route here" (Valhalla), "start leveling", "save offline"

    • ✓ Filter panel as a "Unigrid Matrix" — an icon grid to toggle categories on/off, styled like the legend on an official NPS paper map, instead of plain dropdowns

  • ❏ Custom vector style (MVT/MapLibre) using the NPS color palette — muted natural tones for forests, water, and contours — so POIs and routes stand out at high zoom

    • ❏ Landuse & protections: distinct styling for national parks, nature reserves (translucent green/gray-green), military zones, and private land (important for wild camping)

    • ✓ Elevation-tinted terrain — a color-relief layer (hypsometric tint, this app’s own green→brown→gray palette) under the hillshade layer, same "Terrain shading" toggle

    • ✓ Road hierarchy: clearly distinguish paved roads from unpaved/gravel/track — critical for knowing if the camper can get there

Main menu reorganization (4 modules)

  • ❏ Explorer: place filters (Park4Night + OSM layers: water, waste, LPG, showers); map layers (contours, hillshade, satellite cache)

  • ❏ Navigation & route: offline router (Valhalla) with vehicle dimensions (height, weight, width); route elevation profile and isochrones

  • ❏ Offline hub: manager for downloaded PMTiles (country vector maps); downloaded Wikipedia archives; cached radar and weather

  • ❏ Camper & HW: level gauge (wheel-chock leveling); solar calculator (sun path on the map); telemetry (Victron / Home Assistant)

Custom layers & data

  • ✓ GPX/GeoJSON drag-and-drop import (Wikiloc, Komoot, own GPX tracks — also FIT), auto-styled by category with a generated elevation profile — KML not supported (only GPX/FIT/GeoJSON/.zip)

  • ✓ User overlay: offline drawing of custom points and areas with notes (e.g. "turning space for a long vehicle", "narrow gate", "good swimming spot") — Point/Area mode toggle with a live drawing preview, saved into the same GpxStore the Tracks panel already reads (so visibility/popup come for free); gpx.js’s _addLayers now renders Polygon features (fill + outline) alongside points/lines, not just points

    • ❏ The Unigrid Matrix category filter only re-slices the points source (_applyCategoryFilter) — toggling the "Note" category off hides point notes but not polygon ones sharing that category

  • ❏ Offline satellite tile caching (e.g. ESRI) for a selected route area — key for judging surface quality and obstacles when wild camping

Nice to have (later)

Deprioritized for now — revisit after the sections above land.

Vanlife features

  • ❏ Offline routing (Valhalla/OSRM) with vehicle parameters (height, weight, width)

  • ❏ Solar calculator — sun path for location/date, shadows from surroundings, camper orientation

HW integration

  • ❏ Level gauge from IMU (ESP32/RPi) — camper tilt, wheel-chock leveling calculation

  • ❏ Victron/Home Assistant via MQTT or WebSocket — battery SoC, tank levels, temperatures

  • ❏ Plot GPS track with historical battery/speed data