This is the relevant URL: http://www.horsetraildirectory.com/map/index_test.htm
Here's a piece of code that was working in January but isn't working
now. The event.button is now undefined.
google.maps.event.addListener(marker,'mousedown',function(event){
var posn = marker.getPosition();
if (event.button==2)
{
if (jel==0)
{
mytitle=marker.getTitle();
document.getElementById("loc_name").innerHTML=mytitle;
document.getElementById("start").innerHTML=posn;
// start=posn;
jel=1;
}
else
{
mytitle=marker.getTitle();
document.getElementById("loc_end").innerHTML=mytitle;
document.getElementById("end").innerHTML=posn;
//end=posn;
jel=0;
}
}
else
{
var title1=marker.getTitle();
myindex=title1.indexOf(" ")+1;
var ijt= Number(title1.slice(0,myindex))-1;
var description = content[ijt] ;
var contentString=description+'<font size= "1">Note if the icon
points to the center of a town, a road address is probably not in the
main database.</font>';
infowindow.setContent(contentString);
infowindow.open(map,marker);
}
});
return marker
};
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.