render_map
Create interactive HTML maps from satellite imagery, raster tiles, and GeoJSON data, with optional swipe comparison for before/after analysis.
Instructions
Write a self-contained interactive HTML map and return its file path.
layers is a list of: {"type": "item", "name": ..., "catalog": ..., "collection_id": ..., "item_id": ..., "assets": [...], "rescale": "0,3000", "colormap_name": ..., "expression": "(nir-red)/(nir+red)"} # expression for index layers {"type": "raster", "name": ..., "tiles": "https://..{z}/{x}/{y}.."} {"type": "geojson", "name": ..., "data": , "color": "#hex"} Item layers resolve to the right tiling backend automatically. The HTML is shareable: MapLibre + live tile URLs, no server of ours required.
compare: True renders two raster layers as a draggable swipe (before/after), False stacks them as toggleable overlays. Default None auto-decides: swipe only when both rasters come from the SAME collection (a comparison), overlay when they differ (e.g. burn severity over imagery — pass opacity ~0.75).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| title | Yes | ||
| layers | Yes | ||
| compare | No | ||
| out_path | No | ||
| subtitle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||