AnatomicMaps / flatmap-viewer

0 stars 7 forks source link

Feature request: External API for highlighting on species #20

Closed Tehsurfer closed 7 months ago

Tehsurfer commented 7 months ago

Currently there is an api for visibility based on a selected species:

mapImp.enableConnectivityByTaxonIds(payload.key, payload.value)

Which can be seen used in action in the image below:

image (16)

I would like an external api that does the same thing, but highlights the connectivity based on a selected species.

similar to mapImp.zoomToFeatures(toHighlight, { noZoomIn: true }), but with a species as input as opposed to a path

dbrnz commented 7 months ago

Resolved in @abi-software/flatmap-viewer@2.5.3.

See FlatMap.taxonFeatureIds, FlatMap.selectGeoJSONFeatures and FlatMap.zoomToGeoJSONFeatures.