Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhotoSphereViewer: button "markers" not found in the navbar. #154

Closed
runtim opened this issue Sep 28, 2017 · 1 comment
Closed

PhotoSphereViewer: button "markers" not found in the navbar. #154

runtim opened this issue Sep 28, 2017 · 1 comment
Labels
Milestone

Comments

@runtim
Copy link

runtim commented Sep 28, 2017

Your demo has a warning about "PhotoSphereViewer: button "markers" not found in the navbar."

How can this be resolved?

@bookwoody
Copy link

I got the same warning while playing around with the examples. The problem in my case was that i removed the 'markers' from the navbar configuration:

let PSV = new PhotoSphereViewer({
        container: 'photosphere',
        panorama: query.url,
        navbar: [
            'autorotate',
            'zoom',
            // 'markers',
            'spacer-1',
            'gyroscope',
            'fullscreen' 
       ] 
});

My solution was to hide the markers button from the navbar instead of removing it from the navbar configuration:

let PSV = new PhotoSphereViewer({
        container: 'photosphere',
        panorama: query.url,
        navbar: [
            'autorotate',
            'zoom',
            'markers',
            'spacer-1',
            'gyroscope',
            'fullscreen'
        ] });

PSV.getNavbarButton('markers').hide();

@mistic100 mistic100 added this to the 3.2.4 milestone Oct 23, 2017
@mistic100 mistic100 added the bug label Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants