Skip to content

Commit

Permalink
Update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ginnyTheCat authored and dabreegster committed Mar 20, 2024
1 parent e90de21 commit 0893453
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
6 changes: 0 additions & 6 deletions osm2streets-js/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ pub struct ImportOptions {
dual_carriageway_experiment: bool,
sidepath_zipping_experiment: bool,
inferred_sidewalks: bool,
<<<<<<< HEAD
inferred_kerbs: bool,
=======
date_time: Option<NaiveDateTime>,
>>>>>>> cedde4a (Add time output)
}

#[wasm_bindgen]
Expand Down Expand Up @@ -63,11 +60,8 @@ impl JsStreetNetwork {

let mut cfg = MapConfig::default();
cfg.inferred_sidewalks = input.inferred_sidewalks;
<<<<<<< HEAD
cfg.inferred_kerbs = input.inferred_kerbs;
=======
cfg.date_time = input.date_time;
>>>>>>> cedde4a (Add time output)

let mut timer = Timer::throwaway();
let (mut street_network, doc) =
Expand Down
13 changes: 9 additions & 4 deletions web/src/common/import/Osm2streetsSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
/>
Enable sidepath zipping experiment
</label>
<label>
<input type="datetime-local" bind:value={date_time} />
Change the time of date
</label>
<div>
Sidewalks:
<label>
Expand All @@ -61,6 +57,12 @@
<input type="checkbox" bind:checked={settings.inferred_kerbs} />
Infer kerbs
</label>
<div>
Change the time and date:
<label>
<input type="datetime-local" bind:value={date_time} />
</label>
</div>
</details>

<style>
Expand All @@ -84,6 +86,9 @@
margin-inline-start: 1em;
text-indent: -1em;
}
div {
padding: 0.25em 0;
}
div > label {
white-space: nowrap;
}
Expand Down

0 comments on commit 0893453

Please sign in to comment.