inject_pydeck_map
Add a dark-styled PyDeck map to a Hex Python cell with configurable layer types and data columns. Customize coordinates, colors, elevation, and auto-run to push the visualization to the app view.
Instructions
Write a styled PyDeck map into a Hex Python cell using the dark map style.
layer_type: ScatterplotLayer | HexagonLayer | H3HexagonLayer | ColumnLayer | ArcLayer | PathLayer | GeoJsonLayer color_col: column with pre-computed [R, G, B] or [R, G, B, A] values. If omitted, uses accent color. elevation_col: column for 3D height (ColumnLayer / HexagonLayer) auto_run: if True, triggers run_and_wait to push to app view
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"cell_id": "<cell_id>",
"dataframe_var": "<dataframe_var>",
"lat_col": "<lat_col>",
"lon_col": "<lon_col>"
},
"name": "inject_pydeck_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| radius | No | ||
| cell_id | Yes | ||
| lat_col | Yes | ||
| lon_col | Yes | ||
| auto_run | No | ||
| color_col | No | ||
| layer_type | No | ScatterplotLayer | |
| project_id | Yes | ||
| dataframe_var | Yes | ||
| elevation_col | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |