diff --git a/web/src/App.svelte b/web/src/App.svelte index b27331a..96e40b2 100644 --- a/web/src/App.svelte +++ b/web/src/App.svelte @@ -6,7 +6,6 @@ import { FillLayer, GeoJSON, MapLibre } from "svelte-maplibre"; import { Layout } from "./common"; import { RouteTool } from "./common/route_tool"; - import ManageSavefiles from "./ManageSavefiles.svelte"; import NeighbourhoodMode from "./NeighbourhoodMode.svelte"; import NetworkMode from "./NetworkMode.svelte"; import RouteMode from "./RouteMode.svelte"; @@ -79,20 +78,18 @@
+
+ +
+ {#if $app} -
+
{/if}
- {#if $app} - - {/if} -
- -
-
-
- -
-
- -
+
+ Save / load project +
+
+ +
+
+ +
+
diff --git a/web/src/MapLoader.svelte b/web/src/MapLoader.svelte index 12bb9c9..435a0c2 100644 --- a/web/src/MapLoader.svelte +++ b/web/src/MapLoader.svelte @@ -77,38 +77,36 @@ -
-
- -
- -
- -
+
+ +
- (msg = e.detail)} - on:error={(e) => window.alert(e.detail)} - /> +
+
+ + (msg = e.detail)} + on:error={(e) => window.alert(e.detail)} +/> diff --git a/web/src/NeighbourhoodMode.svelte b/web/src/NeighbourhoodMode.svelte index 7cb91df..24d4a11 100644 --- a/web/src/NeighbourhoodMode.svelte +++ b/web/src/NeighbourhoodMode.svelte @@ -11,6 +11,7 @@ import ChangeModalFilter from "./ChangeModalFilter.svelte"; import { notNull, PropertiesTable } from "./common"; import FreehandLine from "./FreehandLine.svelte"; + import ManageSavefiles from "./ManageSavefiles.svelte"; import RenderNeighbourhood from "./RenderNeighbourhood.svelte"; import SplitComponent from "./SplitComponent.svelte"; import { app, map, mode } from "./stores"; @@ -98,21 +99,45 @@ addingMultipleFilters = false; } + + function resetTitle() { + // TODO Confirm + $mode = { mode: "title" }; + $app = null; + }
+

Editing modal filters

+

+ Now that you've defined a neighbourhood boundary, you can see the possible + shortcuts that vehicles are currently able to take through it. You can add + a new modal filter to try and solve this. The colored "cell" areas show + what's reachable for drivers without leaving the boundary you've drawn. +

+ +
+ +
- +
Change this neighbourhood boundary
+ +
+
-
- -
-
- -
-
+
+
+ +
+ +
+
diff --git a/web/src/NetworkMode.svelte b/web/src/NetworkMode.svelte index 1c15d1c..f6ce0b6 100644 --- a/web/src/NetworkMode.svelte +++ b/web/src/NetworkMode.svelte @@ -1,18 +1,44 @@
+

Define neighbourhood boundaries

+

+ Inside the neighbourhood you define, the goal is to eliminate (or + deliberately permit) through-traffic. An appropriate neighbourhood + boundary depends on many factors. The simplest approach is to find the + area bounded on all sides by "main" roads, which are designed for higher + traffic volumes. There are many other considerations, though -- maybe + severances like rivers or rail should be part of a boundary. Bridges and + tunnels near a boundary may be confusing as well. And note that your + boundary may not match the conventional definition of "neighbourhood." +

+ +
+ +
Draw a new boundary
+ +
+
diff --git a/web/src/SetBoundaryMode.svelte b/web/src/SetBoundaryMode.svelte index c3dae32..4125af5 100644 --- a/web/src/SetBoundaryMode.svelte +++ b/web/src/SetBoundaryMode.svelte @@ -22,7 +22,9 @@ }; route_tool.clearEventListeners(); } catch (err) { - window.alert("Known georust bug hit, sorry"); + window.alert( + "Known georust bug hit, sorry. You may need to just refresh the page now." + ); $mode = { mode: "network", }; diff --git a/web/src/TitleMode.svelte b/web/src/TitleMode.svelte index e009530..21f65a1 100644 --- a/web/src/TitleMode.svelte +++ b/web/src/TitleMode.svelte @@ -14,8 +14,38 @@
{#if showModal} (showModal = false)} let:dialog> -

The LTN tool

-

...

+

The Low-traffic neighbourhood (LTN) tool, v2

+

+ This is an experimental version of the + A/B Street LTN tool. Most parts of it do not work yet, and you should probably use the + other version of the tool instead. +

+

To use this tool, you need to:

+
    +
  1. Choose your study area to analyze
  2. +
  3. Define one or more neighbourhood boundaries
  4. +
  5. + Optionally, to fix the basemap data on existing modal filters, turn + restrictions, one-ways, etc +
  6. +
  7. + To create one or more proposals with new modal filters, and explore + their effects +
  8. +
+

+ This tool is created by Dustin Carlino + and relies heavily on + OpenStreetMap data. +

{/if} +

Choose your study area

+
+ {#if $map && wasmReady} {:else}