Skip to contents

Set tooltip on a map layer

Usage

set_tooltip(map, layer, tooltip)

Arguments

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.

Value

The updated map object.