View source: R/custom-controls.R
Add a filter control to the map
| 1 2 | add_filter_control(map, layer_id, filter = NULL, pos = NULL,
  rows = 1, cols = 20)
 | 
| map | A mapboxer object. | 
| layer_id | The ID of the layer to which the filter is attached. | 
| filter | The initial filter expression. | 
| pos | The position of the control. One of  | 
| rows | The number of rows of the textarea input. | 
| cols | The number of columns of the textarea input. | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.