Commit 8fb3416 1 parent bf36396 commit 8fb3416 Copy full SHA for 8fb3416
File tree 13 files changed +202
-156
lines changed
13 files changed +202
-156
lines changed Original file line number Diff line number Diff line change 61
61
<hr />
62
62
63
63
{#if $app }
64
- <div >
65
- <button class ="secondary" on:click ={zoomToFit }
66
- >Zoom to fit study area</button
67
- >
68
- </div >
64
+ <button class ="secondary" on:click ={zoomToFit }
65
+ >Zoom to fit study area</button
66
+ >
69
67
{/if }
70
68
<BasemapPicker />
71
69
</div >
Original file line number Diff line number Diff line change 16
16
<div slot =" sidebar" >
17
17
<h1 >Debug GJ</h1 >
18
18
19
- <div >
20
- <button on:click ={() => ($mode = { mode: " network" })}>Back</button >
21
- </div >
19
+ <button on:click ={() => ($mode = { mode: " network" })}>Back</button >
22
20
</div >
23
21
24
22
<div slot =" map" >
Original file line number Diff line number Diff line change 10
10
<div slot =" sidebar" >
11
11
<h1 >Debug mode</h1 >
12
12
13
- <div >
14
- <button on:click ={() => ($mode = { mode: " neighbourhood" })}
15
- >Back to editing</button
16
- >
17
- </div >
13
+ <button on:click ={() => ($mode = { mode: " neighbourhood" })}
14
+ >Back to editing</button
15
+ >
18
16
</div >
19
17
20
18
<div slot =" map" >
Original file line number Diff line number Diff line change 50
50
51
51
<details >
52
52
<summary >Save / load project</summary >
53
- <div ><button on:click ={saveGj }>Save to GJ</button ></div >
54
- <div >
55
- <label >
56
- Load edits from GJ
57
- <input bind:this ={fileInput } on:change ={loadFile } type =" file" />
58
- </label >
59
- </div >
60
- <div >
53
+ <button on:click ={saveGj }>Save to GJ</button >
54
+ <label >
55
+ Load edits from GJ
56
+ <input bind:this ={fileInput } on:change ={loadFile } type =" file" />
57
+ </label >
58
+ <div style =" display: flex; justify-content: space-between;" >
61
59
<button on:click ={saveLocalStorage }>Save to local storage</button ><button
62
60
on:click ={loadLocalStorage }>Load from local storage</button
63
61
>
Original file line number Diff line number Diff line change 36
36
37
37
<SplitComponent >
38
38
<div slot =" sidebar" >
39
- <h1 >Define neighbourhood boundaries</h1 >
39
+ <nav aria-label =" breadcrumb" >
40
+ <!-- svelte-ignore a11y-invalid-attribute -->
41
+ <ul >
42
+ <li >
43
+ <a href ="#" on:click ={() => ($mode = { mode: " title" })}
44
+ >Change study area</a
45
+ >
46
+ </li >
47
+ <li >Define neighbourhood boundaries</li >
48
+ </ul >
49
+ </nav >
50
+
51
+ <nav >
52
+ <ul >
53
+ <li >
54
+ <button
55
+ class =" outline"
56
+ on:click ={() => ($mode = { mode: " route" , prevMode: " network" })}
57
+ >Route</button
58
+ >
59
+ </li >
60
+ <li >
61
+ <button
62
+ class =" outline"
63
+ on:click ={() => ($mode = { mode: " debug-gj" })}
64
+ >Debug route snapper</button
65
+ >
66
+ </li >
67
+ </ul >
68
+ </nav >
69
+
40
70
<p >
41
71
Inside the neighbourhood you define, the goal is to eliminate (or
42
72
deliberately permit) through-traffic. An appropriate neighbourhood
48
78
boundary may not match the conventional definition of "neighbourhood."
49
79
</p >
50
80
51
- <div >
52
- <button on:click ={() => ($mode = { mode: " title" })}
53
- >Start over and change your study area</button
54
- >
55
- </div >
56
- <div >
57
- <button on:click ={newBoundary }>Draw a new boundary</button >
58
- </div >
81
+ <button on:click ={newBoundary }>Draw a new boundary</button >
59
82
{#each boundaryNames as name }
60
83
<div style =" display: flex; justify-content: space-between;" >
61
84
<button class ="outline" on:click ={() => pickNeighbourhood (name )}
67
90
>
68
91
</div >
69
92
{/each }
70
- <div >
71
- <button on:click ={() => ($mode = { mode: " route" , prevMode: " network" })}
72
- >Route</button
73
- >
74
- </div >
75
- <div >
76
- <button on:click ={() => ($mode = { mode: " debug-gj" })}
77
- >Debug route snapper</button
78
- >
79
- </div >
80
93
81
94
<hr />
82
95
<ManageSavefiles />
Original file line number Diff line number Diff line change 41
41
42
42
<SplitComponent >
43
43
<div slot =" sidebar" >
44
- <div ><button on:click ={back }>Back</button ></div >
44
+ <nav aria-label =" breadcrumb" >
45
+ <!-- svelte-ignore a11y-invalid-attribute -->
46
+ <ul >
47
+ <li >
48
+ <a href ="#" on:click ={() => ($mode = { mode: " title" })}
49
+ >Change study area</a
50
+ >
51
+ </li >
52
+ <li >
53
+ <a href ="#" on:click ={() => ($mode = { mode: " network" })}
54
+ >Change neighbourhood</a
55
+ >
56
+ </li >
57
+ {#if prevMode == " neighbourhood" }
58
+ <li >
59
+ <a href ="#" on:click ={() => ($mode = { mode: " neighbourhood" })}
60
+ >Editing modal filters</a
61
+ >
62
+ </li >
63
+ {/if }
64
+ <li >Routing</li >
65
+ </ul >
66
+ </nav >
67
+
68
+ <button on:click ={back }>Back</button >
45
69
46
70
<p >Drag markers for a route</p >
47
71
<p >
Original file line number Diff line number Diff line change 43
43
<SplitComponent >
44
44
<div slot =" sidebar" >
45
45
<h1 >Draw your neighbourhood boundary for {name }</h1 >
46
- <p >TODO: maybe move the instructions from the previous screen to here...</p >
47
-
48
- <SnapPolygonControls route _tool={notNull ($route _tool)} />
49
46
50
- <div >
47
+ <div style = " display: flex; justify-content: space-between; " >
51
48
<button on:click ={() => notNull ($route_tool ).finish ()}>Finish</button >
52
- <button on:click ={onFailure }>Cancel</button >
49
+ <button class = "secondary" on:click ={onFailure }>Cancel</button >
53
50
</div >
51
+
52
+ <p >TODO: maybe move the instructions from the previous screen to here...</p >
53
+
54
+ <SnapPolygonControls route _tool={notNull ($route _tool)} />
54
55
</div >
55
56
56
57
<div slot =" map" >
Original file line number Diff line number Diff line change 83
83
84
84
<SplitComponent >
85
85
<div slot =" sidebar" >
86
- <div ><button on:click ={back }>Back to editing</button ></div >
86
+ <nav aria-label =" breadcrumb" >
87
+ <!-- svelte-ignore a11y-invalid-attribute -->
88
+ <ul >
89
+ <li >
90
+ <a href ="#" on:click ={() => ($mode = { mode: " title" })}
91
+ >Change study area</a
92
+ >
93
+ </li >
94
+ <li >
95
+ <a href ="#" on:click ={() => ($mode = { mode: " network" })}
96
+ >Change neighbourhood</a
97
+ >
98
+ </li >
99
+ <li >
100
+ <a href ="#" on:click ={back }>Editing modal filters</a >
101
+ </li >
102
+ <li >Viewing shortcuts</li >
103
+ </ul >
104
+ </nav >
105
+
106
+ <button on:click ={back }>Back to editing</button >
87
107
88
108
{#if state .state == " neutral" }
89
109
<p >Click a road to see shortcuts</p >
96
116
real traffic patterns; it's just looking for any possible path. This
97
117
view lets you understand the limits of this assumption.
98
118
</p >
99
- <div >
100
- <button on:click ={() => (state = { state: " neutral" })}
101
- >Pick a different road</button
102
- >
103
- </div >
104
- <div >
119
+ <button on:click ={() => (state = { state: " neutral" })}
120
+ >Pick a different road</button
121
+ >
122
+ <div style =" display: flex; justify-content: space-between;" >
105
123
<button disabled ={state .shortcutIndex == 0 } on:click ={prev }>
106
- Prev
124
+ Previous
107
125
</button >
108
126
{state .shortcutIndex + 1 } / {state .gj .features .length }
109
127
<button
Original file line number Diff line number Diff line change 10
10
// TODO Z-ordering won't work when we change, because layerId() doesn't get recalculated
11
11
</script >
12
12
13
- <div >
13
+ <label >
14
14
Basemap:
15
15
<select bind:value ={choice }>
16
16
<option value =" dataviz" >MapTiler Dataviz</option >
17
17
<option value =" streets" >MapTiler Streets</option >
18
18
<option value =" hybrid" >MapTiler Satellite</option >
19
19
<option value =" uk-openzoomstack-light" >OS Open Zoomstack</option >
20
20
</select >
21
- </div >
21
+ </label >
Original file line number Diff line number Diff line change 83
83
{#if polygonTool }
84
84
<PolygonControls {polygonTool } />
85
85
{:else }
86
- <div >
87
- <button type ="button" on:click ={importCurrentView }
88
- >Import current view</button
89
- >
90
- </div >
86
+ <button type ="button" on:click ={importCurrentView }>Import current view</button
87
+ >
91
88
92
89
<i >or...</i >
93
90
94
- <div >
95
- <button type ="button" on:click ={startPolygonTool }
96
- >Draw an area to import on the map</button
97
- >
98
- </div >
91
+ <button type ="button" on:click ={startPolygonTool }
92
+ >Draw an area to import on the map</button
93
+ >
99
94
{/if }
You can’t perform that action at this time.
0 commit comments