Module: viewer
description
Main interfaces and methods for interacting with
and extending MapillaryJS.
#
Enumerations#
Classes#
Interfaces- ComponentOptions
- FallbackOptions
- ICustomCameraControls
- ICustomRenderer
- IViewer
- NavigationEdge
- NavigationEdgeData
- NavigationEdgeStatus
- PointOfView
- UrlOptions
- ViewerBearingEvent
- ViewerDataLoadingEvent
- ViewerEvent
- ViewerImageEvent
- ViewerMouseEvent
- ViewerNavigableEvent
- ViewerNavigationEdgeEvent
- ViewerOptions
- ViewerReferenceEvent
- ViewerStateEvent
#
Type aliases#
CombiningFilterExpressionƬ CombiningFilterExpression: [CombiningFilterOperator
, ...(ComparisonFilterExpression | SetMembershipFilterExpression)[]]
#
Defined in#
CombiningFilterOperatorƬ CombiningFilterOperator: "all"
#
Defined in#
ComparisonFilterExpressionƬ ComparisonFilterExpression: [ComparisonFilterOperator
, FilterKey
, FilterValue
]
#
Defined in#
ComparisonFilterOperatorƬ ComparisonFilterOperator: "=="
| "!="
| ">"
| ">="
| "<"
| "<="
#
Defined in#
FilterExpressionƬ FilterExpression: ComparisonFilterExpression
| SetMembershipFilterExpression
| CombiningFilterExpression
#
Defined in#
FilterImageƬ FilterImage: Pick
<Image
, "cameraType"
| "capturedAt"
| "clusterId"
| "creatorId"
| "creatorUsername"
| "exifOrientation"
| "height"
| "id"
| "mergeId"
| "merged"
| "ownerId"
| "private"
| "qualityScore"
| "sequenceId"
| "width"
>
#
Defined in#
FilterKeyƬ FilterKey: keyof FilterImage
#
Defined in#
FilterOperatorƬ FilterOperator: CombiningFilterOperator
| ComparisonFilterOperator
| SetMembershipFilterOperator
#
Defined in#
FilterValueƬ FilterValue: boolean
| number
| string
#
Defined in#
SetMembershipFilterExpressionƬ SetMembershipFilterExpression: [SetMembershipFilterOperator
, FilterKey
, ...FilterValue[]]
#
Defined in#
SetMembershipFilterOperatorƬ SetMembershipFilterOperator: "in"
| "!in"
#
Defined in#
Events#
ViewerEventType• ViewerEventType: "bearing"
| "click"
| "contextmenu"
| "dblclick"
| "fov"
| "dataloading"
| "load"
| "mousedown"
| "mousemove"
| "mouseout"
| "mouseover"
| "mouseup"
| "moveend"
| "movestart"
| "navigable"
| "image"
| "position"
| "pov"
| "reference"
| "remove"
| "sequenceedges"
| "spatialedges"
#
Defined inviewer/events/ViewerEventType.ts:4
#
Functions#
isFallbackSupportedâ–¸ isFallbackSupported(): boolean
Test whether the current browser supports the fallback functionality of MapillaryJS.
description
The fallback functionality does not include WebGL
rendering, only 2D canvas rendering.
example
var fallbackSupported = isFallbackSupported();
#
Returnsboolean
#
Defined in#
isSupportedâ–¸ isSupported(): boolean
Test whether the current browser supports the full functionality of MapillaryJS.
description
The full functionality includes WebGL rendering.
example
var supported = isSupported();
#
Returnsboolean