Hello everyone, Ok, I'm trying to get a project done using a GPS device that sends every X time a message with its current position. (That works perfectly) This message is uploaded to my hosting space as a .txt file which is read on my web page in orden to get the position and draw it on the map. (this also works fine) Now the problem is that I would like to mark the path or route that the device has made, ando so, I write each incoming message to another .txt file in order to keep a history. So I thought of writing an addLATLNG function using the polyline complex overlay. In order to read the history file line by line I use PHP and from there I call the addlatlan funcion each time a new line is read. The Initialize funtion and the adrlatlng funtion share two variables one is map and the pother one is poly so they are declared outside both functions. the thing is can't get the addlatlng function to use those varibales the error console keeps telling me that var poly is undefined. Plz I really need some help here. I hope I explained myself well. You can take a look at my web page here: http://tuum.es/JoseMaria/conphp.php Maybe some can tell me what i'm doing wrong.
-- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
