addPolygon
Draw a polygon area on a 3D globe using geographic coordinate tuples, with optional styling like color, opacity, and height extrusion. Returns an entity ID for later removal.
Instructions
Draw a polygon area from geographic coordinate tuples. Returns { success, data: { entityId }, message? }; keep entityId for removeEntity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Fill color (CSS format) | #3B82F6 |
| label | No | Polygon label text | |
| opacity | No | Fill opacity (0-1) | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) | |
| coordinates | Yes | Polygon outer ring coordinates [[lon, lat, height?], ...] | |
| outlineColor | No | Outline color | #FFFFFF |
| clampToGround | No | Whether to clamp to ground | |
| extrudedHeight | No | Extruded height (meters), for 3D effect |