I'd rename this function `createKmlLayer`, to make it explicit that a new layer is created each time the function is called.