add_marker
Generate Leaflet map marker code with optional popups, tooltips, custom icons, and drag functionality.
Instructions
Generate code for adding markers to a Leaflet map with optional popups, tooltips, and custom icons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | Yes | Marker position | |
| popup | No | Popup content (HTML supported) | |
| tooltip | No | Tooltip text | |
| draggable | No | Make marker draggable | |
| customIcon | No | Include custom icon setup code |