Implements the same location filtering as the Export CSV Template filter. Locations matching the dropdown filters will appear as a set of buttons and can either be selected individually or added all at once to the filter.
Added feature of only showing related EcoRegions/States/Areas in the filters. eg. if an Australian ecoregion is selected then only states and areas in that ecoregion will appear in the dropdowns.
Show/Hide filter button which hides the filter when a survey search has commenced.
Also adds and uses an optional all parameter to the locations endpoint to defeat pagination.
all
parameter to thelocations
endpoint to defeat pagination.