Methods
(inner) addFootprintLayerToMap(map)
Adds a footprintLayer to a map.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map. |
(inner) calculateCameraPosition(bbox) → {Array.<Number>}
Calculate the position of the camera object belonging to the bbox based on the orientation.
The camera is placed between the two points nearest the camera at a distance equal to the
distance between the same two points.
Parameters:
Name | Type | Description |
---|---|---|
bbox |
Array.<Array.<Number>> | The bounding box. |
Returns:
the position of the camera object.
- Type
- Array.<Number>
(inner) createCameraStyle(orientation) → {ol.Style}
Creates a camera style for the given orientation.
Parameters:
Name | Type | Description |
---|---|---|
orientation |
String | The orientation. |
Returns:
The resulting style.
- Type
- ol.Style
(inner) footprintHandler(viewport, item)
Adds an eventlistener to the viewport for updating the footprint.
Parameters:
Name | Type | Description |
---|---|---|
viewport |
Object | The viewport. |
item |
Object | Image item displayed by the viewport |
(inner) generateFootprintLayer()
Creates an Openlayers layer with a footprint bounding box and camera illustrating the direction.
Returns:
An Openlayers layer with a footprint bounding box and camera illustrating the direction.
(inner) getUpdateMapFootprintFunction(map) → {function}
Gets a function for updating the map footprint.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map. |
Returns:
The map footprint update function.
- Type
- function
(inner) updateFootprint(map, bounding_box, orientation)
Updates the footprint for the map.
Parameters:
Name | Type | Description |
---|---|---|
map |
ol.Map | The map to update. The map needs to previously have added a footprint layer generated using the generateFootprintLayer function. |
bounding_box |
ol.Extent | The bounding box of the footprint in map coordinates. |
orientation |
String | The orientation of the footprint. |