wei
unread,Nov 16, 2009, 2:46:38 PM11/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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""
而且也不會有點出現
要等到第二次以後才有點出現
麻煩請幫幫忙@@
謝謝