diff --git a/plugins/linear-genome-view/src/LinearGenomeView/index.tsx b/plugins/linear-genome-view/src/LinearGenomeView/index.tsx index a5cf8bd45e..14bfc2ba13 100644 --- a/plugins/linear-genome-view/src/LinearGenomeView/index.tsx +++ b/plugins/linear-genome-view/src/LinearGenomeView/index.tsx @@ -530,7 +530,11 @@ export function stateModelFactory(pluginManager: PluginManager) { this.scrollTo(self.totalBp / self.bpPerPx - self.offsetPx - self.width) }, - showTrack(trackId: string, initialSnapshot = {}) { + showTrack( + trackId: string, + initialSnapshot = {}, + displayInitialSnapshot = {}, + ) { const trackConfigSchema = pluginManager.pluggableConfigSchemaType( 'track', ) @@ -559,7 +563,13 @@ export function stateModelFactory(pluginManager: PluginManager) { ...initialSnapshot, type: configuration.type, configuration, - displays: [{ type: displayConf.type, configuration: displayConf }], + displays: [ + { + type: displayConf.type, + configuration: displayConf, + ...displayInitialSnapshot, + }, + ], }) self.tracks.push(track) return track