Commit Graph

7778 Commits

Author SHA1 Message Date
Dustin Carlino
306b8c2dd8 When hovering on a road, show a heatmap of shortcuts through it 2022-07-20 15:12:11 +02:00
Dustin Carlino
8fbb3d36db Before melting occurs, more shortcut UI:
- handle roads with no shortcuts
- fill the road thickness exactly with the path shown
2022-07-20 15:12:11 +02:00
Dustin Carlino
aa060ac41c Iterate on the new shortcut UI.
- hotkeys
- preview an example while hovering
- avoid recalculating the neighbourhood all the time
2022-07-20 15:12:11 +02:00
Dustin Carlino
0809c6b925 Now remove the old shortcut viewer mode, and simplify the code / UI substantially! 2022-07-20 15:12:11 +02:00
Dustin Carlino
8e94eeeb17 Now make the browse shortcut controls appear.
It works, mvp. Lots of code cleanup / performance / edge cases needing
cleanup though.
2022-07-20 15:12:11 +02:00
Dustin Carlino
dd99afddc6 Always store shortcuts with a neighbourhood. This should simplify the next UI changes, and once some more issues are fixed, speed up performance of switching between UIs.
Some lesser-used features will get a bit slower, though.
2022-07-20 15:12:11 +02:00
Dustin Carlino
b4ba9f5394 Start a new control for viewing shortcuts related to a road.
Incomplete! Turns out this requires rearranging how layers of stuff are
drawn first.
2022-07-20 15:12:11 +02:00
Dustin Carlino
4f368ffe01 Reduce the scroll speed on web 2022-07-20 13:52:25 +02:00
Dustin Carlino
58068b0da0 Fix bug in previous label perf commit 2022-07-16 17:04:52 +01:00
Dustin Carlino
fc072fb277 Improve the performance of rendering road labels for a zoom level by
modifying polygons in-place and batching the transformations.
2022-07-16 16:21:43 +01:00
luz paz
7b63227407 Fix typos
Found via `codespell -q 3 -L crate,flor,nd,noice`
2022-07-16 08:55:39 +01:00
Dustin Carlino
82224870eb new release 2022-07-15 21:39:18 +01:00
Dustin Carlino
41fbeae7c1 Re-enable mac codesigning after fixing error in Apple dev account. #66 [rebuild] [release] 2022-07-15 20:42:34 +01:00
Dustin Carlino
7e2667bf37 Refactor places writing GeoJSON (working around https://github.com/georust/geojson/issues/170) 2022-07-15 09:37:07 +01:00
Dustin Carlino
1b216ccfac Style the LTN basemap further:
- dashed outlines for cyclepaths
- outlines with no fill for light rail (the width makes it clear enough)

... brought to you by the utter treasure that is the Vauxhall Tea House
Theatre.
2022-07-14 12:26:16 +01:00
Dustin Carlino
40e36023c5 Continue simplifying the LTN basemap:
- map border intersections
- parking lots
- traffic signals
2022-07-14 12:26:16 +01:00
Dustin Carlino
89184a3306 Split and rename the ColorScheme experiment flag, to be more clear with ongoing new experiments 2022-07-14 12:26:16 +01:00
Dustin Carlino
46df90a238 Fix a rare crash in the new LTN cell drawing 2022-07-14 12:26:16 +01:00
Dustin Carlino
cc9687b7d6 Remove the arbitrary colors from the browse neighbourhood screen. This also simplifies the underlying code a fair bit. 2022-07-14 12:26:16 +01:00
Dustin Carlino
9645e43133 Gently highlight the cell area and its borders when hovering on it. This
complements the previous change.
2022-07-14 12:26:16 +01:00
Dustin Carlino
624a7b0d58 Begin a radical simplification of the LTN tool's color scheme, based on
generous advice from Duncan Geere.   #911

- Remove most color from the basemap, mimicking Mapbox light
- Stop drawing cells as colored areas. Just draw the thick boundary
  between adjacent cells, showing that they're separated.

The previous behavior with colored cell areas is still available as an
advanced option, but disabled by default.
2022-07-14 12:26:16 +01:00
Dustin Carlino
602653d934 Shrink the boundary for Pune 2022-07-12 14:28:06 +01:00
Dustin Carlino
1a9b0715ac Expose ButtonBuilder label for a bus_spotting experiment. 2022-07-12 11:01:44 +01:00
Dustin Carlino
18b03139ac Remove the street_network and import_streets crates from this repo. They now live in the osm2streets repo! https://github.com/a-b-street/osm2streets/issues/41
Mostly straightforward, except for a slightly funny Cargo patch
2022-07-08 21:49:23 +01:00
Dustin Carlino
890198d78a Regenerate all data. Pretty much no behavioral change anywhere. 2022-07-08 21:26:46 +01:00
Dustin Carlino
ea71eb5f9a Write the end-to-end import that osm2streets will use. Don't refactor
too much yet
2022-07-08 21:26:46 +01:00
Dustin Carlino
d24ac90f4e Extract import_streets as a separate crate, in preparation for moving it to the osm2streets repo 2022-07-08 21:26:46 +01:00
Dustin Carlino
f3b0651a0e Detangle the OSM extraction process into the street_network part and everything else. 2022-07-08 21:26:46 +01:00
Dustin Carlino
10f3592316 Start splitting convert_osm into a piece that only produces a StreetNetwork.
Only partly done. The crux of this refactor, extracting stuff from OSM, remains...
2022-07-08 21:26:46 +01:00
Dustin Carlino
f09c88a244 Refactor dummy MapConfig constructor 2022-07-08 21:26:46 +01:00
Dustin Carlino
bafbb58eb9 Remove abstio dependency from street_network 2022-07-08 21:26:46 +01:00
Dustin Carlino
9980cf0a35 Split raw_map into a new street_network crate.
MapConfig has a new bool, so we will need to regenerate all data.
2022-07-08 21:26:46 +01:00
Dustin Carlino
c95c16454b The .zip release's Ungap the Map scripts were still assuming an older directory structure 2022-07-08 18:49:29 +01:00
Dustin Carlino
355513d5df Expose render_table for bus_spotting, which just needs the layouting and not any of the sorting/filtering stuff 2022-07-05 14:23:33 +01:00
Dustin Carlino
193672f19f Same for PromptInput 2022-06-29 18:06:09 -05:00
Dustin Carlino
6d2e5ee603 Lift ChooseSomething to widgetry for bus_spotting 2022-06-29 16:37:27 -05:00
Dustin Carlino
7af2c028fc Scrape bollards defined as OSM nodes, and plumb through to the LTN tool.
The approach is a bit brittle, but works fine in Bristol.

Regenerating everything...
2022-06-28 20:35:07 -05:00
Dustin Carlino
f8d30c411f Match amenities defined as areas in OSM to buildings within. This was
already working for multipolygon relations, but for some reason not done
for ways. This fixes lots of missing schools in Bristol.
2022-06-28 20:35:07 -05:00
Dustin Carlino
edfd696ff3 Disable elevation data everywhere except for Seattle and SF (just to keep an SRTM test case). Running everywhere slows down map regeneration on my current laptop, and doesn't add much benefit, since the SRTM support is unfinished. #82 2022-06-28 20:35:07 -05:00
Dustin Carlino
73073f8408 new release 2022-06-27 16:57:07 -05:00
Dustin Carlino
5d954b8d79 Try again. [rebuild] [release] 2022-06-27 16:23:58 -05:00
Dustin Carlino
6bf2f6ba32 Disable Mac codesigning. [rebuild] [release]
Suddenly the notary service is failing with "A required agreement is
missing or has expired." I can't login to Apple currently, so
workaround.
2022-06-27 15:59:36 -05:00
Dustin Carlino
f1818e2de8 Kick off a [rebuild] [release] 2022-06-27 14:21:23 -05:00
Dustin Carlino
635e967c6d Fix a crash with road labels in Pune.
This happens in any map large enough to allow zooming below 0.1. But
while trying to debug, also working around another possible crash with
road labels.
2022-06-27 13:57:02 -05:00
Dustin Carlino
48398612de Refactor UnitFmt constructors 2022-06-27 12:11:48 -05:00
Dustin Carlino
e47a985e54 Move more lane transformation logic into raw_map 2022-06-26 12:07:20 -05:00
Dustin Carlino
9841dad3ec Move two of the logic-heavy lane transformations into raw_map.
This temporarily breaks a few tests in other places, porting that code
over momentarily...
2022-06-26 12:07:20 -05:00
Dustin Carlino
820f3c936a Forge two-way streets from existing single-lane one-ways, through the power of narrow lane widths 2022-06-26 12:07:20 -05:00
Dustin Carlino
373595f250 Fix two cases where u-turns weren't created. #947
Also has the happy side effect of preventing modal filters from being
put on roads that lead to no-car roads (which're effectively dead-ends
for cars).

Regenerate everything
2022-06-25 08:54:56 -05:00
Michael Kirk
8dc7e43309 Optional: rely on new default f64 type for geo-types 2022-06-24 18:13:28 -05:00