feat: implement boundary tracing feature for polygon drawing with Shift+T shortcut

This commit is contained in:
taDuc
2026-06-05 02:41:05 +07:00
parent e9657a4003
commit 61949e7149
10 changed files with 1527 additions and 98 deletions
+2
View File
@@ -48,6 +48,7 @@ export function setupMapLayers(
id: "draw-preview-fill",
type: "fill",
source: "draw-preview",
filter: ["==", ["get", "type"], "fill"],
paint: {
"fill-color": "#22c55e",
"fill-opacity": 0.4,
@@ -58,6 +59,7 @@ export function setupMapLayers(
id: "draw-preview-line",
type: "line",
source: "draw-preview",
filter: ["!=", ["get", "type"], "fill"],
paint: {
"line-color": "#16a34a",
"line-width": 2,