set_tooltip function

Set tooltip on a map layer

Set tooltip on a map layer

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.

Returns

The updated map object.

  • Maintainer: Kyle Walker
  • License: MIT + file LICENSE
  • Last published: 2025-03-18