diff --git a/package-lock.json b/package-lock.json index d8f39ad9..97ad7399 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,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#route_snapper_next_gen", "svelte": "^4.2.10", "svelte-maplibre": "^0.9.7", "uuid": "^9.0.1" @@ -2737,46 +2737,6 @@ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, - "node_modules/maplibre-draw-polygon": { - "version": "0.0.1", - "resolved": "git+ssh://git@github.com/dabreegster/maplibre-draw-polygon.git#7230f333701b2663a77df9cb6bf375f35c0a9d61", - "dependencies": { - "@turf/nearest-point-on-line": "^6.5.0", - "svelte-maplibre": "^0.8.2" - }, - "peerDependencies": { - "svelte": "^4.0.0" - } - }, - "node_modules/maplibre-draw-polygon/node_modules/svelte-maplibre": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/svelte-maplibre/-/svelte-maplibre-0.8.5.tgz", - "integrity": "sha512-BMLlrENxFC7ezMf4l9HJJEvDSGpoA8SLcVjyV87nV/aN6OCLh5PAjMBtE4Yck7phynrZininzmV4Q13LAD3bjg==", - "dependencies": { - "d3-geo": "^3.1.0", - "just-compare": "^2.3.0", - "just-flush": "^2.3.0", - "maplibre-gl": "^4.0.0", - "pmtiles": "^3.0.3" - }, - "peerDependencies": { - "@deck.gl/core": "^8.8.0", - "@deck.gl/layers": "^8.8.0", - "@deck.gl/mapbox": "^8.8.0", - "svelte": "^3.54.0 || ^4.0.0" - }, - "peerDependenciesMeta": { - "@deck.gl/core": { - "optional": true - }, - "@deck.gl/layers": { - "optional": true - }, - "@deck.gl/mapbox": { - "optional": true - } - } - }, "node_modules/maplibre-gl": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-4.0.2.tgz", @@ -3227,9 +3187,9 @@ } }, "node_modules/route-snapper": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/route-snapper/-/route-snapper-0.4.4.tgz", - "integrity": "sha512-G12I5dpUyKGS0slqoIBexs2DKLn5gPKGA8ZgybZb32N58Ld94p6c0kTBGgL1KrhYRo3Wf9mR6HIVKYjT5eiVfQ==" + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/route-snapper/-/route-snapper-0.4.9.tgz", + "integrity": "sha512-SjkZfWnQm45hawSS8w0CttpvnQlPISBlX/gn0Ssj5+9+lJiAI5ct0D6zAqf0ijn5/o5PZO2wPubBsJJ/rDKqgw==" }, "node_modules/route-snapper-ts": { "version": "0.0.8", @@ -3336,19 +3296,18 @@ }, "node_modules/scheme-sketcher-lib": { "version": "0.0.1", - "resolved": "git+ssh://git@github.com/acteng/scheme-sketcher-lib.git#224ac1782be387671364d5cb71bf44e70888032f", + "resolved": "git+ssh://git@github.com/acteng/scheme-sketcher-lib.git#eb07b4cbc87756e6980a7c65a1303374da3dc90b", "dependencies": { "@maptiler/geocoding-control": "1.2.3", "@turf/mask": "^7.0.0", "@turf/nearest-point-on-line": "^7.0.0", "govuk-frontend": "^5.4.1", "govuk-svelte": "github:acteng/govuk-svelte", - "maplibre-draw-polygon": "github:dabreegster/maplibre-draw-polygon", "maplibre-gl": "^4.0.2", - "route-snapper": "^0.4.1", + "route-snapper": "^0.4.9", "route-snapper-ts": "^0.0.8", "sass": "^1.77.8", - "svelte-maplibre": "^0.9.7", + "svelte-maplibre": "^0.9.14", "uuid": "^10.0.0" }, "peerDependencies": { @@ -3737,11 +3696,12 @@ } }, "node_modules/svelte-maplibre": { - "version": "0.9.7", - "resolved": "https://registry.npmjs.org/svelte-maplibre/-/svelte-maplibre-0.9.7.tgz", - "integrity": "sha512-Z0FNCDMcoan/7ZzlICWU2j+BO32Xs3tyGL8YvCzeO5zxzTdIKo3mqHKXkmkKslL87+2cSbFyc2TSqLDNIOOoeA==", + "version": "0.9.14", + "resolved": "https://registry.npmjs.org/svelte-maplibre/-/svelte-maplibre-0.9.14.tgz", + "integrity": "sha512-5HBvibzU/Uf3g8eEz4Hty5XAwoBhW9Tp7NQEvb80U/glR/M1IHyzUKss6XMq8Zbci2wtsASeoPc6dA5R4+0e0w==", "dependencies": { "d3-geo": "^3.1.0", + "dequal": "^2.0.3", "just-compare": "^2.3.0", "just-flush": "^2.3.0", "maplibre-gl": "^4.0.0", diff --git a/package.json b/package.json index a9416a07..e386140d 100644 --- a/package.json +++ b/package.json @@ -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#route_snapper_next_gen", "svelte": "^4.2.10", "svelte-maplibre": "^0.9.7", "uuid": "^9.0.1" diff --git a/src/lib/browse/layers/points/UserData.svelte b/src/lib/browse/layers/points/UserData.svelte index deab8306..ae33a929 100644 --- a/src/lib/browse/layers/points/UserData.svelte +++ b/src/lib/browse/layers/points/UserData.svelte @@ -38,7 +38,11 @@
Note this file doesn't leave your computer; it's not uploaded anywhere
++ + Note this file doesn't leave your computer; it's not uploaded anywhere + +
Currently showing {data.features.length.toLocaleString()} features
Our accessibility statement can be found here.
++ Our accessibility statement can be found + here + + . +
diff --git a/src/pages/SketchSchemes.svelte b/src/pages/SketchSchemes.svelte index 62829425..06f19964 100644 --- a/src/pages/SketchSchemes.svelte +++ b/src/pages/SketchSchemes.svelte @@ -7,8 +7,6 @@ BoundaryLayer, ImageLayer, InterventionLayer, - PolygonToolLayer, - RouteSnapperLayer, Toolbox, NewFeatureForm, } from "scheme-sketcher-lib/draw"; @@ -107,7 +105,7 @@ {#if $mode.mode == "list" || $mode.mode == "split-route" || $mode.mode == "set-image" || $mode.mode == "streetview"}