Dustin Carlino
7854823c28
Change the to/from permanent map edits APIs to be a little more ergonomic
2020-11-12 10:13:32 -08:00
Dustin Carlino
3583d068a6
Fix a bug introduced in e3b9c42506
on the proposal saver, and allow blocking-the-box on another Ballard intersection
2020-11-11 13:20:56 -08:00
Dustin Carlino
e5ff76e00c
Working on gridlock in the Ballard map. Allow blocking-the-box near the
...
famous Green Lake intersection, and add a little debug tool to see
current queue reservation length.
2020-11-11 12:43:28 -08:00
Dustin Carlino
aa966d7533
Upgrade a bunch of dependencies
2020-11-11 12:02:53 -08:00
Dustin Carlino
2a546e528c
Skip applying no-op edits and recalculating pathfinding when leaving sandbox mode. For large maps, it's a noticeable delay
2020-11-10 15:19:41 -08:00
Dustin Carlino
9d7b8744f5
Manually recreate panels when day/night color swaps.
2020-11-10 14:13:10 -08:00
Dustin Carlino
a4dfa2f40a
Automatically toggle between day/night colorschemes at 6am and 6pm, if
...
you pass --day_night. Fails to update all panels immediately.
2020-11-10 14:13:10 -08:00
Dustin Carlino
ef34b36d9f
Display tooltips in the collision viewer. #87
2020-11-10 12:49:08 -08:00
Dustin Carlino
07ac288e72
Refactor: rename Pt2D::from_gps to just gps.to_pt(bounds)
2020-11-10 12:00:43 -08:00
Dustin Carlino
e3b9c42506
Refactor: panel.replace() will set the same name on the new element
2020-11-10 11:49:55 -08:00
Dustin Carlino
b17d638d34
Display individual collisions and allow filtering by severity/time. #87
2020-11-10 11:41:35 -08:00
Dustin Carlino
8ab7855926
Update some throughput plot terminology. Also pin to upstream earcutr, now that a fix is merged. #331
2020-11-10 09:00:05 -08:00
Dustin Carlino
8ddaba0563
Base the night mode color scheme on Egregoria
2020-11-09 15:50:34 -08:00
Dustin Carlino
6ac49c3a50
Document how data/ is arranged. #195
2020-11-09 11:25:36 -08:00
Dustin Carlino
c9e24ce752
Wire up github actions to sometimes pass a feature flag to pin to a versioned directory in S3. And on that note, [rebuild] [release]. #326 , #195
2020-11-07 19:06:33 -08:00
Dustin Carlino
1b4e25e12f
Get the downloader UI to actually fetch stuff. #326
2020-11-07 18:39:15 -08:00
Dustin Carlino
54ced5b5b4
Stub out a native-only UI to download extra cities. Move the config
...
about what cities somebody has opted into downloading to JSON and a more
common place. #326
Note this is a breaking change for this config file, but I don't think
many people have started using this yet.
2020-11-07 16:20:27 -08:00
Dustin Carlino
e0a8d82b61
Reorganize polygon files to importer/config, instead of data/input.
...
Nothing in data/input should be under version control; all of it is
managed by the updater. #326
2020-11-06 10:10:03 -08:00
Dustin Carlino
31fcf1b863
Prototype a UI to view aggregated collisions. #87
2020-11-05 17:53:54 -08:00
Dustin Carlino
ad7a25f7f2
Prototype a simple data format for collision data. Import data for Leeds and London. #87
2020-11-05 16:16:40 -08:00
Dustin Carlino
ac6eff31ef
Rename some maps to remove the now-redundant city. #326
2020-11-05 15:24:02 -08:00
Dustin Carlino
3d84defb71
Also organize screenshots by city. #326
2020-11-05 14:42:40 -08:00
Dustin Carlino
cda586dfc9
Cleanup by moving some methods to belong to MapName. #326
2020-11-05 14:18:13 -08:00
Dustin Carlino
4f2cda8d53
Reorganize data/system/ files by city! The only interesting change is
...
abstutil::path_all_maps becoming abstutil::list_all_maps. #326
2020-11-05 14:05:48 -08:00
Dustin Carlino
576e64e246
Consolidate integration tests from the map_tests crate and some of the
...
stuff smushed into game for some reason
2020-11-05 12:42:52 -08:00
Dustin Carlino
c8f6e4d2c9
Cache the currently loaded Scenario, instead of re-reading it from the filesystem or (shudder) web. #377 ( #385 )
2020-11-05 09:25:02 -08:00
Dustin Carlino
67530bec07
Future-proof file organization by changing map_name from a string to a
...
struct. Whatever choices we make next about naming cities hierarchially
or not can be managed in just one place. #326
This is a pretty huge change, but the compiler gives reasonable
confidence it's correct. More bugs are likely to crop up in the next
step, when filenames start being namespaced by the city too.
2020-11-04 17:26:32 -08:00
Dustin Carlino
b47121ec8b
Make the generic KML viewer also support CSV files containing one (lat, lon) point. More convenient way to explore data for #87
2020-11-04 09:47:19 -08:00
Dustin Carlino
e99dd5bba7
Use inferred sidewalks for Leeds, after detecting another geometry bug
...
when building sidewalk corners. Raw sidewalks from OSM aren't suitable
for traffic simulation yet.
2020-11-04 08:46:06 -08:00
Dustin Carlino
c481567ebb
Cut over from Dropbox to S3. #195 , #326
...
Uploading files individually to Dropbox is flaky, and the unique URL per
file complicates data/MANIFEST.
While we're at it, start carving aside a directory structure for keeping
data for the last few releases.
[rebuild] to make sure github actions can download everything
2020-11-02 17:36:02 -08:00
Dustin Carlino
28aaae110e
Make the native and web file loaders detect binary/JSON files from the extenson. This unbreaks the dump_scenario example described at https://dabreegster.github.io/abstreet/dev/api.html#working-with-scenarios
2020-11-02 12:18:10 -08:00
Dustin Carlino
0fcd7af895
A few improvements for the OSM viewer:
...
- hotkey to expand the city picker to the full list
- add a button to edit an OSM way (just for roads, not sure there's
value for intersections, parking lots, or buildings)
- include the Z-order picker
2020-11-02 11:35:49 -08:00
Dustin Carlino
6e417340e4
Generate turns much more simply for intersections of footpaths. #161
...
Also gets rid of some annoying warnings about roads with missing names.
I could continue to skip the warning for more situations, but I think
this sort of data quality check could be done better in the OSM viewer.
2020-11-01 18:20:32 -08:00
Dustin Carlino
5862835196
Fix content type on the html web runner page. Without this, initially
...
loading jumped to >30s with a warning in the console. Back to the usual
few seconds with this fix.
2020-10-31 18:37:46 -07:00
Dustin Carlino
8920c2c0b8
Store gzipped files in S3 and decompress upon loading. A few basic tests
...
showed this is faster than downloading the uncompressed files, but of
course it probably depends on network speed vs CPU. #326
Also cut over the updater to use gzipped files using flate, instead of
single-file .zip's. [rebuild]
2020-10-31 18:09:48 -07:00
Dustin Carlino
3e6e10f45a
Show better error messages in the web file loader for HTTP errors, instead of trying to decode the HTML body of the 404 page
2020-10-31 10:10:01 -07:00
Dustin Carlino
ca2ff08d71
Don't render intersections between footways with a special color. Also
...
cut Kraków over to using the new experimental footpath support. #161
2020-10-30 14:11:00 -07:00
Michael Kirk
b1f4ca0b1b
loading screen ( #373 )
...
fancy loading screen
2020-10-29 18:39:51 -07:00
Dustin Carlino
771dcd1c34
Plumb through failures (like 404) through the web file loader
2020-10-29 15:54:01 -07:00
Dustin Carlino
1707b6fe37
Consolidate some PolyLine geometry code, and refactor some geom->geojson
...
mappings
2020-10-29 12:23:39 -07:00
Dustin Carlino
c8b565e57b
Make the city picker handle 100's of maps slightly better, by splitting out into a separate list with autocomplete
2020-10-28 16:08:09 -07:00
Dustin Carlino
37896c9d37
Don't draw building paths in the OSM viewer. They're messy and don't reveal anything semantically interesting, whereas in A/B Street it's kind of important to see which road a trip will begin/end at for buildings on corners
2020-10-28 12:17:05 -07:00
Dustin Carlino
0167b4be31
A tiny start to the great UI button refactor: make the "X" button
...
consistent. #331
2020-10-28 12:04:36 -07:00
Dustin Carlino
3b838c1225
Finish formatting distance/duration/speed units nicely. And remove the
...
number of lanes from trip info; it's misleading and not useful. #331
2020-10-28 11:33:48 -07:00
Dustin Carlino
3b26d25fe4
Build a wasm binary that jumps straight into the OSM viewer
2020-10-27 15:34:58 -07:00
Dustin Carlino
57b3d0719d
Make a way to jump straight into the OSM viewer from the command line. Also slightly collapses some of the app startup creation flow
2020-10-27 15:17:21 -07:00
Dustin Carlino
fd1afbad02
Speed up the OSM viewer's business search panel. It was constantly recalculating the entire thng
2020-10-27 12:52:26 -07:00
Dustin Carlino
ae62bf082e
Consolidate Slider and AreaSlider. They share most logic, just look different.
2020-10-27 12:13:20 -07:00
Dustin Carlino
6a8e01d4cd
Remove an unnecessary slider from the polygon debugger, and lock down set_percent, which is causing some scrollabr dragging bugs.
2020-10-27 11:31:37 -07:00
Dustin Carlino
fda4c4da7b
Refactor a few utilities, and use convex hull of the city boundaries to simplify them considerably. #326
2020-10-26 14:15:25 -07:00