addGeoJsonPrimitive
Render GeoJSON as Cesium primitives to display large browser datasets on a 3D globe, from a URL, inline data, or stored resource.
Instructions
Render GeoJSON as Cesium primitives for large browser datasets. Returns { success: boolean, data?: unknown, message?: string, error?: string }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "addGeoJsonPrimitive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Layer ID (auto-generated if omitted) | |
| url | No | GeoJSON file URL (mutually exclusive with data) | |
| data | No | GeoJSON object (mutually exclusive with url) | |
| name | No | Layer display name | |
| show | No | Whether to show (default true) | |
| flyTo | No | Fly to the loaded geometry (default true) | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) | |
| resourceId | No | Stored GeoJSON resource ID (mutually exclusive with data or url) | |
| blendOption | No | Native opaque/translucent buffer blending mode | |
| allowPicking | No | Allow picking (default true, disable for better performance) | |
| pickMetadata | No | Additional pick metadata set before first render; locked afterwards |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes |