Alright, things are moving on :)
> echo "var polyline = new GPolyline([";
Yup, good.
> echo "new GLatLng(' . $row["lat"] . ',' . $row["lng"] . ')]";
Ahh, problem. The quotes " want to pair up, so the echo will become
echo "new GLatLng(' . $row[" lat .............
The echo won't know what to do with lat
An alternative approach that's easier to read than multiple
quotemarks;
$polylat = $row["lat"] ;
$polylng = $row["lng"] ;
echo "new GLatLng( $polylat , $polylng) " ;
Now you can read it easily, and so can echo.
There's much more work to do there to get an array of GLatLng for your
polyline, so off you go and look up PHP arrays.
cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---