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.Overlay
that change position, rotation and field of view to show the current view of aMapspace.street.Viewer
.Parameters:
Name Type Description center
Mapspace.Coordinate The current center of the camera. Projection is always in WGS84 latlon.
rotation
number The current rotation of the camera. Rotation is decimal degrees with zero at north, 90 looking west, etc. and range [0,360).
fov
number The current FOV of the camera. Angle is decimal degrees.
visible
boolean If the overlay is visible or not
viewIndex
number The index of the
Mapspace.Viewer
we are going to use to update the overlay.- Source:
- mapspace/cameraoverlays.js