diff --git a/package-lock.json b/package-lock.json index 7bdae019ab..a378edd6f1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5574,7 +5574,7 @@ }, "node_modules/scheme-sketcher-lib": { "version": "0.0.1", - "resolved": "git+ssh://git@github.com/acteng/scheme-sketcher-lib.git#c8754a8d97ac396435db680b5c9ab3e47a6e7ec9", + "resolved": "git+ssh://git@github.com/acteng/scheme-sketcher-lib.git#f283f7f41465ca7bb394b9c5c946c10b331b96b3", "dependencies": { "@maptiler/geocoding-control": "^1.3.1", "@turf/mask": "^7.0.0", diff --git a/src/routes/route_check/route_map/+page.svelte b/src/routes/route_check/route_map/+page.svelte index 16b043873b..45bc39a811 100644 --- a/src/routes/route_check/route_map/+page.svelte +++ b/src/routes/route_check/route_map/+page.svelte @@ -1,13 +1,30 @@
@@ -60,43 +109,77 @@ style="width: 30%; overflow-y: scroll; padding: 10px; border: 1px solid black;" > {#if map} - - {/if} + {#key url} + {#if url} + + {/if} + {/key} - {#if lengthHint} -

- LineStrings in the Network Map cover a total of - {lengthHint.toFixed(2)} - - kilometers. Depending what that map represents, you can use this value directly, - or hover on a piece of route on the map to see its individual length. -

- {/if} + {#if drawingRoute} + + {:else} +
+ + Set up drawing for the area shown on the map + +
+ + {#if routeAuthority} +

+ Currently drawing a route in {routeAuthority.properties.name} ({routeAuthority + .properties.level})) +

+ {/if} + +
- - + {#if $routeTool} +
+ startDrawing(false)}> + Draw a new route + + startDrawing(true)} + disabled={$state.summary.networkMap.features.length == 0} + > + Edit this route + +
+ {/if} + + {#if lengthHint} +

+ LineStrings in the Network Map cover a total of + {lengthHint.toFixed(2)} + + kilometers +

+ {/if} + + + + + + {/if} + {/if}
{#if routeAuthority} - - - + {/if} diff --git a/src/routes/route_check/route_map/DrawRoute.svelte b/src/routes/route_check/route_map/DrawRoute.svelte deleted file mode 100644 index d69baede1d..0000000000 --- a/src/routes/route_check/route_map/DrawRoute.svelte +++ /dev/null @@ -1,104 +0,0 @@ - - -{#if routeAuthority} -

- Currently drawing a route in {routeAuthority.properties.name} ({routeAuthority - .properties.level})) -

-{/if} - -{#key url} - {#if url} - - {/if} -{/key} - -
- - Get route snapper - -
- -
- -
- startDrawing(false)} - disabled={drawingRoute || $routeTool == null} - > - Draw a route - - startDrawing(true)} - disabled={drawingRoute || - $routeTool == null || - routeGj.features.length == 0} - > - Edit this route - -
-{#if drawingRoute && $routeTool} - -{/if} diff --git a/src/routes/route_check/route_map/MapEntry.svelte b/src/routes/route_check/route_map/MapEntry.svelte deleted file mode 100644 index e69de29bb2..0000000000