AnatomicMaps / flatmap-viewer

0 stars 7 forks source link

Add marker does not work in anatomical maps with Vagus #24

Closed alan-wu closed 4 months ago

alan-wu commented 4 months ago

Marker does not get created and displayed with the following when the feature is set to UBERON:0001759 but this is not an issue when the feature is heart (UBERON:0000948) or other features.

flatmap.addMarker(feature, {element: wrapperElement, className: "highlight-marker"});

dbrnz commented 4 months ago

Works for me, but the marker only shows when nerves are displayed.

Screenshot 2024-02-29 at 9 08 09 AM
dbrnz commented 4 months ago

BTW is the return value of addMarker() checked? It will be -1 if the map doesn't contain the anatomical entity.