@abi-software/mapintegratedvuer 1.9.0-beta.0 → 1.9.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,14 +23,14 @@
23
23
  :envVars="envVars"
24
24
  :visible="sideBarVisibility"
25
25
  :class="['side-bar', { 'start-up': startUp }]"
26
- :activeTabId="activeDockedId"
27
26
  :open-at-start="startUp"
28
27
  :annotationEntry="annotationEntry"
29
28
  :createData="createData"
30
- :connectivityInfo="connectivityInfo"
31
- @tab-close="onSidebarTabClose"
29
+ :connectivityEntry="connectivityEntry"
30
+ :connectivityKnowledge="connectivityKnowledge"
31
+ @tabClicked="onSidebarTabClicked"
32
+ @tabClosed="onSidebarTabClosed"
32
33
  @actionClick="actionClick"
33
- @tabClicked="tabClicked"
34
34
  @search-changed="searchChanged($event)"
35
35
  @anatomy-in-datasets="updateMarkers($event)"
36
36
  @annotation-submitted="onAnnotationSubmitted"
@@ -43,7 +43,9 @@
43
43
  @datalink-clicked="datalinkClicked($event)"
44
44
  @show-connectivity="onShowConnectivity"
45
45
  @show-reference-connectivities="onShowReferenceConnectivities"
46
- @connectivity-component-click="onConnectivityComponentClick"
46
+ @connectivity-hovered="onConnectivityHovered"
47
+ @connectivity-explorer-clicked="onConnectivityExplorerClicked"
48
+ @connectivity-source-change="onConnectivitySourceChange"
47
49
  />
48
50
  <SplitDialog
49
51
  :entries="entries"
@@ -65,6 +67,7 @@ import EventBus from "./EventBus";
65
67
  import SplitDialog from "./SplitDialog.vue";
66
68
  // import contextCards from './context-cards'
67
69
  import { SideBar } from "@abi-software/map-side-bar";
70
+ import "@abi-software/map-side-bar/dist/style.css";
68
71
  import {
69
72
  capitalise,
70
73
  getNewMapEntry,
@@ -83,8 +86,6 @@ import {
83
86
  ElMain as Main,
84
87
  } from "element-plus";
85
88
 
86
- import "@abi-software/map-side-bar/dist/style.css";
87
-
88
89
  /**
89
90
  * Component of the floating dialogs.
90
91
  */
@@ -117,17 +118,19 @@ export default {
117
118
  sideBarVisibility: true,
118
119
  startUp: true,
119
120
  search: '',
120
- activeDockedId : 1,
121
121
  filterTriggered: false,
122
122
  availableFacets: [],
123
- connectivityInfo: null,
124
- annotationEntry: {},
123
+ connectivityEntry: [],
124
+ annotationEntry: [],
125
125
  annotationCallback: undefined,
126
126
  confirmCreateCallback: undefined,
127
127
  cancelCreateCallback: undefined,
128
128
  confirmDeleteCallback: undefined,
129
129
  confirmCommentCallback: undefined,
130
130
  createData: {},
131
+ connectivityHighlight: [],
132
+ connectivityKnowledge: [],
133
+ connectivityExplorerClicked: false,
131
134
  }
132
135
  },
133
136
  watch: {
@@ -142,6 +145,10 @@ export default {
142
145
  },
143
146
  },
144
147
  methods: {
148
+ onConnectivityExplorerClicked: function (payload) {
149
+ this.connectivityExplorerClicked = true;
150
+ this.onDisplaySearch({ term: payload.id }, false);
151
+ },
145
152
  /**
146
153
  * Callback when an action is performed (open new dialogs).
147
154
  */
@@ -169,7 +176,6 @@ export default {
169
176
  window.open(action.resource, "_blank");
170
177
  } else if (action.type == "Facet") {
171
178
  if (this.$refs.sideBar) {
172
- this.closeConnectivityInfo();
173
179
  this.$refs.sideBar.addFilter(action);
174
180
  const { facet } = action;
175
181
  // GA Tagging
@@ -191,34 +197,25 @@ export default {
191
197
  facetPropPath: "organisms.primary.species.name",
192
198
  });
193
199
  });
194
- if (facets.length == 0)
195
- facets.push({
196
- facet: "Show All",
197
- term: "Species",
198
- facetPropPath: "organisms.primary.species.name",
199
- });
200
200
  facets.push(
201
201
  ...action.labels.map(val => ({
202
202
  facet: capitalise(val),
203
203
  term: "Anatomical structure",
204
204
  facetPropPath: "anatomy.organ.category.name",
205
+ facetSubPropPath: "anatomy.organ.name",
205
206
  }))
206
207
  );
207
- if (this.$refs.sideBar) {
208
- this.closeConnectivityInfo();
209
- this.$refs.sideBar.openSearch(facets, "");
210
-
211
- const filterValuesArray = intersectArrays(this.availableFacets, action.labels);
212
- const filterValues = filterValuesArray.join(', ');
213
- // GA Tagging
214
- // Event tracking for map action search/filter data
215
- Tagging.sendEvent({
216
- 'event': 'interaction_event',
217
- 'event_name': 'portal_maps_action_filter',
218
- 'category': filterValues || 'filter',
219
- 'location': 'map_popup_button'
220
- });
221
- }
208
+ this.openSearch(facets, "")
209
+ const filterValuesArray = intersectArrays(this.availableFacets, action.labels);
210
+ const filterValues = filterValuesArray.join(', ');
211
+ // GA Tagging
212
+ // Event tracking for map action search/filter data
213
+ Tagging.sendEvent({
214
+ 'event': 'interaction_event',
215
+ 'event_name': 'portal_maps_action_filter',
216
+ 'category': filterValues || 'filter',
217
+ 'location': 'map_popup_button'
218
+ });
222
219
  } else {
223
220
  this.trackGalleryClick(action);
224
221
  this.createNewEntry(action);
@@ -252,7 +249,7 @@ export default {
252
249
  'file_path': filePath,
253
250
  });
254
251
  },
255
- onDisplaySearch: function (payload) {
252
+ onDisplaySearch: function (payload, tracking = true) {
256
253
  let searchFound = false;
257
254
  //Search all active viewers when global callback is on
258
255
  let splitdialog = this.$refs.splitdialog;
@@ -266,14 +263,16 @@ export default {
266
263
  }
267
264
  this.$refs.dialogToolbar.setFailedSearch(searchFound ? undefined : payload.term);
268
265
 
269
- // GA Tagging
270
- // Event tracking for map on display search
271
- Tagging.sendEvent({
272
- 'event': 'interaction_event',
273
- 'event_name': 'portal_maps_display_search',
274
- 'category': payload.term,
275
- 'location': 'map_toolbar'
276
- });
266
+ if (tracking) {
267
+ // GA Tagging
268
+ // Event tracking for map on display search
269
+ Tagging.sendEvent({
270
+ 'event': 'interaction_event',
271
+ 'event_name': 'portal_maps_display_search',
272
+ 'category': payload.term,
273
+ 'location': 'map_toolbar'
274
+ });
275
+ }
277
276
  },
278
277
  fetchSuggestions: function(payload) {
279
278
  const suggestions = [];
@@ -311,55 +310,70 @@ export default {
311
310
  onShowReferenceConnectivities: function (refSource) {
312
311
  EventBus.emit('show-reference-connectivities', refSource);
313
312
  },
314
- onConnectivityComponentClick: function (data) {
315
- EventBus.emit('connectivity-component-click', {
316
- connectivityInfo: this.connectivityInfo,
317
- data: data,
318
- });
313
+ onConnectivityHovered: function (data) {
314
+ EventBus.emit('connectivity-hovered', data);
315
+ },
316
+ onConnectivitySourceChange: function (data) {
317
+ this.connectivityExplorerClicked = true;
318
+ EventBus.emit('connectivity-source-change', data);
319
319
  },
320
320
  hoverChanged: function (data) {
321
- const hoverAnatomies = data && data.anatomy ? data.anatomy : [];
322
- const hoverOrgans = data && data.organs ? data.organs : [];
323
- const hoverDOI = data && data.doi ? data.doi : '';
324
- this.settingsStore.updateHoverFeatures(hoverAnatomies, hoverOrgans, hoverDOI);
321
+ let hoverAnatomies = [], hoverOrgans = [], hoverDOI = '', hoverConnectivity = [];
322
+ if (data) {
323
+ if (data.type === 'dataset') {
324
+ hoverAnatomies = data.anatomy ? data.anatomy : [];
325
+ hoverOrgans = data.organs ? data.organs : [];
326
+ hoverDOI = data.doi ? data.doi : '';
327
+ } else if (data.type === 'connectivity') {
328
+ hoverConnectivity = data.id ? [data.id] : [];
329
+ }
330
+ } else {
331
+ hoverConnectivity = this.connectivityHighlight;
332
+ }
333
+ this.settingsStore.updateHoverFeatures(hoverAnatomies, hoverOrgans, hoverDOI, hoverConnectivity);
325
334
  EventBus.emit("hoverUpdate");
326
335
  },
327
336
  searchChanged: function (data) {
328
- if (data && data.type == "query-update") {
329
- this.search = data.value;
330
- if (this.search && !this.filterTriggered) {
331
- // GA Tagging
332
- // Event tracking for map action search/filter data
333
- Tagging.sendEvent({
334
- 'event': 'interaction_event',
335
- 'event_name': 'portal_maps_action_search',
336
- 'category': this.search,
337
- 'location': 'map_sidebar_search'
338
- });
337
+ if (data.id === 1) {
338
+ if (data && data.type == "query-update") {
339
+ this.search = data.value;
340
+ if (this.search && !this.filterTriggered) {
341
+ // GA Tagging
342
+ // Event tracking for map action search/filter data
343
+ Tagging.sendEvent({
344
+ 'event': 'interaction_event',
345
+ 'event_name': 'portal_maps_action_search',
346
+ 'category': this.search,
347
+ 'location': 'map_sidebar_search'
348
+ });
349
+ }
350
+ this.filterTriggered = false; // reset for next action
339
351
  }
340
- this.filterTriggered = false; // reset for next action
341
- }
342
- if (data && data.type == "filter-update") {
343
- this.settingsStore.updateFacets(data.value);
352
+ if (data && data.type == "filter-update") {
353
+ this.settingsStore.updateFacets(data.value);
344
354
 
345
- // Remove filter event from maps' popup
346
- if (!this.filterTriggered) {
347
- const { value } = data;
348
- const filterValuesArray = value.filter((val) =>
349
- val.facet && val.facet.toLowerCase() !== 'show all'
350
- ).map((val) => val.facet);
351
- const filterValues = filterValuesArray.join(', ');
355
+ // Remove filter event from maps' popup
356
+ if (!this.filterTriggered) {
357
+ const { value } = data;
358
+ const filterValuesArray = value.filter((val) =>
359
+ val.facet && val.facet.toLowerCase() !== 'show all'
360
+ ).map((val) => val.facet);
361
+ const filterValues = filterValuesArray.join(', ');
352
362
 
353
- // GA Tagging
354
- // Event tracking for map action search/filter data
355
- Tagging.sendEvent({
356
- 'event': 'interaction_event',
357
- 'event_name': 'portal_maps_action_filter',
358
- 'category': filterValues || 'filter',
359
- 'location': 'map_sidebar_filter'
360
- });
363
+ // GA Tagging
364
+ // Event tracking for map action search/filter data
365
+ Tagging.sendEvent({
366
+ 'event': 'interaction_event',
367
+ 'event_name': 'portal_maps_action_filter',
368
+ 'category': filterValues || 'filter',
369
+ 'location': 'map_sidebar_filter'
370
+ });
371
+ }
372
+ this.filterTriggered = false; // reset for next action
361
373
  }
362
- this.filterTriggered = false; // reset for next action
374
+ } else if (data.id === 2) {
375
+ this.connectivityEntry = [];
376
+ EventBus.emit("connectivity-query-filter", data);
363
377
  }
364
378
  },
365
379
  updateMarkers: function (data) {
@@ -378,7 +392,7 @@ export default {
378
392
  /**
379
393
  * Activate Synchronised workflow
380
394
  */
381
- activateSyncMap: function (data) {
395
+ activateSyncMap: function (id, data) {
382
396
  let newEntry = {};
383
397
  Object.assign(newEntry, data);
384
398
  newEntry.mode = "normal";
@@ -392,6 +406,7 @@ export default {
392
406
  this.entriesStore.addNewEntry(newEntry);
393
407
  this.splitFlowStore.setSyncMode({
394
408
  flag: true,
409
+ id, id,
395
410
  newId: newEntry.id,
396
411
  layout: data.layout,
397
412
  });
@@ -438,18 +453,11 @@ export default {
438
453
  this.search = query;
439
454
  this._facets = facets;
440
455
  if (this.$refs && this.$refs.sideBar) {
441
- this.closeConnectivityInfo();
442
456
  this.$refs.sideBar.openSearch(facets, query);
457
+ this.$refs.sideBar.tabClicked({id: 1, type: 'datasetExplorer'});
443
458
  }
444
459
  this.startUp = false;
445
460
  },
446
- closeConnectivityInfo: function() {
447
- // close all opened popups on DOM
448
- const containerEl = this.$el;
449
- containerEl.querySelectorAll('.maplibregl-popup-close-button').forEach((el) => {
450
- el.click();
451
- });
452
- },
453
461
  onFullscreen: function (val) {
454
462
  this.$emit("onFullscreen", val);
455
463
  },
@@ -465,7 +473,7 @@ export default {
465
473
  if (state.splitFlow) this.splitFlowStore.setState(state.splitFlow);
466
474
  else this.entries.forEach(entry => this.splitFlowStore.setIdToPrimaryPane(entry.id));
467
475
  },
468
- getState: function (offlineAnnotations = false) {
476
+ getState: function (anonymousAnnotations = false) {
469
477
  let state = JSON.parse(JSON.stringify(this.entriesStore.$state));
470
478
  let splitdialog = this.$refs.splitdialog;
471
479
  let dialogStates = splitdialog.getContentsState();
@@ -478,7 +486,7 @@ export default {
478
486
  delete entry.viewUrl;
479
487
  if (entry.type === "MultiFlatmap" && "uberonId" in entry)
480
488
  delete entry.uberonId;
481
- if (offlineAnnotations === false) {
489
+ if (anonymousAnnotations === false) {
482
490
  if (entry.type === "Scaffold" && entry?.state?.offlineAnnotations) {
483
491
  delete entry.state.offlineAnnotations;
484
492
  } else if (entry?.state?.state?.offlineAnnotations) {
@@ -502,17 +510,16 @@ export default {
502
510
  },
503
511
  speciesChanged: function (species) {
504
512
  if (this.$refs.sideBar) {
513
+ // Use to update the connectivity when switch species
514
+ EventBus.emit("connectivity-query-filter");
505
515
  this.$refs.sideBar.close();
506
516
  }
507
517
  },
508
- tabClicked: function ({id, type}) {
509
- this.activeDockedId = id;
510
- },
511
518
  toggleSyncMode: function (payload) {
512
519
  if (payload) {
513
520
  if (payload.flag) {
514
521
  if (payload.action) {
515
- this.activateSyncMap(payload.action);
522
+ this.activateSyncMap(payload.id, payload.action);
516
523
  }
517
524
  } else {
518
525
  if (this.splitFlowStore.syncMode) {
@@ -568,12 +575,18 @@ export default {
568
575
  this.confirmDeleteCallback(payload);
569
576
  }
570
577
  },
571
- onSidebarTabClose: function (id) {
572
- if (id === 2) EventBus.emit('connectivity-info-close');
573
- if (id === 3) EventBus.emit('annotation-close', { tabClose: true });
578
+ onSidebarTabClicked: function (tab) {
579
+ let globalSettings = { ...this.settingsStore.globalSettings };
580
+ if (tab.id === 1 && tab.type === 'datasetExplorer') {
581
+ globalSettings.interactiveMode = 'dataset';
582
+ } else if (tab.id === 2 && tab.type === 'connectivityExplorer') {
583
+ globalSettings.interactiveMode = 'connectivity';
584
+ }
585
+ this.settingsStore.updateGlobalSettings(globalSettings);
586
+ this.$refs.dialogToolbar.loadGlobalSettings();
574
587
  },
575
- resetActivePathways: function () {
576
- this.hoverChanged(undefined);
588
+ onSidebarTabClosed: function (tab) {
589
+ if (tab.id === 3 && tab.type === "annotation") EventBus.emit('annotation-close');
577
590
  },
578
591
  },
579
592
  created: function () {
@@ -603,29 +616,36 @@ export default {
603
616
  this.confirmDeleteCallback = markRaw(payload.confirmDelete);
604
617
  this.confirmCommentCallback = markRaw(payload.confirmComment);
605
618
  if (this.$refs.sideBar) {
606
- this.tabClicked({id: 3, type: 'annotation'});
619
+ this.$refs.sideBar.tabClicked({id: 3, type: 'annotation'});
607
620
  this.$refs.sideBar.setDrawerOpen(true);
608
621
  }
609
622
  });
610
- EventBus.on('annotation-close', payload => {
611
- this.tabClicked({id: 1, type: 'search'});
612
- this.annotationEntry = {};
623
+ EventBus.on('annotation-close', () => {
624
+ this.$refs.sideBar.tabClicked({id: 1, type: 'datasetExplorer'});
625
+ this.annotationEntry = [];
613
626
  this.createData = {};
614
627
  if (this.$refs.sideBar) {
615
628
  this.$refs.sideBar.setDrawerOpen(false);
616
629
  }
617
630
  });
618
631
  EventBus.on('connectivity-info-open', payload => {
619
- this.connectivityInfo = payload;
620
- if (this.$refs.sideBar) {
621
- this.tabClicked({id: 2, type: 'connectivity'});
622
- this.$refs.sideBar.setDrawerOpen(true);
632
+ this.connectivityEntry = payload;
633
+ // click on the flatmap paths/features directly
634
+ // or onDisplaySearch is performed
635
+ if (!this.connectivityExplorerClicked) {
636
+ this.connectivityKnowledge = payload.map((entry) => {
637
+ return { label: entry.title, id: entry.featureId[0], detailsReady: entry.ready }
638
+ });
639
+ if (this.connectivityKnowledge.every(conn => conn.detailsReady)) {
640
+ this.connectivityHighlight = this.connectivityKnowledge.map(conn => conn.id);
641
+ this.onShowConnectivity(this.connectivityHighlight);
642
+ }
643
+ if (this.$refs.sideBar) {
644
+ this.$refs.sideBar.tabClicked({id: 2, type: 'connectivityExplorer'});
645
+ this.$refs.sideBar.setDrawerOpen(true);
646
+ }
623
647
  }
624
- });
625
- EventBus.on('connectivity-info-close', payload => {
626
- this.tabClicked({id: 1, type: 'search'});
627
- this.connectivityInfo = null;
628
- this.resetActivePathways();
648
+ this.connectivityExplorerClicked = false;
629
649
  });
630
650
  EventBus.on('connectivity-graph-error', payload => {
631
651
  if (this.$refs.sideBar) {
@@ -640,6 +660,23 @@ export default {
640
660
  this.$refs.sideBar.close();
641
661
  }
642
662
  });
663
+ EventBus.on("connectivity-knowledge", payload => {
664
+ this.connectivityKnowledge = payload.data;
665
+ this.connectivityHighlight = [];
666
+ if (payload.state === "processed") {
667
+ this.connectivityHighlight = this.connectivityKnowledge.map(conn => conn.id);;
668
+ this.onShowConnectivity(this.connectivityHighlight);
669
+ } else {
670
+ this.hoverChanged();
671
+ }
672
+ })
673
+ EventBus.on("modeUpdate", payload => {
674
+ if (payload === "dataset") {
675
+ this.$refs.sideBar.tabClicked({id: 1, type: 'datasetExplorer'});
676
+ } else if (payload === "connectivity") {
677
+ this.$refs.sideBar.tabClicked({id: 2, type: 'connectivityExplorer'});
678
+ }
679
+ })
643
680
  this.$nextTick(() => {
644
681
  if (this.search === "" && this._facets.length === 0) {
645
682
  if (this.$refs.sideBar) {
@@ -20,7 +20,6 @@
20
20
  @annotation-close="onAnnotationClose"
21
21
  :annotationSidebar="annotationSidebar"
22
22
  @connectivity-info-open="onConnectivityInfoOpen"
23
- @connectivity-info-close="onConnectivityInfoClose"
24
23
  @connectivity-graph-error="onConnectivityGraphError"
25
24
  :connectivityInfoSidebar="connectivityInfoSidebar"
26
25
  :pathControls="true"
@@ -173,9 +172,9 @@ export default {
173
172
  },
174
173
  },
175
174
  mounted: function() {
176
- EventBus.on('annotation-close', (payload) => {
175
+ EventBus.on('annotation-close', () => {
177
176
  const currentFlatmap = this.$refs.flatmap;
178
- if (payload?.tabClose && currentFlatmap) {
177
+ if (currentFlatmap) {
179
178
  this.$refs.flatmap.annotationEventCallback({}, { type: 'aborted' })
180
179
  }
181
180
  });
@@ -183,7 +182,7 @@ export default {
183
182
  this.flatmapMarkerUpdate(undefined);
184
183
  });
185
184
  EventBus.on("hoverUpdate", () => {
186
- this.mapHoverHighlight();
185
+ this.cardHoverHighlight();
187
186
  });
188
187
  EventBus.on('show-connectivity', (payload) => {
189
188
  const { featureIds, offset } = payload;
@@ -19,7 +19,6 @@
19
19
  @annotation-close="onAnnotationClose"
20
20
  :annotationSidebar="annotationSidebar"
21
21
  @connectivity-info-open="onConnectivityInfoOpen"
22
- @connectivity-info-close="onConnectivityInfoClose"
23
22
  @connectivity-graph-error="onConnectivityGraphError"
24
23
  :connectivityInfoSidebar="connectivityInfoSidebar"
25
24
  ref="multiflatmap"
@@ -151,9 +150,9 @@ export default {
151
150
  };
152
151
  }
153
152
  if (action)
154
- EventBus.emit("SyncModeRequest", { flag: true, action: action });
153
+ EventBus.emit("SyncModeRequest", { id: this.entry.id, flag: true, action: action });
155
154
  } else {
156
- EventBus.emit("SyncModeRequest", { flag: false });
155
+ EventBus.emit("SyncModeRequest", { id: this.entry.id, lag: false });
157
156
  }
158
157
  },
159
158
  getState: function () {
@@ -308,6 +307,7 @@ export default {
308
307
  const imp = this.getFlatmapImp();
309
308
  if (imp) {
310
309
  let provClone = {id: this.entry.id, prov: imp.provenance};
310
+ EventBus.emit("mapImpProv", provClone);
311
311
  this.$emit("flatmap-provenance-ready", provClone);
312
312
  }
313
313
  },
@@ -320,7 +320,6 @@ export default {
320
320
  await this.toggleSyncMode();
321
321
  }
322
322
  this.updateProvCard();
323
- this.onConnectivityInfoClose();
324
323
 
325
324
  // GA Tagging
326
325
  // Event tracking for maps' species change
@@ -337,6 +336,7 @@ export default {
337
336
  const flatmapImp = flatmap.mapImp;
338
337
  this.flatmapMarkerUpdate(flatmapImp);
339
338
  this.updateProvCard();
339
+ this.loadConnectivityKnowledge(flatmapImp);
340
340
  EventBus.emit("mapLoaded", flatmap);
341
341
  }
342
342
  },
@@ -426,6 +426,12 @@ export default {
426
426
  flatmap.showConnectivityTooltips(payload);
427
427
  }
428
428
  },
429
+ changeConnectivitySource: function (payload) {
430
+ if (this.flatmapReady) {
431
+ const flatmap = this.$refs.multiflatmap.getCurrentFlatmap();
432
+ flatmap.changeConnectivitySource(payload);
433
+ }
434
+ },
429
435
  },
430
436
  computed: {
431
437
  facetSpecies() {
@@ -451,8 +457,8 @@ export default {
451
457
  mounted: function () {
452
458
  this.getFeaturedDatasets();
453
459
 
454
- EventBus.on('annotation-close', (payload) => {
455
- if (payload?.tabClose && this.flatmapReady && this.$refs.multiflatmap) {
460
+ EventBus.on('annotation-close', () => {
461
+ if (this.flatmapReady && this.$refs.multiflatmap) {
456
462
  const currentFlatmap = this.$refs.multiflatmap.getCurrentFlatmap();
457
463
  currentFlatmap.annotationEventCallback({}, { type: 'aborted' })
458
464
  }
@@ -480,10 +486,14 @@ export default {
480
486
  }
481
487
  });
482
488
 
483
- EventBus.on('connectivity-component-click', (payload) => {
489
+ EventBus.on('connectivity-hovered', (payload) => {
484
490
  this.showConnectivityTooltips(payload);
485
491
  });
486
492
 
493
+ EventBus.on('connectivity-source-change', (payload) => {
494
+ this.changeConnectivitySource(payload);
495
+ });
496
+
487
497
  EventBus.on("markerUpdate", () => {
488
498
  if (this.flatmapReady) {
489
499
  this.flatmapMarkerUpdate(this.$refs.multiflatmap.getCurrentFlatmap().mapImp);
@@ -491,7 +501,15 @@ export default {
491
501
  });
492
502
  EventBus.on("hoverUpdate", () => {
493
503
  if (this.flatmapReady) {
494
- this.mapHoverHighlight();
504
+ this.cardHoverHighlight();
505
+ }
506
+ });
507
+ EventBus.on("connectivity-query-filter", (payload) => {
508
+ if (this.flatmapReady && this.$refs.multiflatmap) {
509
+ const currentFlatmap = this.$refs.multiflatmap.getCurrentFlatmap();
510
+ if (currentFlatmap && currentFlatmap.mapImp) {
511
+ this.connectivityQueryFilter(currentFlatmap, payload)
512
+ }
495
513
  }
496
514
  });
497
515
  },
@@ -201,7 +201,7 @@ export default {
201
201
  }
202
202
  },
203
203
  markerLabels: function () {
204
- return this.settingsStore.globalSettings.displayMarker ? this.settingsStore.numberOfDatasetsForFacets : {};
204
+ return this.settingsStore.globalSettings.displayMarkers ? this.settingsStore.numberOfDatasetsForFacets : {};
205
205
  },
206
206
  },
207
207
  data: function () {
@@ -219,7 +219,7 @@ export default {
219
219
  });
220
220
  EventBus.on("hoverUpdate", () => {
221
221
  if (this.scaffoldLoaded) {
222
- this.mapHoverHighlight();
222
+ this.cardHoverHighlight();
223
223
  }
224
224
  });
225
225
  },