Skip to content

Report camera fov and apply paddings - #19

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 0 (tilt drawn without perspective); paddings emulated.

Commits

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

The SDK padding setters are not used: they shift the view at once and
do not follow the frame-stepped animation. Paddings are emulated by
moving the camera center (every animation frame uses the new padding,
and the start point is read with it so the first frame does not jump)
and undone on read. The tilt is drawn by rotating the view with almost
no perspective (spacing within 0.3% of cos(tilt)), so fov is 0.
@wf9a5m75
wf9a5m75 merged commit 38663a8 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