請問GDIRECTION的問題

1 view
Skip to first unread message

wei

unread,
Nov 16, 2009, 2:46:38 PM11/16/09
to Google API 技術論壇
GEvent.addListener(directions, "error", handleErrors);

我將下面這個FUNCTION寫成右鍵選單的形式
function clickDirection() {

var lat = map.fromContainerPixelToLatLng(clickedPixel).lat
();
var lng = map.fromContainerPixelToLatLng(clickedPixel).lng
();
var latlngs = lat + "," + lng;
arrDir.push(latlngs);
document.getElementById("InsertLatLng").value = arrDir;
GEvent.addListener(directions, "addoverlay",
onGDirectionsAddOverlay);
directions.loadFromWaypoints(arrDir, { "avoidHighways":
true });
contextmenu.style.visibility = "hidden";
}

在我第一次點選單時都會出現這個錯誤
""The HTTP q parameter was either missing or had no value. For
geocoder requests, this means that an empty address was specified as
input. For directions requests, this means that no query was specified
in the input.
Error code: 601""
而且也不會有點出現
要等到第二次以後才有點出現

麻煩請幫幫忙@@
謝謝
Reply all
Reply to author
Forward
0 new messages