feat: add region and location geometry types and extend editing engine to support line and point modifications

This commit is contained in:
taDuc
2026-06-01 16:01:37 +07:00
parent d270d9435b
commit 1a77d471ad
14 changed files with 623 additions and 114 deletions
+26
View File
@@ -187,6 +187,19 @@ export function setupMapLayers(
data: { type: "FeatureCollection", features: [] },
});
// Glowing halo under the edit shape line
map.addLayer({
id: "edit-shape-glow",
type: "line",
source: "edit-shape",
paint: {
"line-color": "#38bdf8",
"line-width": 8,
"line-opacity": 0.35,
"line-blur": 1.5,
},
});
map.addLayer({
id: "edit-shape-line",
type: "line",
@@ -197,6 +210,19 @@ export function setupMapLayers(
},
});
// Glowing halo under the edit handles
map.addLayer({
id: "edit-handles-glow",
type: "circle",
source: "edit-handles",
paint: {
"circle-color": "#f97316",
"circle-radius": 22,
"circle-opacity": 0.35,
"circle-blur": 0.85,
},
});
map.addLayer({
id: "edit-handles-circle",
type: "circle",