/*------Добавить слой--------------------------------------------------*/
var layerMain = new google.maps.KmlLayer({
url: 'http://site.com/gmaps/2_0/layer_main.kml',
map: map
});
var layerSecond = new google.maps.KmlLayer({
url: 'http://site.com/gmaps/2_0/layer_second.kml',
map: map
});
/*------Действия по клику--------------------------------------------------*/
layerMain.addListener('click', function(event) {
console.log('click');
console.log('layer was removed');
layerMain.setMap(null);
map.setZoom(11);
});