Google maps kml layer

Posted by TiagoMartins on Stack Overflow See other posts from Stack Overflow or by TiagoMartins
Published on 2010-07-07T16:21:18Z Indexed on 2011/02/22 23:25 UTC
Read the original article Hit count: 309

Filed under:
|

Hi, my code is:

var ctaLayer = new google.maps.KmlLayer(
    'http://.../per1.kml',
     {suppressInfoWindows: true});
ctaLayer.setMap(map);


 var info_percurso = new google.maps.InfoWindow({
  content: 'hi'
 });

  google.maps.event.addListener(ctaLayer, 'click', function() {

  info_percurso.open(map,ctaLayer);

  alert("dd");
}); 

this is possible? this code doesn't work...but the operation is possible?

I need to create my own infoWindow for database queries

© Stack Overflow or respective owner

Related posts about google-maps

Related posts about kml