Apply Default Leaflet Behavior for Selection Events
Source:R/leaflet.R
apply_default_leaflet_behavior.Rd
This helper function provides consistent default behavior for leaflet maps when handling selection events. It manages popup display and map navigation based on the selection state.
Arguments
- map_proxy
A leaflet map proxy object used to update the map
- selected_data
A data frame or list containing the selected row/item data. If NULL, indicates deselection occurred.
- component_info
A list containing component configuration information:
- shared_id_column
Character. Name of the column containing unique identifiers
- config
List containing:
- lng_col
Character. Name of the longitude column
- lat_col
Character. Name of the latitude column
- highlight_zoom
Numeric. Zoom level to use when highlighting selection