background = RadioGroup(labels=["topografie", "luchtfoto"], active=0) background.on_change("active", update_background) map_controls = column(Div(text="<b>Kaartopties</b><br><br>Kaartlagen"), map_layers, Div(text="Achtergrond"), background) # %% define main filter selection and handlers filters = list() for name, subfilter in zip(data.filters.names, data.filters.filters): select_filter = MultiSelect( title=f"{name}:", value=subfilter.value, options=subfilter.options, ) select_filter.size = min(len(subfilter.options), 7) select_filter.on_change("value", update_on_filter_select) filters += [select_filter] # %% define location selection and handlers select_locations = MultiSelect(title="Locaties:", value=[], options=data.locations.options) select_locations.on_change("value", update_on_locations_select) # select_locations.js_link("value", # data.locations.source.selected, # "indices") # %% define parameter selection and handlers select_parameters = MultiSelect(title="Parameters:",