Skip to content

Commit

Permalink
disable markers by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
wensheng-yan committed Jun 29, 2017
1 parent f034d44 commit 4e9604d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/scripts/Panorama.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const defaults: Settings = {
HideTime: 3000,
},

Markers: []
Markers: false
};

/**
Expand Down Expand Up @@ -315,7 +315,7 @@ class Panorama extends EventEmitter{
this.videoCanvas.show();

//initial markers
if(this.options.Markers){
if(this.options.Markers && Array.isArray(this.options.Markers)){
let markerContainer = new MarkerContainer(this.player, {
canvas: this.videoCanvas,
markers: this.options.Markers,
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/types/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export type Settings = {
HideTime?: number;
};

Markers?: MarkerSettings[],
Markers?: MarkerSettings[] | boolean,

ready?: Function;

Expand Down

0 comments on commit 4e9604d

Please sign in to comment.