Comparison-page server module
mod_pti_comparepage_newsrv.RdServer module powering the comparison page. Instantiates two [mod_plot_pti2_srv()] sub-modules (`first_leaf` / `second_leaf`) against the same shapes, structured PTI data, and weights. The two maps share inputs but render independently so the user can pan / zoom each side separately while comparing the same underlying weighting.
Usage
mod_pti_comparepage_newsrv(
id,
shp_dta,
map_dta,
wt_dta,
active_tab,
target_tabs,
mtdtpdf_path = ".",
shapes_path = ".",
show_adm_levels = NULL,
...
)Arguments
- id
Character. Shiny module namespace ID. Must match the `id` passed to [mod_pti_comparepage_ui()].
- shp_dta
Reactive yielding a named list of `sf` tibbles (one per admin level). Forwarded to both [mod_plot_pti2_srv()] children.
- map_dta
Reactive yielding the structured PTI list (output of [mod_ptipage_newsrv()]).
- wt_dta
Reactive yielding the weights list (output of the weights-input module).
- active_tab
Reactive character indicating the currently selected tab.
- target_tabs
Character vector of tab names this module should render for.
- mtdtpdf_path
Character. Filesystem path to the metadata PDF served via the side-panel download link in each map.
- shapes_path
Character. Filesystem path to the shapes archive served via the side-panel download link in each map.
- show_adm_levels
Character vector or NULL. Admin levels to expose in the side-panel selector of each map.
- ...
Forwarded to both [mod_plot_pti2_srv()] children.
Value
No explicit return value. Called for side effects (renders two side-by-side leaflet maps within the Shiny session).