I have a KML file that has descriptions containing links: http://www.bathspa.ac.uk/contact/bath-spa-university-campuses.kml
The KML file is embedded in a map: http://www.bathspa.ac.uk/contact/directions.asp In the v2 API I used a short section of code to prevent those links from opening in a new window: GEvent.addListener(map,"infowindowopen",function() { var i = map.getInfoWindow(); var nodes = i.getContentContainers(); for (var node in nodes) { var anchors = nodes[node].getElementsByTagName('A'); for (var a in anchors) if (anchors[a].tagName) anchors[a].setAttribute("target","_top"); } } ); Is there a way to do the same in the v3 API for my updated map? http://www.bathspa.ac.uk/contact/directions-v3.asp -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
