Skip to content

Commit

Permalink
Merge pull request #228 from akhuoa/feature/sckan-version
Browse files Browse the repository at this point in the history
SCKAN version in connectivity graph
  • Loading branch information
alan-wu authored Jan 30, 2025
2 parents c76d994 + 44475c6 commit 942dd37
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/FlatmapVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2157,6 +2157,15 @@ export default {
if (this.featuresAlert) {
this.tooltipEntry['featuresAlert'] = this.featuresAlert;
}
// Get connectivity knowledge source | SCKAN release
if (this.mapImp.provenance?.connectivity) {
const sckanProvenance = this.mapImp.provenance.connectivity;
if ('knowledge-source' in sckanProvenance) {
this.tooltipEntry['knowledge-source'] = sckanProvenance['knowledge-source'];
} else if ('npo' in sckanProvenance) {
this.tooltipEntry['knowledge-source'] = `${sckanProvenance.npo.release}-npo`;
}
}
this.$emit('connectivity-info-open', this.tooltipEntry);
}
if (this.annotationSidebar && this.viewingMode === 'Annotation') {
Expand Down

0 comments on commit 942dd37

Please sign in to comment.