fix random stuff that stopped building (but not tests)

This commit is contained in:
Dustin Carlino 2018-11-12 21:24:58 -08:00
parent 62182e6736
commit e9352aca40
3 changed files with 29 additions and 8 deletions

26
docs/design/tutorial.md Normal file
View File

@ -0,0 +1,26 @@
# Tutorial mode
## Synthetic maps
For tests and tutorial mode, I totally need the ability to create little
synthetic maps in a UI. Should be different than the main UI.
What are the 'abstract' objects to manipulate?
- Intersections... just points
- Move these, have the roads move too
- Ability to connect two intersections with a straight line road
- Edit lane type list in each direction
- This lets border nodes be created
- Place rectangular buildings
This should basically use raw_data as primitives... or actually, no. GPS would
be weird to work with, and roads should be expressed as the two intersections,
so we don't have to update coordinates when we move intersections.
How to map lanes to stuff that make/lanes.rs will like? Might actually be easy,
actually.
Ideally, would render the abstract thing in one pane, and live-convert to the
full map and display it with the editor code in the other pane. But as the
halloween experiment shows -- that'd require a fair bit more refactoring first.

View File

@ -1,4 +1,3 @@
use aabb_quadtree::geom::{Point, Rect};
use aabb_quadtree::QuadTree;
use ezgui::{Color, GfxCtx};
use geom::{Bounds, Line, Polygon, Pt2D};

View File

@ -18,13 +18,9 @@ fn main() {
}
// TODO don't hardcode
let bounds = geom::GPSBounds {
min_lon: -122.4416,
max_lon: -122.2421,
min_lat: 47.5793,
max_lat: 47.7155,
represents_world_space: false,
};
let mut bounds = geom::GPSBounds::new();
bounds.update(geom::LonLat::new(-122.4416, 47.5793));
bounds.update(geom::LonLat::new(-122.2421, 47.7155));
// TODO could use a better output format now
let mut map = map_model::raw_data::Map::blank();
if let Ok(parcels) = kml::load(&args[1], &bounds) {