I'm trying to add a couple of KML layers to a map. This is the code I have:
var myKmlOptions = {
preserveViewport: true,
suppressInfoWindows: true
}
var kmlLayer_1 = new google.maps.KmlLayer("Layers/layer1.kml", myKmlOptions);
var kmlLayer_2 = new google.maps.KmlLayer("Layers/layer2.kml", myKmlOptions);
kmlLayer_1.setMap(map);
kmlLayer_2.setMap(map);
Something is definately working because if I change preserveViewport to false, the map zooms closer into the area defined by the KML Layer.
But nothing is showing up, the layer its self is missing :/
Any ideas?