I’m loading a kml in a map from google using a code like this:
var myOptions = {
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
var kmlLayer = new google.maps.KmlLayer('https://maps.google.com/maps/ms?authuser=0&vps=2&ie=UTF8&msa=0&output=kml&msid=209879288832578501414.0004c52d678cf88f70685');
kmlLayer.setMap(map);
The problem is the link into the popup, kml adds target="_blank" and I don’t want it.
How I can remove it using javascript? I found this answer but it doesn’t work in the API 3. I prefer not to use jQuery.
With @geocodezip‘s comments I got a solution. It isn’t perfect, the
InfoWindowbegins at the foot of the marker rather of the head but is something.