Mike, Thanks, I have used your demos to construct what I currently have, and skipped over that somehow.
It seems like this would slow the map down. Assumed my understanding is correct, (hopefully I do) that the data will come from the database (mysql or the rumored oracle db)...then I build or echo that data to the xml (php) then it is displayed on the map via the downloadurl. I am curious about this php part. It doesn't appear to change much of my current code. I maybe totally off base here. Right now my biggest killer are the tiles loading (cant really do much about that) and the gdownloadurl. I am currently in the process of encoding them all to store them in the db table, but I am concerned about the speed/ loading. Having never used php or mysql, I am trying to plan out the process as best I can, before getting into trouble. :) Thanks Daniel On Jan 12, 11:55 pm, Mike Williams <[email protected]> wrote: > You can use PHP to write an XML file, but you could echo the XML data > directly to the default output channel. That means that you always get > the latest data, and also allows you to perform queries on the data > should you so desire. > > The Javascript on the client doesn't care whether it reads the XML data > from the server that you wrote in PHP or from a conventional file > server. > > I don't have mySQL on my webhost, but here's the source code of a PHP > script that echoes XML to its default output channel: > http://econym.org.uk/gmap/map11.php.txt > If you call the PHP script like > http://econym.org.uk/gmap/map11.php?q=a > Then you'll see XML the data that it outputs. > > I don't do mySQL, but you probably just have to > select * from thefile > and insert the values into the text to be echoed, like this: > while ($row = mysql_fetch_array($result)) { > echo '<marker lat=" .$row['lat']. '" lng=" .$row['lng']. " ... />'; > } > > The Javascript can read that with GDownloadUrl or GXmlHttp in exactly > the same way that it would read a static XML file. > http://econym.org.uk/gmap/example_map11a.htm > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
