Dustin Carlino
876930d6e6
Clarify Polygon::area comment
2022-06-23 08:39:12 -05:00
Michael Kirk
7188721a96
use unreleased polylabel to avoid duplicated geo dep
2022-06-23 08:24:27 -05:00
Dustin Carlino
be106d7141
Improve unzoomed road labels by continuing to adjust the size between zooms 1 and 4.
2022-06-22 09:10:46 -05:00
Dustin Carlino
0a59cedb98
Import Keighley
2022-06-21 13:56:55 +01:00
Dustin Carlino
ad06d145d4
Regenerate everything after all the geom changes. Also likely picking up minor diffs from using new georust
2022-06-20 23:17:19 +01:00
Dustin Carlino
1783ea6b2c
Fix critical scary Polygon bug that was swapping exterior/interior
2022-06-20 23:17:19 +01:00
Dustin Carlino
4606575c4c
Remove an API to create triangles
2022-06-20 23:17:19 +01:00
Dustin Carlino
94dea10433
Remove the custom point-in-polygon check
2022-06-20 23:17:19 +01:00
Dustin Carlino
0a4bba8606
Consolidate geom <->geo Polygon implementations
2022-06-20 23:17:19 +01:00
Fabian Gonzalez
a1a5f5f01a
Migrate from Stretch to Taffy ( #942 )
2022-06-20 17:35:11 +01:00
Dustin Carlino
6e5b874637
Add a workaround for bus_spotting's World + tooltips problem
2022-06-20 13:29:24 +01:00
Dustin Carlino
84ecf57067
Remove the gigantic list of buttons from the giant city picker. There's
...
noticeable lag to render text for the ~180 maps, and I don't see how the
massive list of buttons is helpful anyway. Just use the autocomplete.
2022-06-20 11:33:51 +01:00
Dustin Carlino
0eb366a5e3
After downloading missing files on native, continue loading the new map.
...
Don't make the user click something again. #931
2022-06-20 11:30:52 +01:00
Ilias
d3333d813d
Feature to repeat days with noise on departure ( #926 )
...
* Added repeat days with noise function & enum
* Added widgets and controls
* Modified description
* Refactor to have an Option<usize> in signature instead of a whole new similar function
* Added noise parameter + xor random shift + clamped substraction
* Added ref to the XorShiftRng to ScenarioModifiers::apply calls
* Added noise to pushed ScenarioModifier
* Finish up the PR:
- consistently reuse the RNG in the UI like tests/headless
- slight style tweaks
Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2022-06-14 18:23:15 +01:00
Dustin Carlino
34487a3322
Upgrade to new georust, which subsumes geo-boolean-op.
...
Based on https://github.com/michaelkirk/abstreet/tree/mkirk/test-bools
Note geojson isn't upgraded yet, due to contours. And the old version of
geo is still pulled in, due to polylabel.
2022-06-13 17:30:51 +01:00
Dustin Carlino
58a1a5e0a2
new release
2022-06-12 18:04:20 +01:00
Dustin Carlino
91ce5a1637
Update a few dependencies to deal with some security vulnerabilities. [rebuild] [release]
...
This bloats the build a bit, by bringing in multiple versions of some
deps. It'd be nice to go upgrade everything soon...
2022-06-12 17:09:06 +01:00
Dustin Carlino
360870a72c
Refactor convert_osm::Options default settings
2022-06-12 16:35:11 +01:00
Dustin Carlino
0da4d75b69
When starting in consultation mode with an overriden boundary, make that
...
"stickier" by always resetting to it. [rebuild] [release]
It adds a duplicate entry to AltProposals and messes up the concept of
active proposal, though...
2022-06-12 10:36:36 +01:00
Dustin Carlino
86f27ca790
Sometimes improve the overlapping paths rendering for intersections by
...
joining up corners. #884
Some cases look better, others are still missing.
2022-06-12 09:56:43 +01:00
Dustin Carlino
293987999e
Don't crash when planning a route after editing one-ways. Use Dijkstra's
...
for pathfinding always, so we don't need to recalculate CHs after
changing directions.
2022-06-12 09:36:48 +01:00
Dustin Carlino
08cc1e2722
Adjust tooltip phrasing to hopefully indicate the exact number of shortcuts isn't meaningful
2022-06-12 09:16:06 +01:00
Dustin Carlino
4f0b150d68
Mechanically switch to British spelling of neighbourhood.
...
This is yet another breaking change in the LTN proposal format
2022-06-12 09:10:27 +01:00
Dustin Carlino
f128e3d67e
Add a method to World for bus_spotting
2022-06-11 14:44:33 +01:00
Dustin Carlino
898b665dff
Fill in intersections for the overlapping path drawing. #884
...
Also lift this tool to map_gui
2022-06-11 14:05:48 +01:00
Dustin Carlino
5bf9790dbc
Draw partly overlapping paths in the LTN route tool using a new idea. #884 ( #939 )
...
Just divide each road segment by the number of colors needed.
Intersections aren't handled yet.
2022-06-10 15:42:33 +01:00
Dustin Carlino
54e240f2c0
Make the LTN route planner easier to see, by drawing all routes highlighted. Previously the faded interior of neighbourhoods covered things up partly.
2022-06-10 14:40:53 +01:00
Dustin Carlino
9a7d4c3442
Fix the (newish) ltn_proposals directory. The updater clobbered it, and it wasn't included in the .zip release [rebuild]
2022-06-10 10:00:33 +01:00
Dustin Carlino
1df9eb940a
Adding a MIME type for bus_spotting
2022-06-07 09:40:44 +01:00
Dustin Carlino
c8d5f3068b
Add a more customized PopupMsg for bus_spotting
2022-06-06 14:29:54 +01:00
Wuping Xin
5d1038d57b
Minor typo fix tests/main.rs ( #932 )
2022-06-02 19:48:57 +01:00
Dustin Carlino
7bdca2411f
Fix wasm build error that is somehow not showing up in abstreet web builds, only in bus_spotting
2022-05-31 10:18:11 +01:00
Dustin Carlino
7bb1016905
new release
2022-05-30 17:03:29 +01:00
Dustin Carlino
099e674d76
Slight UI adjustment to LTN undo. [rebuild] [release]
2022-05-30 16:41:57 +01:00
Dustin Carlino
7347e15703
Initial support for creating/editing one-way streets in the LTN tool.
...
Many TODOs:
- nicer UI
- save the changes in the proposal (and undo support)
- make sure pathfinding gets updated
- detect and show error states
2022-05-30 16:06:51 +01:00
Dustin Carlino
a430f644ee
Refactor the polygon editor tool, and use it in the LTN tool too.
...
Override that Bristol boundary. #916
And this is another breaking LTN proposal schema change.
2022-05-30 13:10:57 +01:00
Dustin Carlino
dfa0e83ea4
Bake in an LTN proposal, and make the consultation mode flag load it. #916
...
Don't yet allow listing LTN proposals from the UI or mimicking all the
user-generated/community/remote proposal mechanics.
2022-05-30 12:15:56 +01:00
Dustin Carlino
36e0d4758a
Fix a crash in Bristol (and likely elsewhere) with the new highlighting for boundary roads
2022-05-30 11:35:10 +01:00
Dustin Carlino
d98f18bb18
Create a more careful API for handling one-way roads everywhere, in
...
preparation for modifying them in the LTN tool.
Regenerated everything. This had some effects on overlapping road
shrinking, mostly positive. Screenshot diffs all changed, since I
switched laptops again.
2022-05-27 17:01:36 +01:00
Dustin Carlino
a0ff011aef
In preparation for handling cul-de-sacs and buildings along perimeter
...
roads, just refactor the LTN partitioning internals.
This breaks the LTN serialization, sadly...
2022-05-27 13:39:30 +01:00
Dustin Carlino
cf2fb316f4
Stop drawing yellow center lines in GB
2022-05-26 14:58:30 +01:00
Dustin Carlino
5fb52fce8b
Use a traffic signal icon in the LTN tool ( #927 )
2022-05-26 14:41:56 +01:00
Dustin Carlino
988a602342
Hide some details from the zoomed view in the LTN tool: driveways, crossings, stop signs. Most are flat-out incorrect, especially in the UK.
2022-05-26 13:01:21 +01:00
Dustin Carlino
a89834af49
Just writing down a makefile trick where I'm likely to see it
2022-05-26 12:36:17 +01:00
Dustin Carlino
2c7ebbcc13
Prepare for editing one-ways by better hiding the API of editing filters.
2022-05-25 13:10:30 +01:00
Dustin Carlino
df854db143
Make the A/B test mode easier to use, but syncing up the time of the simulation directly when swapping before/after.
2022-05-25 10:05:21 +01:00
James Nebeker
ee7f843ff6
Fixes issue #173 Part B ( #917 )
...
* Fixes issue #173 Part B
This commit changes the color of road labels to white, and adds a black
stroke. It also removes center line dashes from the beginning of the
road label to the end.
* cargo fmt and fix syntax warnings
* Adds changes from PR #917 Review
This commit adds the changes requested in PR #917 .
* Rebase and cargo fmt
* A few cleanups:
- make render_center_line private
- make usage of the 0.1 factor more clear
- work in Distance::meters
* Disable the curvey label experiment before merging, but now we don't
need to draw the background for non-curvey labels either!
* Draw the full center-line when appropriate
* Screenshot diff
Co-authored-by: Dustin Carlino <dabreegster@gmail.com>
2022-05-24 14:55:23 +01:00
Dustin Carlino
8f49dddaee
Import roads that happen to have trams on them, for Geneva. This was previously breaking in Berlin, but now we can skip over ways with overlapping geometry.
...
First time regenerating everything on another laptop; there may be some
weird changes unrelated to stuff here (like montlake prebaked data?),
but nothing that seems problematic
2022-05-23 15:42:55 +01:00
Dustin Carlino
0c27be5491
Draw the boundary roads in the highlighted area with this one weird trick geometers don't want you to know
2022-05-23 14:24:52 +01:00
Dustin Carlino
b236c23112
Update to Rust 1.61
2022-05-21 17:17:02 +01:00