new CameraOverlays(options)
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Mapspace.CameraOverlaysOptions | Object options. |
- Source:
- mapspace/cameraoverlays.js
Extends
- ol.Object
Methods
-
hideAll()
-
Hides all overlays.
- Source:
- mapspace/cameraoverlays.js
-
update(center, rotation, fov, visible, viewIndex)
-
Updates an overlay (a center icon and FOV icon) of a camera inside a 3D viewer. Overlays are
ol.Overlaythat change position, rotation and field of view to show the current view of aMapspace.street.Viewer.Parameters:
Name Type Description centerMapspace.Coordinate The current center of the camera. Projection is always in WGS84 latlon.
rotationnumber The current rotation of the camera. Rotation is decimal degrees with zero at north, 90 looking west, etc. and range [0,360).
fovnumber The current FOV of the camera. Angle is decimal degrees.
visibleboolean If the overlay is visible or not
viewIndexnumber The index of the
Mapspace.Viewerwe are going to use to update the overlay.- Source:
- mapspace/cameraoverlays.js