> Googles method: SQL query > XML > Markers (each step requires a loop) > > Simple method: SQL query > Markers (one less loop and no XML)
If the user then goes on to search around another location, the AJAX method can be used to fetch and display new data without reloading the page. The webpage itself can be cached, even though the data may change or different sets of data may be fetched. While the 'simple' method is simple i.e. its not an interactive page. Sometimes that's fine, depends on your use. Problems are likely to arise as complexity increases e.g. it would be difficult to use this approach to allow a user to enter an address, that is geocoded, then used for dbase searching, then results to be plotted. Bear in mind the examples are just that, examples. They are not finished applications, you are not required to "do it this way". -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
