I'm working with Google Maps API JavaScript Library. I am trying to display a Groundoverlay image on top of a KMZ layer. Whatever I try, the KMZ layer stays on top, blocking my Groundoverlay image.
I have already noticed that one cannot specify a zIndex for Groundoverlays. Any help will be very much appreciated. Below is the javascript code that illustrates the problem:
<script>
var map;
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
zoom: 14,
center: {lat: 51.92123061150897, lng: 4.482456756591775}
});
var ctaLayer = new google.maps.KmlLayer({
url: 'http://bit.ly/1PjfdTp',
map: map,
preserveViewport: true
});
var doctorbounds = {
north: 51.911766,
south: 51.909567,
east: 4.469100,
west: 4.466565
};
var doctorpicture = new google.maps.GroundOverlay(
'http://bit.ly/1mIHLPG',
doctorbounds);
doctorpicture.setMap(map);
}
</script>