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, "MaskClick", function(point) {
alert('test');
});
function testMaskClick() {
GEvent.trigger(map, "MaskClick", 1);
}
<img id="maska_img" src="obrazek.jpg" onClick="testMaskClick()">
GEvent.addListener(map, "click", function(overlay, point) {
window.location.replace("/strona_emiejsca.html?show=mapa");
});