Commit Graph

118 Commits

Author SHA1 Message Date
Dustin Carlino
1661957511 Just change the error message in the select boundary tool to emphasize it's probably not the user's fault 2022-03-21 12:28:37 +00:00
Dustin Carlino
d1f6350b89 Calculate neighborhood area. I can't recall where, but I think I've
heard there's an ideal size of about 1 km^2 for an LTN
2022-03-21 12:25:55 +00:00
Dustin Carlino
a45eeb3ede Add an about button to LTN 2022-03-21 12:09:52 +00:00
Dustin Carlino
b22e560abd Add a contextual help button to LTN 2022-03-21 12:00:10 +00:00
Dustin Carlino
4e626b72a9 Just delete unused magnifying glass code from Ungap [rebuild] [release] 2022-03-20 16:53:51 +00:00
Dustin Carlino
9fda4b931d Change the default heuristic and improve descriptions 2022-03-19 15:40:26 +00:00
Dustin Carlino
c434bfcb85 Popup a message when the auto-filter has no effect 2022-03-19 15:33:12 +00:00
Dustin Carlino
b87995840d Add an expert mode to the LTN tool, hiding all the sketchy stuff by default 2022-03-18 16:57:14 +00:00
Dustin Carlino
d09bfb7a70 Add a timer around the slow auto-filter-everything tool, and actually
use the heuristic dropdown on the browse screen
2022-03-17 15:55:03 +00:00
Dustin Carlino
e7bcb12b84 Filter intersections when freehand draw crosses them. Closes #875 2022-03-17 13:55:12 +00:00
Dustin Carlino
25ebb627be Clean up some LTN code from when the concept of 3 per-neighborhood tabs was stronger. [rebuild] 2022-03-16 12:53:20 +00:00
Dustin Carlino
36ef6d6b34 When merging blocks, try reversing the order of one. Otherwise, the
current mix of clockwise and counter-clockwise blocks don't combine.
2022-03-16 12:47:08 +00:00
Dustin Carlino
c81ea0478a Try a min-cut inspired heuristic for filter placement. The results are
surprising (I didn't spot the bottleneck), but quite good!
2022-03-16 11:53:24 +00:00
Dustin Carlino
afe04c527b When swapping proposals, try to keep showing the same rat-run 2022-03-16 11:41:19 +00:00
Dustin Carlino
c9de8c691c Organize all the LTN colors. No behavioral change, except fixing alpha
for car-free or disconnected cells
2022-03-14 09:38:12 +00:00
Dustin Carlino
34345ce341 Just put the road name in the tooltip! 2022-03-13 18:38:45 +00:00
Dustin Carlino
159ae93f62 Show the rat-run heatmap on the connectivity tab. 2022-03-13 17:35:07 +00:00
Dustin Carlino
f7601287a4 Add the window icon to other apps 2022-03-13 16:13:36 +00:00
Dustin Carlino
0e04a29400 Remove rounding from new LTN panels. [rebuild] [release] 2022-03-13 11:02:58 +00:00
Dustin Carlino
53eab1b156 Tweak different left panels to generally keep width low 2022-03-08 09:33:49 +00:00
Dustin Carlino
5b2d5c82ff Line up the LTN left and top panels exactly, and make the background
solid
2022-03-08 09:33:49 +00:00
Dustin Carlino
477783e430 Simplify the combinatorial explosion of Panel sizing APIs 2022-03-08 09:33:49 +00:00
Dustin Carlino
04f00b4c8a Move the LTN app header to a separate top panel. 2022-03-08 09:33:49 +00:00
Dustin Carlino
d6d1bb581f Rename some code, to trigger a [rebuild] [release] 2022-03-06 17:41:09 +00:00
Dustin Carlino
9c9e10cc0f Support the scale-factor override flag in more apps.
All the start up config is confusing and different per app...
2022-03-05 19:26:08 +00:00
Dustin Carlino
8880f41692 Center the camera in the LTN tool and others. And simplify the logic for
the game; it was based on the old bouncey splash screen concept.
2022-03-05 19:01:05 +00:00
Dustin Carlino
d16d1fdedb Draw most road labels in the LTN tool with inverted colors. Still hard to read, but less hard? 2022-03-05 18:26:02 +00:00
Dustin Carlino
99747ff34e Make the LTN tool more robust to broken blockfinding. #841
Try the cheap validation first. If it breaks, fall back to the expensive
version.
2022-03-05 17:21:54 +00:00
Dustin Carlino
a4153891e2 Rearrange some LTN panels, try to make consistent and emphasize important stuff 2022-03-05 16:42:49 +00:00
Dustin Carlino
08395624d8 Support swapping proposals in the pathfinding mode 2022-03-05 16:42:49 +00:00
Dustin Carlino
b83b268e22 Make the LTN pathfinding tool be map-wide, not per neighborhood 2022-03-05 16:42:49 +00:00
Dustin Carlino
1ac25cc39a Find thick dual carriageway roads that overlap, and cut their width in
half.
2022-03-05 11:03:23 +00:00
Dustin Carlino
2db8818a08 Start a variation of the current color scheme specialized for the LTN tool. Stop drawing access-restricted roads in a special way; it's a distraction in this app. 2022-03-04 19:23:41 +00:00
Dustin Carlino
559adbe01d Let the user place filters at non-4 way intersections; it's equivalent to placing a filter along the edge of adjoining roads. #862 2022-03-04 15:10:47 +00:00
Dustin Carlino
5fcaf7b657 Remove the option to draw neighborhood borders as outlines. Always do arrows. 2022-03-04 14:34:31 +00:00
Dustin Carlino
81e739cff8 Undo the previous commit and push the proper rat-run definition described in #872 2022-03-04 14:29:56 +00:00
Dustin Carlino
04c3add1b6 Option A: filter out rat-runs using perimeter roads. #839 2022-03-04 14:26:57 +00:00
Dustin Carlino
c414b1b447 Speed up rat run viewer by not recalculating all of the panel. #839 2022-03-04 13:51:58 +00:00
Dustin Carlino
7f0f446fed Make the rat run viewer controls less weird; show heatmap or browse individual, don't mix the two. #839 2022-03-04 13:44:34 +00:00
Dustin Carlino
034a604949 While adding a filter in the rat run view, recalculate rat runs, but try to show the same path afterwards. #839
And stop trying to draw arrows there; it's sometimes very buggy, and
showing "A" and "B" markers does the job.
2022-03-04 09:42:26 +00:00
Dustin Carlino
0f0384949d Speed up cell drawing in Lyon, where logs about leaking out of the boundary happens frequently 2022-03-01 15:28:38 +00:00
Dustin Carlino
a421eaf900 Don't attempt to trace blocks around bridges/tunnels at all in Lyons, avoiding a crash there. #857 2022-03-01 15:24:59 +00:00
Dustin Carlino
8b8bf3bed6 And don't crash trying to draw the cells near such short filtered roads 2022-03-01 13:06:17 +00:00
Dustin Carlino
cbfe2265bb When detecting existing filters in OSM, use the road length after the edit has been applied. Found in Leeds. 2022-03-01 13:02:29 +00:00
Dustin Carlino
ed1602ab40 When switching between proposals, match up neighborhoods by the most blocks, instead of one arbitrary block. Even when boundaries change, the result is much more intuitive now. 2022-02-26 19:04:11 +00:00
Dustin Carlino
8920e593e2 Simplify colors in the boundary selection UI. Just emphasize the boundary roads, highlight the current neighborhood, and show blocks on the frontier 2022-02-26 18:53:32 +00:00
Dustin Carlino
de38808478 Put a loading screen around the freehand block selection, since it's painfully slow due to #841 2022-02-26 18:09:41 +00:00
Dustin Carlino
cec9b785dd Quickly sketch desired LTN cells freehand! 2022-02-24 10:36:47 +00:00
Dustin Carlino
b07177c21a Fix crash in the LTN and Ungap pathfinding tool, introduced in
2bf7ce232a
2022-02-24 09:47:10 +00:00
Dustin Carlino
82dff217a5 When the lasso tool is active, change the panel to explain the interaction 2022-02-24 09:33:12 +00:00
Dustin Carlino
13f3a7af73 Add a tool to quickly expand an LTN boundary by freehand lasso. #857 2022-02-24 09:33:12 +00:00
Dustin Carlino
78e4fc3f80 Make the lasso tool (buried in an old experiment in story mapping) a bit more usable, and lift it to widgetry 2022-02-24 09:33:12 +00:00
Dustin Carlino
9c0aedb575 When we can help it, don't shift road polylines twice. #860 2022-02-23 18:46:42 +00:00
Dustin Carlino
2890e6efcc Make the RawMap APIs for working with road center-lines less obnoxious 2022-02-23 15:27:27 +00:00
Dustin Carlino
7bb6132726 Open OSM from map_editor
(Move open_browser to widgetry)
2022-02-23 14:43:58 +00:00
Dustin Carlino
01e7c9c584 WIP 2022-02-23 14:31:31 +00:00
Dustin Carlino
ee314bf505 Add road labels to the boundary selection tool -- really need that context when colors otherwise cover stuff up 2022-02-23 14:11:42 +00:00
Dustin Carlino
8e076eb9ae Organize LTN code a bit, moving the auto heuristics under the filters module 2022-02-23 13:53:44 +00:00
Dustin Carlino
2a1b1283f2 Manage multiple proposals in the LTN tool at the same time, letting the user fluidly switch between them. #765 2022-02-23 13:48:49 +00:00
Dustin Carlino
d141a2a810 Upgrade all geo dependencies! No behavioral difference 2022-02-22 16:45:49 +00:00
Dustin Carlino
2e8d3970f5 Split out a CLI command to prebake one scenario for #861 2022-02-22 08:55:40 +00:00
Dustin Carlino
6590320571 Prebake results for São Miguel Paulista, so we can use all the differential dataviz #861 2022-02-21 21:16:49 +00:00
Dustin Carlino
161269a952 Redraw filters after using the undo button 2022-02-21 09:58:29 +00:00
Dustin Carlino
3531966052 Remove old tool for exporting roads to streetmix and shared-row formats. Nobody's ever used them, and now we're making https://github.com/a-b-street/osm2lanes that could have a translation layer if the need ever comes up. Closes #386 2022-02-20 19:17:43 +00:00
Dustin Carlino
7728297f33 With fresh puppy dog eyes, detect dog-leg intersections yet again. #654 2022-02-20 12:31:36 +00:00
Dustin Carlino
4583dac399 Organize raw_map code a bit more. Let's cleanly separate the detection of short roads from transforming them. #654
And add a convenient script to diff changed maps. (Motivated by
preserving the fixpoint behavior in Montlake)
2022-02-20 12:08:52 +00:00
Dustin Carlino
2bf7ce232a Port map_editor to the shared map-space World abstraction. #763
There may be small UX bugs, but the code is vastly simpler now, and all
main functionality works fine.
2022-02-20 11:01:57 +00:00
Dustin Carlino
e16e151b6a Organize the 7 runnable apps under a subdirectory. #844 [rebuild] [release] 2022-02-19 18:17:08 +00:00