function handleErrors(){
alert("Status " + directions.getStatus().code);
};
GEvent.addListener(directions, "error", handleErrors);
25 mar 2009
function handleErrors(){
alert("Status " + directions.getStatus().code);
};
GEvent.addListener(directions, "error", handleErrors);
GEvent.addListener(map, "mousemove", function(point) {
if(point!=undefined) {
map.addOverlay(new GMarker(point));
}
});
GEvent.addListener(map, "MaskClick", function(point) {
alert('test');
});
function testMaskClick() {
GEvent.trigger(map, "MaskClick", 1);
}
<img id="maska_img" src="obrazek.jpg" onClick="testMaskClick()">