Skip to content

Commit

Permalink
Get rid of the debug mode for the route snapper, in favor of https://…
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Apr 1, 2024
1 parent a47a440 commit 47187e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 73 deletions.
3 changes: 0 additions & 3 deletions web/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
notNull,
} from "./common";
import DebugMode from "./DebugMode.svelte";
import DebugGJ from "./DebugGJ.svelte";
import NeighbourhoodMode from "./edit/NeighbourhoodMode.svelte";
import NetworkMode from "./NetworkMode.svelte";
import RouteMode from "./RouteMode.svelte";
Expand Down Expand Up @@ -170,8 +169,6 @@
<RouteMode prevMode={$mode.prevMode} />
{:else if $mode.mode == "debug"}
<DebugMode />
{:else if $mode.mode == "debug-gj"}
<DebugGJ />
{/if}
{/if}
<DisableInteractiveLayers />
Expand Down
62 changes: 0 additions & 62 deletions web/src/DebugGJ.svelte

This file was deleted.

15 changes: 10 additions & 5 deletions web/src/NetworkMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@
downloadGeneratedFile($projectName + ".geojson", $app!.toSavefile());
}
function debugRouteSnapper() {
downloadGeneratedFile(
"debug_route_snapper.geojson",
$app!.toRouteSnapperGj(),
);
}
// TODO Hover on button and highlight on map
</script>

Expand All @@ -79,11 +86,6 @@
Route
</Link>
</li>
<li>
<Link on:click={() => ($mode = { mode: "debug-gj" })}>
Debug route snapper
</Link>
</li>
</ul>
</nav>
</div>
Expand Down Expand Up @@ -136,6 +138,9 @@
<hr />
<p>Current project: {$projectName}</p>
<button on:click={exportGJ}>Export project to GeoJSON</button>
<button class="secondary" on:click={debugRouteSnapper}>
Debug route-snapper
</button>
</div>

<div slot="map">
Expand Down
3 changes: 0 additions & 3 deletions web/src/stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export type Mode =
}
| {
mode: "debug";
}
| {
mode: "debug-gj";
};

export let map: Writable<Map | null> = writable(null);
Expand Down

0 comments on commit 47187e7

Please sign in to comment.