I still think that getKMLLayer should not be a function provided by gaLayers.