addPolygon
Draw a polygon area on a 3D map. Specify outer ring coordinates, fill color, opacity, outline, extrusion height, and optional label. Returns an entity ID for subsequent updates.
Instructions
Add a polygon area on the map (area/boundary), returns entityId
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coordinates | Yes | Polygon outer ring coordinates [[lon, lat, height?], ...] | |
| color | No | Fill color (CSS format) | #3B82F6 |
| outlineColor | No | Outline color | #FFFFFF |
| opacity | No | Fill opacity (0-1) | |
| extrudedHeight | No | Extruded height (meters), for 3D effect | |
| clampToGround | No | Whether to clamp to ground | |
| label | No | Polygon label text | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) |