create_layer
Generate Leaflet map code for creating vector layers: polylines, polygons, circles, rectangles, and circle markers. Customize styling and popups.
Instructions
Generate code for creating various Leaflet layers: polylines, polygons, circles, rectangles, and other vector layers.
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": {
"layerType": "<layerType>"
},
"name": "create_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerType | Yes | Type of layer to create | |
| coordinates | No | Array of coordinates for the layer | |
| center | No | Center coordinate (for circles) | |
| radius | No | Radius in meters (for circles) | |
| style | No | Layer styling options | |
| popup | No | Popup content for the layer |