map-server: interactive annotations (markers, routes, areas, circles)#505
Open
map-server: interactive annotations (markers, routes, areas, circles)#505
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds full interactivity and rich annotation support to the CesiumJS map server:
oneOfin JSON Schema) supporting marker, route (polyline), area (polygon), and circle (ellipse) annotation typesnavigate,add,update,removeactions via command queue with 200ms batchingontoolinputpartialprogressively renders annotations as the model streams them (skipping last potentially-truncated item)Annotation types
markerrouteareacircleJSON Schema
Uses
z.discriminatedUnion("type", [...])which produces properoneOfwithconstdiscriminator values. Separate full schemas (foradd) and update schemas (partial fields, forupdate).Test plan
show-mapwith no annotations → globe loads at default/bbox locationshow-mapwith mixed annotations → markers, routes, areas, circles render correctlyinteractadd/update/remove → annotations appear/change/disappearontoolinputpartial) → annotations render progressively🤖 Generated with Claude Code