Skip to content

Commit f9cadb3

Browse files
ochafikclaude
andcommitted
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

File tree

examples/map-server/mcp-app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
</head>
6767
<body>
6868
<div id="cesiumContainer"></div>
69-
<button id="copy-btn" class="toolbar-btn" title="Copy markers as Markdown + GeoJSON" style="display:none">
69+
<button id="copy-btn" class="toolbar-btn" title="Copy annotations as Markdown + GeoJSON" style="display:none">
7070
<!-- Copy/clipboard icon -->
7171
<svg viewBox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>
7272
</button>

0 commit comments

Comments
 (0)