addPolyline
Draw a path or route on a 3D globe from geographic coordinates. Specify line color, width, and optional height to visualize routes or boundaries.
Instructions
Draw a path or route from geographic coordinate tuples. Returns { success, data: { entityId }, message? }; keep entityId for removeEntity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Line color (CSS format) | #3B82F6 |
| label | No | Polyline label text | |
| width | No | Line width (pixels) | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) | |
| coordinates | Yes | Polyline coordinates array [[lon, lat, height?], ...] | |
| clampToGround | No | Whether to clamp to ground |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes |