I want to provide KMZ file link from dropbox/google drive on my google map so Google map can parse it as KMZ file needs to be parsed from public hosted domain but I am unable to find a way:
<script>
var map;
var src = 'https://drive.google.com/file/d/0B-_cUzmUSQEoYUNlSzN5cVNmd0k/view';//link of google drive but its saying invalid document
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
center: new google.maps.LatLng(-19.257753, 146.823688),
zoom: 2,
mapTypeId: 'terrain'
});
var kmlLayer = new google.maps.KmlLayer((src), {
suppressInfoWindows: true,
preserveViewport: false,
map: map
});
console.log(kmlLayer)
kmlLayer.addListener('click', function(event) {
var content = event.featureData.infoWindowHtml;
var testimonial = document.getElementById('capture');
testimonial.innerHTML = content;
});
}