addPolygon
Add a polygon area on a 3D globe using coordinate arrays, with options for color, label, opacity, outline, and extrusion.
Instructions
Add a polygon area on the map (area/boundary), returns entityId
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 |