set_shapemap_custom_map
Set a custom TopoJSON or GeoJSON map on a Power BI shapeMap visual by providing a local .json file, http(s) URL, or inline JSON string to update the map rendering.
Instructions
Set a custom TopoJSON/GeoJSON map on a shapeMap (the custom-map upload). topojsonOrGeojson = a local .json file (embedded), an http(s) URL, or an inline JSON string. Verify the render in Desktop.
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": {
"reportSessionId": "<reportSessionId>",
"page": "<page>",
"visual": "<visual>",
"topojsonOrGeojson": "<topojsonOrGeojson>"
},
"name": "set_shapemap_custom_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| visual | Yes | shapeMap visual name | |
| reportSessionId | Yes | ||
| topojsonOrGeojson | Yes | local .json file, URL, or inline TopoJSON/GeoJSON |