Hello everybody...
I'm working on the code below and I don't know how I can handle right
click on the marker...I'd like to show on the screen some directions
by right clicking on the marker...Is there any reserved word for right
click event like 'click' for left click event???
geocoder.getLatLng(
'<%=diefthinsi%>',
function(point) {
if (!point) {
alert('<%=diefthinsi%>' + " not found");
} else {
map.setCenter(point, 13);
var marker = new google.maps.Marker(point);
map.addOverlay(marker);
google.maps.Event.addListener(marker, 'click',
function(){...
});
google.maps.Event.addListener(marker,
'SingleRightClick', function(){
directions.load("from: " + address + " to: " +
'<%=diefthinsi%>'); //HERE
});
google.maps.Event.addListener(marker, 'mouseover',
function(){...
});
google.maps.Event.addListener(marker, 'mouseout',
function(){
marker.closeInfoWindow();
});
};
}
);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---