Add tooltips to a layer
1 | add_tooltips(map, layer_id, tooltip)
|
map |
A mapboxer object. |
layer_id |
The ID of the layer to which you want to add the tooltips. |
tooltip |
A mustache template in which the tags refer to the properties of the layer's data object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.