I have a number of longs and lats for location pins, and I would like to allow the user to select which pins to select for further analysis. The selected locations are used to populate a dropdown with the multiple option.
For example, suppose the scattermapbox shows all the bus stops in a city. The user uses the select box tool to select the bus stops of interest. Because the bus stop names are passed to the dropdown as options, they populate the dropdown. If the user accidentally added a bus stop they didnt want to include, they could deselect it using the little x in the option name.
The selection works well and it populates the drop down as expected, but as soon as the I deselect a bus stop, the drop down empties. This is not what I need. I would like the list of bus stops to persist, but I cant seem to figure out how.
I tried to add persist to the drop down, but that didnt change anything, the options still disappear as soon as I deselect a bus stop in the drop down list.
How do I solve this?