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.Overlaythat change position, rotation and field of view to show the current view of abu.street.Viewer.Parameters:
Name Type Description viewerbu.Viewer Viewer to update.
viewIndexnumber Index of the viewer to update.
centerbu.Coordinate The current center of the panorama. Projection is always in WGS84 latlon.
rotationnumber The current rotation of the panorama. Rotation is decimal degrees with zero at north and range [0,360).
fovnumber The current FOV of the panorama. Angle is decimal degrees.
visibleboolean If the overlay is visible or not
streetViewIndexnumber The index of the
bu.street.Viewerwe 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 layoutbu.Layout The layout to udpate.
- Source:
- bu/panoramaoverlays.js
Javascript API 7.x