kmlToGeoJSON

suspend fun kmlToGeoJSON(kmlXml: String): String?

Converts a KML XML payload to a GeoJSON FeatureCollection string using the SDK converter.

This does not mutate the map and can be used to prepare data for a GeoJSON source.

Return

The GeoJSON FeatureCollection as a compact JSON string, or null on failure.

Parameters

kmlXml

The KML file contents as a string.