I created a map in my blogger and I added pictures in the map. Until this point everything going well, but now, I'm trying to add a event to the imagen, that when I press over the imagen apear a windown with the imagen.
You can see the map with the picture in the botton of my blog: http://goplanettravel.blogspot.com I introduced the image in the map like that: (I'm writting the code in Layout --> Edit HTML ) function createIMexico(point,nombre,continente,pais) { var marker = new GMarker(point, IMexico); return marker; } var point = new GPoint (-88.57521057128906,20.67759918600041); var nombre = "Mexico"; var continente = "North America"; var pais = "mexico"; var marker = createIMexico (point,nombre,continente,pais); map.addOverlay(marker); But if I introduce the next code to try to introduce the event: function createIMexico(point,nombre,continente,pais) { var marker = new GMarker(point, IMexico); GEvent.addListener(marker, 'click', function() { var imag = '<img width="200" src="http://bp1.blogger.com/ _Eg1ks9CXra8/SG0T_VTpJRI/AAAAAAAAEXc/zxEe3NPunC4/s320/IMG_1224.JPG" height="200"/>' var total = imag marker.openInfoWindowHtml(total) }); return marker; } When I'm trying to load the blog I get a error; could anyone help me? Thank you very much --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
