How to format text in info window
Javascript newbie here... I'm trying to get the text in the info window
to break and go to a new line for the address... I can't seem to figure
out how to do it... could someone please help me?
Here is my code now:
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.centerAndZoom(new GPoint(-111.658449, 40.284641), 4);
map.openInfoWindow(map.getCenterLatLng(),
document.createTextNode("Riverwoods Pet
Hospital<br>3820 N University Ave<br>Provo UT 84604<br>801-224-2233"));
I just want a simple map but need the address to format properly...
Thanx for all your help... =}
0 Comments:
Yorum Gönder
<< Home