Fix missing map tiles when taxon chosen on Explore (#1722)

* IconicTaxonChooser no longer takes a taxon or manages its own state
* Setting iconic taxon filter to Unknown is now its own action
* Unsetting a taxon can be done with the CHOOSE_TAXON action by setting taxon
  to null or undefined
* Omitted some extraneous params from tile requests
This commit is contained in:
Ken-ichi
2024-06-28 10:13:51 -07:00
committed by GitHub
parent cc8b610f2f
commit ae2f9eeddc
14 changed files with 251 additions and 205 deletions

View File

@@ -344,11 +344,7 @@ const Misc = (): Node => {
<ConfidenceInterval confidence={3} activeColor="bg-inatGreen" />
<Heading2 className="my-2">Iconic Taxon Chooser</Heading2>
<IconicTaxonChooser
taxon={{
name: "Aves",
id: 3,
iconic_taxon_name: "Aves"
}}
chosen={["aves"]}
before={<Button text={t( "ADD-AN-ID" )} className="rounded-full" />}
onTaxonChosen={taxon => console.log( "taxon selected:", taxon )}
/>