Skip to contents

Set popup on a map layer

Usage

set_popup(map, layer, popup)

Arguments

map

A map object created by the mapboxgl or maplibre function, or a proxy object.

layer

The ID of the layer to update.

popup

The name of the popup property or an expression to set.

Value

The updated map object.