Map showing that exists without existing

Asked

Viewed 22 times

1

I have a problem a little strange, I added a map per kml on the site but then I went to try to change this map for another, I noticed that it did not change, I cleaned the cache and I did everything but it does not change, then deleted the kml of the site and yet it says the path exists and shows the map normally. Does anyone know what might be going on? There in src this path doesn’t even exist anymore, I call it inside kmlLayer deleted the map.kml and the folder map and still shows 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;
         }
        })
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.