~~kml()~~ kml(kml: XMLDocument, options?: LayerOptions): KML Defined in: leaflet/vector/kml.ts:662 Parameters Parameter Type kml XMLDocument options? LayerOptions Returns KML Deprecated Creates a new instance of a KML layer.