This function adds a custom control to a Leaflet map allowing users to customize the control with specified parameters.
Usage
addCustomControl(
map,
position = "bottomright",
id = "hollow",
title = "",
classes = "",
content = ""
)Arguments
- map
A Leaflet map object.
- position
A character string specifying the position of the control on the map (default is 'bottomright').
- id
A character string providing an identifier for the custom control (default is 'hollow').
- title
A character string representing the title of the custom control.
- classes
A character string containing additional CSS classes to be applied to the custom control.
- content
A character string defining the content of the custom control.
