Class: Viewport¶
Camera state sub-record inside a Scene. Captures the map viewport at capture time.
classDiagram
class Viewport
click Viewport href "../../classes/Viewport/"
Viewport : bearing
Viewport : center
Viewport : zoom
Slots¶
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| center | 1..* Float |
[longitude, latitude] in degrees | direct |
| zoom | 1 Float |
Leaflet-compatible zoom level | direct |
| bearing | 1 Float |
Viewport bearing in degrees | direct |
Usages¶
| used by | used in | type | used |
|---|---|---|---|
| SceneProperties | viewport | range | Viewport |
Identifier and Mapping Information¶
Schema Source¶
- from schema: https://debrief.info/schemas/debrief
Mappings¶
| Mapping Type | Mapped Value |
|---|---|
| self | debrief:Viewport |
| native | debrief:Viewport |
LinkML Source¶
Direct¶
name: Viewport
description: Camera state sub-record inside a Scene. Captures the map viewport at
capture time.
from_schema: https://debrief.info/schemas/debrief
attributes:
center:
name: center
description: '[longitude, latitude] in degrees'
from_schema: https://debrief.info/schemas/storyboard
domain_of:
- SystemStateProperties
- CircleAnnotationProperties
- Viewport
range: float
required: true
multivalued: true
minimum_cardinality: 2
maximum_cardinality: 2
zoom:
name: zoom
description: Leaflet-compatible zoom level
from_schema: https://debrief.info/schemas/storyboard
domain_of:
- SystemStateProperties
- ViewportPolygon
- Viewport
range: float
required: true
bearing:
name: bearing
description: Viewport bearing in degrees. MUST be 0 in schema v1 (reserved slot
for future rotated viewports).
from_schema: https://debrief.info/schemas/storyboard
domain_of:
- SensorContact
- TUASolution
- VectorAnnotationProperties
- Viewport
range: float
required: true
minimum_value: 0
maximum_value: 0
Induced¶
name: Viewport
description: Camera state sub-record inside a Scene. Captures the map viewport at
capture time.
from_schema: https://debrief.info/schemas/debrief
attributes:
center:
name: center
description: '[longitude, latitude] in degrees'
from_schema: https://debrief.info/schemas/storyboard
alias: center
owner: Viewport
domain_of:
- SystemStateProperties
- CircleAnnotationProperties
- Viewport
range: float
required: true
multivalued: true
minimum_cardinality: 2
maximum_cardinality: 2
zoom:
name: zoom
description: Leaflet-compatible zoom level
from_schema: https://debrief.info/schemas/storyboard
alias: zoom
owner: Viewport
domain_of:
- SystemStateProperties
- ViewportPolygon
- Viewport
range: float
required: true
bearing:
name: bearing
description: Viewport bearing in degrees. MUST be 0 in schema v1 (reserved slot
for future rotated viewports).
from_schema: https://debrief.info/schemas/storyboard
alias: bearing
owner: Viewport
domain_of:
- SensorContact
- TUASolution
- VectorAnnotationProperties
- Viewport
range: float
required: true
minimum_value: 0
maximum_value: 0