The following is the code from our site.
var checkclick = 0;
function getWubutoEvents(map,string,query) {
coords = string.split(",");
for (i=0;i<4;i++)
{
coords[i] = coords[i].replace("((","");
coords[i] = coords[i].replace("))","");
coords[i] = coords[i].replace("(","");
coords[i] = coords[i].replace(")","");
coords[i] = coords[i].replace(" ","");
}
var newurl = "http://www.crewtraders.com/accom/ajaxmarkers.php?
lat1="+coords[0]+"&lat2="+coords[2]+"&lng1="+coords[1]+"&lng2="+coords
[3]+"&query="+query;
//document.getElementById("searchname").value=newurl;
// notice the use of a proxy to circumvent the Same Origin Policy.
if (window.XMLHttpRequest) // Object of the current windows
{
xhr = new XMLHttpRequest(); // Firefox, Safari, ...
}
else if (window.ActiveXObject) // ActiveX version
{
xhr = new ActiveXObject("Microsoft.XMLHTTP"); // Internet Explorer
}
xhr.onreadystatechange = function() {
if (xhr.readyState == 4)
{
for (i=0;i<overlays.length;i++ )
{
map.removeOverlay(overlays[i]);
}
overlays = Array();
overlayCats = Array();
var response = xhr.responseText;
response = response.split("$$");
for (i=0;i<response.length;i++ )
{
var marker = response[i].split("##");
var point = new GLatLng(marker[0],marker[1]);
if (!marker[6])
{
marker[6] = ",";
}
overlayCats[i] = marker[6];
var markerPoint = createTabbedMarker(point, [marker[2],marker
[3],marker[5],marker[4],marker[7]],["Property","Image","More
info","Contact"]);
map.addOverlay(markerPoint);
overlays[i] = markerPoint;
var tooltip = new Tooltip(markerPoint,marker[8],4);
markerPoint.tooltip = tooltip;
map.addOverlay(tooltip);
GEvent.addListener(markerPoint,'mouseover',function()
{ this.tooltip.show(); });
GEvent.addListener(markerPoint,'mouseout',function()
{ this.tooltip.hide(); });
}
}
};
xhr.open('GET', newurl, true);
xhr.send(null);
}
On Mar 24, 12:19 am, Rossko <[email protected]> wrote:
> > Could you direct us to a site or some
> > examples or samples of robust tooltip code that we could implement for
> > our maps.
>
> What do you want from tooltips that isn't covered by the standard
> GMarker tooltip?
> http://econym.org.uk/gmap/tooltips.htm
> You can use styles etc with these alternative methods
> http://econym.org.uk/gmap/tooltips2.htm
> http://econym.org.uk/gmap/tooltips4.htm
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---