Skip to content

feat(data): add support for parsing GroundOverlay with LatLonQuad bounds - #1739

Merged
dkhawk merged 1 commit into
mainfrom
feat/kml-lat-lon-quad
Aug 5, 2026
Merged

feat(data): add support for parsing GroundOverlay with LatLonQuad bounds#1739
dkhawk merged 1 commit into
mainfrom
feat/kml-lat-lon-quad

Conversation

@dkhawk

@dkhawk dkhawk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Reimplements KML <LatLonQuad> GroundOverlay parsing and mapping on the Kotlin data layer (KmlModel.kt and KmlMapper.kt).

Summary of Changes

  • Supports corner coordinate arrays (<coordinates>SW SE NE NW</coordinates>), computing the rectified bounding box and average rotation using spherical bearing calculations from SphericalUtil.
  • Adds regression tests in GroundOverlayTest and KmlMapperTest that fail on unpatched code and pass with LatLonQuad support.
  • Adds a sample LatLonQuad overlay to ground_overlay.kml and updates RendererVisualTest to visually verify both Mount Etna overlays side-by-side on-device.

Replaces and closes #1396.

- Reimplement KML <LatLonQuad> GroundOverlay parsing and mapping on the Kotlin data layer (KmlModel.kt and KmlMapper.kt).

- Support corner coordinate arrays (<coordinates>SW SE NE NW</coordinates>), computing the rectified bounding box and average rotation using spherical bearing calculations from SphericalUtil.

- Add regression tests in GroundOverlayTest and KmlMapperTest that fail on unpatched code and pass with LatLonQuad support.

- Add sample LatLonQuad overlay to ground_overlay.kml and update RendererVisualTest to visually verify both overlays side-by-side on-device.
@googlemaps-bot

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 0%

There is no coverage information present for the Files changed

@kikoso kikoso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dkhawk
dkhawk merged commit c2a165d into main Aug 5, 2026
12 checks passed
@dkhawk
dkhawk deleted the feat/kml-lat-lon-quad branch August 5, 2026 15:59
dkhawk added a commit that referenced this pull request Aug 5, 2026
- Sync with latest origin/main containing PR #1740 (Gradle 9.6.1 / CI fixes), PR #1739 (LatLonQuad GroundOverlays), PR #1730 (clustering updateItem fix), and PR #1741 (XML serialization hardening).

- Preserve all backwards-compatible @deprecated com.google.maps.android.ktx typealiases and forwarding bridges for 6.0.0-rc01.

- Add play-services-location and mockito-kotlin dependencies to libs.versions.toml for KTX location module tests.
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.

4 participants