sg

Salı, Aralık 27, 2005

info bubble help


quick question. any help would be greatly appreciated.
i have the following script running for the map on my site (thanks to
mike williams).

<table border=0>
<tr>
<td>
<div id="map" style="width: 500px; height: 450px"></div>
</td>
</tr>

</table>

<script type="text/javascript" script defer="defer">

//<![CDATA[

if (GBrowserIsCompatible()) {

function createMarker(point,html) {
// FF 1.5 fix
html = '<div style="white-space:nowrap;">' + html + '</div>';
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}

var map = new GMap(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.centerAndZoom(new GPoint(-93.2668662071228,
45.16993210323131), 8);

var point = new GPoint(-93.2668662071228, 45.16993210323131);
var marker = createMarker(point,'Believers Bible Chapel')
map.addOverlay(marker);
}

//]]>
</script>

everything is working great. however, is there any way to get the to
here/from here directions in the info bubble? Ive looked and the only
way i see is through the XML and some other ways that just went over my
head. is there anything simple that i can add to this script to get it
to show up. if there isnt anything SIMPLE, please just say so and i'll
stop looking for answers. If there is, please post and i'll be all
ears. i dont know a lot of javascript, so descriptive responses would
be appreciated.

thanks
felix

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık