Set tooltip on a map layer
set_tooltip(map, layer, tooltip)
map
: A map object created by the mapboxgl
or maplibre
function, or a proxy object.layer
: The ID of the layer to update.tooltip
: The name of the tooltip to set.The updated map object.