Posted By

petterdr on 04/08/10


xml map kml

Versions (?)

Make a link in google map kml file open in the same window

 / Published in: JavaScript

Add this to the javascript that builds the map

  1. GEvent.addListener(map,"infowindowprepareopen", function(iwtabs) {
  2. iwtabs[0].contentElem.innerHTML = iwtabs[0].contentElem.innerHTML.replace("_blank", "_parent");
  3. });

Report this snippet  

You need to login to post a comment.