Skip to content

Commit

Permalink
Show snappable waypoints when transitioning from freehand to snapped,…
Browse files Browse the repository at this point in the history
… and remove the avoid doubling back option
  • Loading branch information
dabreegster committed Sep 12, 2024
1 parent 5f5cb06 commit 3133a11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"humanize-string": "^3.0.0",
"js-cookie": "^3.0.5",
"maplibre-gl": "^4.0.2",
"scheme-sketcher-lib": "github:acteng/scheme-sketcher-lib",
"scheme-sketcher-lib": "github:acteng/scheme-sketcher-lib#show_snappables",
"svelte": "^4.2.10",
"svelte-maplibre": "^0.9.7",
"uuid": "^9.0.1"
Expand Down
1 change: 1 addition & 0 deletions src/lib/maplibre/zorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export let layerZorder = [
sketch("route-points"),
sketch("route-lines"),
sketch("route-polygons"),
sketch("route-debug-nodes"),

// Draw most things beneath text road labels. These IDs come from the
// MapTiler basemap, and there are different ones for each basemap. Note for
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SketchSchemes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
{:else if $mode.mode == "split-route"}
<SplitRouteMode {cfg} {gjSchemes} />
{/if}
<RouteSnapperLayer {cfg} />
<RouteSnapperLayer {gjSchemes} {cfg} />
<PolygonToolLayer {cfg} />
{/if}
</MapLibreMap>
Expand Down

0 comments on commit 3133a11

Please sign in to comment.