Map showing that it exists without existing

1

I have a somewhat strange problem, I added a map per kml on the site but then I tried to change that map for another, I noticed that it did not change, I cleared the cache and I did everything but it does not change, then I deleted the kml site and yet it says the path exists and shows the map normally. Anyone know what could be happening? Here in src this path no longer exists, I call it inside kmlLayer deletei the map.kml and the map folder and still show the map

   var map;
var src = '<?php echo $template_directory."/assets/map/map.kml"; ?>';
function initMap(){
    map = new google.maps.Map(document.getElementById('mapIndex'), {
    center: new google.maps.LatLng(-19.257753, 146.823688),
    zoom: 3,
    mapTypeId: 'terrain'
});

var kmlLayer = new google.maps.KmlLayer(src, {
    suppressInfoWindows: true,
    map: map
});

 kmlLayer.addListener('click', function(kmlEvent) {
          var text = kmlEvent.featureData.id;
         switch(text){
            case 'ge1aada206d3a790b': window.location.href="www.ge1aada206d3a790b.com";
            break;

            case 'g22bdca4615d775a8': window.location.href="www.g22bdca4615d775a8.com";
            break;

            case 'g6f2fc76f6f5daa31': window.location.href="www.g6f2fc76f6f5daa31.com";
            break;

            case 'g542d4f6cf29b3da9': window.location.href="www.g542d4f6cf29b3da9.com";
            break;

            case 'g0417cd662fbf18c5': window.location.href="www.g0417cd662fbf18c5.com";
            break;

            case 'g12bf58382143fa61': window.location.href="www.g12bf58382143fa61.com"
            break;

            case 'gddd613992fbe0382': window.location.href="www.gddd613992fbe0382.com";
            break;

            case 'g81b1c174ac662941': window.location.href="www.g81b1c174ac662941.com";
            break;
         }
        })
    
asked by anonymous 30.08.2017 / 15:37

0 answers