addGeoJsonLayer
Add styled GeoJSON points, lines, or polygons as a layer on a 3D Cesium globe. Returns a layer ID for highlighting.
Instructions
Add a styled GeoJSON Point, LineString, or Polygon layer. Returns { success, data: { id, name, type, visible, color, dataRefId? }, message? }; use id with highlight.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Layer ID (auto-generated if omitted) | |
| url | No | GeoJSON file URL (mutually exclusive with data, fetched in browser) | |
| data | No | GeoJSON FeatureCollection object (mutually exclusive with url) | |
| name | No | Layer display name | |
| style | No | Style config (color, opacity, pointSize, choropleth, category) | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes |