I'm confused as to what a string of html means. I can display an
image no problem. But if I want text and an image the map just fails
to load. I tried putting everying in a table so it was formatted
nicely, but when I added it, the map wouldn't load.
Could someone give me an example code of a map marker that uses html
and displays an image and text.
var STT = new GMarker(new GLatLng(41.405995, -75.657253));
map.addOverlay(STT);
GEvent.addListener(STT,"click", function() {
STT.openInfoWindowHtml('Saint Thomas Hall<br><img
src="http://academic.scranton.edu/department/wml/images/
buildings_StThomas.jpg">');
});
That's what I'm trying to use, but the map won't even load.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---