render_file
Draw road edges from a GeoPackage, GeoJSON, or Shapefile into an interactive HTML map, with styling options like color-by speed and legend, saving the output path and a PNG preview for verification.
Instructions
Draw the road edges in a file (GeoPackage, GeoJSON, Shapefile, ...) as an interactive HTML map.
The file needs line geometry (any CRS) and a road-class column, "highway" by default
(another name: options={"highway_col": "..."}).
options: render_edges keywords, e.g. {"color_by": "speed", "cmap": "viridis", "legend": true}.
output_path: where to save the .html (default ~/roadstyle-maps/<file name>.html).
Returns the saved path, a summary and a PNG preview.
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": {
"path": "<path>"
},
"name": "render_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| options | No | ||
| output_path | No |