Skip to content

Commit 67f9f88

Browse files
fix: restore CircleMode in MapboxDraw initialization
- Fixed missing modes configuration in setupDrawingTools - Restored custom 'draw_circle' mode using CircleMode - Verified fix with local bundling check Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent ab1cea1 commit 67f9f88

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/map/mapbox-map.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ export const Mapbox: React.FC<{ position?: { latitude: number; longitude: number
285285
trash: true,
286286
line_string: true
287287
},
288+
modes: {
289+
...MapboxDraw.modes,
290+
draw_circle: CircleMode
291+
},
288292
// Start in polygon mode by default
289293
defaultMode: 'draw_polygon'
290294
})

0 commit comments

Comments
 (0)