fix(graph): add all roads

This commit is contained in:
vl.arkhangelskii
2026-09-21 14:00:32 +03:00
parent 1d71e440f9
commit 2bbd4c4ca1
16 changed files with 361 additions and 199 deletions
@@ -0,0 +1,7 @@
# web-demo tiled graph in style
Date: 2026-09-21
## What
web-demo no longer waits on JSON bbox / a «Показать граф» click. When the checkbox is on (default), graph MVT sources (`/u/{slug}/graph/{id}/{z}/{x}/{y}.pbf`, layer `roads`) are injected into the MapLibre style JSON the same way OSM tiles are. Toggle reloads the style. `rewriteServiceUrl` keeps `{z}/{x}/{y}` unencoded. Graph tile 404s stay in the graph HUD, not the map banner.
@@ -0,0 +1,13 @@
# Graph polylines + all streets from z12
Date: 2026-09-21
## Why the overlay looked wrong
Crooked chords: edges were vertex-to-vertex (intersections only), no OSM shape nodes.
Only highways at z12–13: zoom filter kept residential out until z13, and `ORDER BY length_m DESC LIMIT 8000` dropped short streets even then.
## Change
- Builder stores `edges.geom` (lon/lat polyline). Encoder clips that LineString. Old sqlite without `geom` still draws chords — resync required for curves.
- All highway classes from z12 (residential/service included). Cap 40k features, order by id not length.