Skip to content

feat: KML URL Sanitizer API#1678

Merged
dkhawk merged 3 commits intomainfrom
feat/kml-url-sanitizer
Apr 20, 2026
Merged

feat: KML URL Sanitizer API#1678
dkhawk merged 3 commits intomainfrom
feat/kml-url-sanitizer

Conversation

@kikoso
Copy link
Copy Markdown
Collaborator

@kikoso kikoso commented Apr 16, 2026

Introduces the interface to give developers control over which external resources (icons, ground overlays) are loaded by the .

Key changes:

  • New interface.
  • Updated constructors to accept an optional sanitizer.
  • uses the sanitizer before fetching any remote bitmap.
  • Default implementation allows only and schemes, providing a secure baseline.

This API allows for domain allowlisting or blocking specific resource types in KML documents.

@googlemaps-bot
Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 40.21% -0.41% 🍏
Files changed 34.19%

File Coverage
KmlRenderer.java 9.32% -1.35% 🍏
KmlLayer.java 0% -33.58%

@dkhawk dkhawk merged commit 43855e9 into main Apr 20, 2026
8 checks passed
@dkhawk dkhawk deleted the feat/kml-url-sanitizer branch April 20, 2026 17:27
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.

3 participants