Skip to content

Report camera fov and apply paddings - #30

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 36.87 (engine default, measured 36.9); paddings native (the commented-out TODOs are enabled; dp → px).

Commits

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

The padding TODO is enabled: MapCameraPosition.paddings (dp) is passed
to MapLibre as px on move, animate and the initial camera, and read back
from the camera's padding. MapLibre then places the target at the
padded-area center and solves the perspective itself. fov is 36.87, the
MapLibre default (measured 36.9 on TB520FU in both orientations).
@wf9a5m75
wf9a5m75 merged commit 7586e4d 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