Yes, adding 'var panorama;' to the start of the js file did the trick - thank you very much Rossko!
On Aug 19, 2:19 pm, Rossko <[email protected]> wrote: > > Here's the new problem - unchecking a category for the first time does > > not remove the associated listings from the sidebar. If you then check > > and uncheck the same category for a 2nd time, the sidebar listings are > > correctly removed and it continues to work properly for subsequent > > checkbox clicks. > > I get a javascript error on the 'hide' click > panorama is not defined > in > if(panorama) {panorama.remove()}; > > Your boxclick() function calls hide(), which in turn calls > map.closeInfoWindow() whether or not an infowindow is open. > That triggers a map "infowindowbeforeclose" event, and the listener > for that calls if(panorama), and 'panorama' is not defined before the > first infowindow is opened. The code crash prevents makeSidebar() > getting called. You might want to 'var' panorama somewhere. -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
