Skip to content

Expose current bearing in public API #201

@oscarlorentzon

Description

@oscarlorentzon

Exposing the current bearing makes it possible to rotate a marker on a map according to the current point of view.

The bearing value is relevant for panoramas as well as perspective images and should be exposed always.

Currently the direction component does the calculations necessary to retrieve the bearing. This code should be moved to the state and handled correctly. The bearing should be exposed as an observable/event on the viewer.

The edge data currently contains a property called worldMotionAzimuth. Potentially the name and calculations for that one should be changed.

  • Bearing calculations in state
  • Use bearing observable in direction component (and future bearing component)
  • Expose bearing as event/observable on viewer.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions