Skip to content

Commit

Permalink
Use common freehand polygon lib
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Mar 17, 2024
1 parent e1bc146 commit 53bec26
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
13 changes: 12 additions & 1 deletion web/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 web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@maptiler/geocoding-control": "^1.2.2",
"@picocss/pico": "^2.0.3",
"@turf/nearest-point-on-line": "^6.5.0",
"maplibre-draw-polygon": "github:dabreegster/maplibre-draw-polygon",
"route-snapper": "^0.4.0",
"svelte-maplibre": "^0.8.2"
}
Expand Down
3 changes: 1 addition & 2 deletions web/src/common/OverpassSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import type { LngLat, Map } from "maplibre-gl";
import { createEventDispatcher } from "svelte";
import { overpassQueryForPolygon } from "./";
import { PolygonTool } from "./draw_polygon/polygon_tool";
import PolygonControls from "./draw_polygon/PolygonControls.svelte";
import { PolygonTool, PolygonControls } from "maplibre-draw-polygon";
export let map: Map | null;
Expand Down
2 changes: 1 addition & 1 deletion web/src/title/NewProjectMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { LTN } from "backend";
import { onMount } from "svelte";
import { Link, Loading, OverpassSelector } from "../common";
import PolygonToolLayer from "../common/draw_polygon/PolygonToolLayer.svelte";
import { PolygonToolLayer } from "maplibre-draw-polygon";
import SplitComponent from "../SplitComponent.svelte";
import {
autosave,
Expand Down

0 comments on commit 53bec26

Please sign in to comment.