Skip to content

Report camera fov and apply paddings - #25

Merged
wf9a5m75 merged 2 commits into
developfrom
feat/camera-paddings
Nov 12, 2026
Merged

wf9a5m75 merged 2 commits into
developfrom
feat/camera-paddings

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

Summary

This provider now

  • reports MapCameraPosition.fov for its engine, and
  • honours MapCameraPosition.paddings on move / animate: the target lands at the centre of the padded area, and the camera read back reports the target with the same paddings.

Depends on the core feat/camera-paddings PR (and, where noted, the provider's tilt fix PR).

fov from the live camera (focal length ≈ 3550 px; 44.6° portrait / 28.6° landscape on TB520FU); paddings emulated.

Commits

  • Apply camera paddings and report fov on HERE
  • Merge remote-tracking branch 'origin/develop' into feat/camera-paddings

The principal point is not used: it is not part of the flyTo animation
and jumps when set. Paddings are emulated by moving the camera center
and undone on read. HERE has no fov getter, so it is measured from the
live camera: distanceToTarget times the px a sideways metre moves at
the target gives the focal length (about 3550 px on TB520FU regardless
of map size, orientation or density), and fov follows from the map
height (44.6 in full-screen portrait, 28.6 in landscape).
@wf9a5m75
wf9a5m75 merged commit 28173a0 into develop Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant