Skip to content

Fix ArcGIS tilt camera read-back and 2D centring - #34

Merged
wf9a5m75 merged 2 commits into
developfrom
fix/arcgis-tilt-camera
Nov 12, 2026
Merged

wf9a5m75 merged 2 commits into
developfrom
fix/arcgis-tilt-camera

Conversation

@wf9a5m75

Copy link
Copy Markdown
Contributor

Summary

ArcGIS tilt camera fixes on Android:

  • 3D read-back returned the eye position instead of the point looked at (3.2–5.6 km off at tilt 30–60); it now returns the screen-centre point.
  • 2D read-back used the enlarged inner view's size under tilt (3.5 km off, some reads failed); it now uses the outer view.
  • 2D tilt-only moves were not reported to the state.
  • 2D centring: ArcGIS draws the camera centre 25.5 px above the screen centre (attribution bar); the target now sits at the real screen centre (read-back within 2 m).

Verification

TB520FU at tilt 0–60.

Commits

  • Read the tilted ArcGIS camera back at the screen center
  • Merge remote-tracking branch 'origin/develop' into fix/arcgis-tilt-camera

3D: Camera holds the eye position. Under tilt the eye sits behind the
point being looked at, so returning it as MapCameraPosition.position put
the read-back 3 to 6 km short of the target at tilt 30 to 60. The read
now returns the point at the screen center (screen-center unproject,
falling back to eye + altitude * tan(pitch) along the heading).

2D: the read-back unprojected the inner MapView's size, which is twice
the frame when the tilt emulation is on, so the center landed far away
and the corners failed. It now uses the outer view's size. A tilt-only
change also never reached the state because the Viewpoint did not
change; it is emitted after the move now. The Viewpoint center was drawn
half an attribution bar above the view center (25.5px on TB520FU), which
read back 45m off; the center is now shifted so the position lands at
the view center.
@wf9a5m75
wf9a5m75 merged commit 0ea387d 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