Scope Taxon Pages to a tagged set of otus#258
Scope Taxon Pages to a tagged set of otus#258kleintom wants to merge 2 commits intoSpeciesFileGroup:mainfrom
Conversation
When unset - the typical case - it won't show up in queries at all.
|
Marking as draft pending final decisions on what to include/not include. |
|
@kleintom Is it intended that VMap will always zoom the scoped area? This is a global component and could be used by users to create they own maps o new panels, applying this change will set the zoom always there. If this is intendend, then it's okay. Otherwise, bounds could be passes as |
Let's try to explore a bounding geoJSON object. Remember- TaxonPages config/implementation need to be kept as generic as possible so as to not require TaxonWorks APIs. This makes things like this specific use-case quite tricky (i.e. others may not know about our tag_id, and we therefor can't scope "external" pannels with it alone), however we need to try and adhere to the idea. |
If project_bounds are going to be used just for PanelMap, then could be added to taxa_page.yml as panel prop I think |
Good point, thanks, it probably should only apply to Panel Map. |
@jlpereira The way I've been managing this is with two new
config/api.ymlvariables, likewhere
project_scope_tag_id: 176is the id of the tag that your spatially-scoped otus were tagged with, andproject_boundsare two opposite corners of a bounding box for your spatial area. The intention, per @proceps, is that the map still displays all of its normal (non-scoped) data, but is initially zoomed to the scoped area.If there's a better way to do this, feel free to let me know or just take this one yourself.