Commit f9cadb3
feat: unified annotation system with markers, routes, areas, and circles
Replace marker-specific types with a discriminated union (oneOf in JSON
Schema) supporting four annotation types: marker, route, area, circle.
- z.discriminatedUnion for proper oneOf in tool schemas
- Separate full schemas (show-map/add) and update schemas (partial fields)
- Unified add/update/remove actions replacing add_markers/update_markers/remove_markers
- Cesium rendering: point (marker), polyline (route), polygon (area), ellipse (circle)
- Canvas label billboards for all types at appropriate anchor points
- ontoolinputpartial streaming: render all-but-last annotation progressively
- Persistence and clipboard export updated for all annotation types
- GeoJSON export: Point/LineString/Polygon with type-specific properties
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5959b24 commit f9cadb3
3 files changed
Lines changed: 786 additions & 435 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments