Skip to content

feat: KML URL Sanitizer API#1678

Open
kikoso wants to merge 3 commits intomainfrom
feat/kml-url-sanitizer
Open

feat: KML URL Sanitizer API#1678
kikoso wants to merge 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%

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