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.
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 |