cmv/cmv-app

Street view widget doesn't work with mobile sidebar

Closed this issue · 2 comments

How often can you reproduce it?

  • Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description:
When using the mobile sidebar, street view widget doesn't work. street view widget works for me otherwise (as a title pane).

Steps to reproduce:
in viewer.js config:

//setting the sidebar to be on
layout: {
    sidebar: 'true'
}
//add the street view widget as a titlePane
widgets: {
            streetview: {
                include: true,
                id: 'streetview',
                type: 'titlePane',
                canFloat: true,
                position: 10,
                path: 'gis/dijit/StreetView',
                title: i18n.viewer.widgets.streetview,
                iconClass: 'fa-street-view',
                paneOptions: {
                    resizable: true,
                    resizeOptions: {
                        minSize: {
                            w: 250,
                            h: 250
                        }
                    }
                },

                options: {
                    map: true,
                    mapClickMode: true,
                    mapRightClickMenu: true,
                    proj4Catalog: 'ESRI'
                }
            }
}

Actual results:

street view results area turns white, and console error getPanoramaByLocation of undefined.
image

Environment:

Software Version
CMV Version CMV 2 beta 2
Browser Chrome and IE 11
Operating system Windows 7
thanks

Confirmed this is a problem that needs to be fixed in StreetView widget. Should not assume that the parentWidget is a TitlePane.

Calling this.parentWidget.toggle() here is also a similar problem for this widget.

DJA30 commented

Were you using http or https?