Class: PanoramaOverlays

bu. PanoramaOverlays

This class uses internally a collection of ol.Overlay objects to show in any viewer the panorama center and FOV of a bu.street.Viewer.


new PanoramaOverlays(options)

Parameters:
Name Type Description
options bu.PanoramaOverlaysOptions

Object options.

Source:
bu/panoramaoverlays.js

Extends

  • ol.Object

Methods


update(viewer, viewIndex, center, rotation, fov, visible, streetViewIndex)

Updates an overlay (a center icon and FOV icon) of a panorama inside a viewer. Overlays are ol.Overlay that change position, rotation and field of view to show the current view of a bu.street.Viewer.

Parameters:
Name Type Description
viewer bu.Viewer

Viewer to update.

viewIndex number

Index of the viewer to update.

center bu.Coordinate

The current center of the panorama. Projection is always in WGS84 latlon.

rotation number

The current rotation of the panorama. Rotation is decimal degrees with zero at north and range [0,360).

fov number

The current FOV of the panorama. Angle is decimal degrees.

visible boolean

If the overlay is visible or not

streetViewIndex number

The index of the bu.street.Viewer we are going to use to update the overlay.

Source:
bu/panoramaoverlays.js

updateLayout(layout)

Updates all panorama overlays for a complete layout. This function iterates through all the viewers, check if there is street viewers with syncing properties, and sync the required viewers.

Parameters:
Name Type Description
layout bu.Layout

The layout to udpate.

Source:
bu/panoramaoverlays.js