Using the marker openInfoWindowHtml method opens an infoWindow
pointing to the top of the marker, and you don't have to supply a
latLng:
GEvent.addListener(geoPointMarker, "click", function(latLng) {
var htmlStr = '<p>Here is my picture: <img src="images/
myPicture.jpg"></p>';
geoPointMarker.openInfoWindowHtml(htmlStr);
});
On Aug 20, 11:38 am, Neale Morison <[email protected]> wrote:
> GEvent.addListener(myMarker, "click", function(latLng) {
> var htmlStr = '<p>Here is my picture: <img
> src="images/
> myPicture.jpg"></p>';
> myMap.openInfoWindowHtml(latLng, htmlStr) ;
> });
>
> On Aug 20, 6:28 am, vincent <[email protected]> wrote:
>
> > Hello
> > i have found and a bit modifyed the code, and now i have a map showing
> > a imaginary tour by car or bike ;-)http://www.wombat.ch/Maps/Tour.html
>
> > what i would like to add into the Ino-buble is a picture - but i can't
> > find out how
>
> > i found some links but the code looks quiet differen from what i have
>
> > thanks for support
>
> > vincent
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---