On Aug 29, 7:40 pm, ajax <[EMAIL PROTECTED]> wrote:

> Therefore  I  am  in  doubt  about  these   source code.
>   thanks.

So am I. In particular this line
       echo      <-----    this  echo   calls   a  javascript
function "GMaps.newmap"        "GMaps.newmap(".(array_sum($route-
>lats)/$n).",".(array_sum($route->lngs)/$n).",".$zoom."); \n";

should force an error because <--- doesn't mean anything in PHP. If
you're going to comment code, please do so in a syntactically correct
manner.

Actually, you're getting no output at all from this script, which
almost certainly means $n is zero; that means that
  $route->fromPoints($points);
isn't doing anything. Have you defined $points?

Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to