Here is my problem. I use the following script in my page, and I would
like to know why it gives me the error 620 and 500??
Is there a way to resolve this?? If yes,HOW.....
<script type="text/javascript">
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(0,0),0);
var i;
var directionsArray = new Array();
directionsArray=
["45.12333298,-71.81003571","45.20501328,-71.60503387","45.12333298,-71.81003571","45.39862442,-71.90108490","45.12333298,-71.81003571","45.28708267,-72.21862793","45.21336746,-72.50357819","45.11925888,-72.91896820","45.21336746,-72.50357819","45.28708267,-72.21862793","45.08687210,-73.37187958","45.11925888,-72.91896820","45.08687210,-73.37187958","45.32127762,-73.52708435","45.44355774,-72.28640747","45.28708267,-72.21862793","45.44355774,-72.28640747","45.73612976,-71.81040192","45.59844971,-70.91964722","46.09105682,-70.61600494","45.39862442,-71.90108490","45.28708267,-72.21862793","45.40189743,-71.25123596","45.59844971,-70.91964722"];
var segment = new Array();
for (i=0;i<=23;i=i+2){
//loop that draws the lines
j=i+1;
segment[i] = directionsArray[i];
segment[j] = directionsArray[j];
var dirn = new GDirections(map);
GEvent.addListener(dirn,"error", function() {
alert("GDirections Failed: "+dirn.getStatus().code);
});
dirn.loadFromWaypoints( segment );
delete(dirn);
}
}
</script>
--
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.