Skip to content

MultiFlatmapVuer

A vue component to show a flatmap from the list of multiple flatmap data.

Props

NameDescriptionTypeRequiredDefault
initialInitial species for the flatmap. This value will be ignored if a valid state object is provided.stringfalse''
minZoomThe minimum zoom level of the map.numberfalse1
renderAtMountedThe option to create map on component mounted.booleanfalsefalse
helpModeThe option to show tooltips for help mode.booleanfalsefalse
helpModeActiveItemThe active item index of help mode.numberfalse0
helpModeDialogThe option to use helpModeDialog. On default, false, clicking help will show all tooltips. If true, clicking help will show the help-mode-dialog.booleanfalsefalse
helpModeLastItemThe last item of help mode.booleanfalsefalse
displayMinimapThe option to display minimap at the top-right corner of the map.booleanfalsefalse
showStarInLegendThe option to show star in legend area.booleanfalsefalse
enableOpenMapUIFlag to determine rather open map UI should be presented or not.booleanfalsefalse
openMapOptionsThe data to show different map options. Available at the bottom-left corner ("Open new map" tooltip).arrayfalse-
availableSpeciesThe available species data for different maps. This data is used for multi flatmaps.objectfalse{ 'Human Female': { taxo: 'NCBITaxon:9606', biologicalSex: 'PATO:0000383', iconClass: 'mapicon-icon_human', displayWarning: true, }, 'Human Male': { taxo: 'NCBITaxon:9606', biologicalSex: 'PATO:0000384', iconClass: 'mapicon-icon_human', displayWarning: true, }, Rat: { taxo: 'NCBITaxon:10114', iconClass: 'mapicon-icon_rat', displayLatestChanges: true, }, Mouse: { taxo: 'NCBITaxon:10090', iconClass: 'mapicon-icon_mouse', displayWarning: true, }, Pig: { taxo: 'NCBITaxon:9823', iconClass: 'mapicon-icon_pig', displayWarning: true, }, Cat: { taxo: 'NCBITaxon:9685', iconClass: 'mapicon-icon_cat', displayWarning: true, }, }
stateState containing state of the flatmap.objectfalseundefined
flatmapAPISpecify the endpoint of the flatmap server.stringfalse'https://mapcore-demo.org/current/flatmap/v3/'
sparcAPISpecify the endpoint of the SPARC API.stringfalse'https://api.sparc.science/'
disableUIFlag to disable UIs on Mapbooleanfalsefalse
connectivityInfoSidebarThe option to show connectivity information in sidebarbooleanfalsefalse
annotationSidebarThe option to show connectivity information in sidebarbooleanfalsefalse

Events

Event NameDescriptionParameters
open-mapThis event is emitted when the user chooses a different map option from openMapOptions props.$event
open-pubmed-urlThis event is emitted when the user clicks on "Open publications in pubmed" button from provenance popup.url
resource-selectedThis event is emitted by resourceSelected method.-
readyThis event is emitted by FlatmapReady method after the flatmap is loaded.component
pan-zoom-callbackThe event emitted by panZoomCallback method.payload
annotation-close--
annotation-open--
connectivity-info-close--
connectivity-info-open--
pathway-selection-changed--
flatmapChangedThis event is emitted by setSpecies method. Emitted on first load and when user changes species.activeSpecies
help-mode-last-item--
shown-tooltipThis event is emitted after a tooltip in Flatmap is shown.-
shown-map-tooltipThis event is emitted after a tooltip on Flatmap's map is shown.-

Methods

MethodDescriptionParameters
initialiseFunction to initialise the component when mounted. It returns a promise.-
resourceSelectedFunction to emit resource-selected event with provided resource.action
FlatmapReadyFunction to emit ready event after the flatmap is loaded.component
getCurrentFlatmapFunction to get the current active map.-
panZoomCallbackFunction to emit pan-zoom-callback event from the event emitted in callback function from MapManager.loadMap().payload
showPopupFunction to show popup on map.featureId, node, options
showMarkerPopupFunction to show marker popup.featureId, node, options
setSpeciesFunction to set species. This function is called on the first load and when user changes the species.species, state, numberOfRetry
getStateFunction used for getting the current states of the scene. This exported states can be imported using the importStates method.-
setStateFunction used for importing the states of the scene. This exported states can be imported using the read states method.state
activateTooltipByIndexFunction to activate help mode tooltip by item index numberindex
onHelpModeLastItemFunction to check the last item of help modeisLastItem
onTooltipShownFunction to emit event after a tooltip is shown.-
onMapTooltipShownFunction to emit event after a tooltip on the map is shown.-
changeViewingModeFunction to change the view mode of the map.modeName