I am trying to load kmz files on my page. I tried two ways: The first method is by using:
map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
layer = new google.maps.KmlLayer('http://www.rwaafid.com/KMZ/geoxml3/1.kmz');
layer.setMap(map);
This method is fast but it doesn't accept large kmz files and doesn't allow large number of layers. When I add certain number of layers, it stops drawing kmz into google map.
The first method is by using:
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var geoXml = new geoXML3.parser({
map: map,
singleInfoWindow: true,
afterParse: useTheData
});
geoXml.parse('http://www.rwaafid.com/KMZ/geoxml3/1.kmz')
}
This method works fine with some kmz files but with another files it takes very long time.
I tried both methods with the file : 'http://www.rwaafid.com/KMZ/geoxml3/1.kmz'
The first was very fast but it will not allow more files with more layers. The Second took more than two minutes to load the drawings into the map.
Is there any solution for this. I have been trying since more than a week to solve this issue. I appreciate any cooperation to this issue.