Thanks for your answer Andrew.

I'm using PHP to get the data from the MySql and display the data.

I totally understand your first method with javascript data, but I
don't really get how I can use the same query with the GDownloadUrl()
function. I've checked out the function and it needs an external file.
So basicly you would come to a solution which I described earlier in
this thread (creating an physical XML file with a random hash as
filename to make it unique). Is that correct?

I'm leaning more to use the XML solution because in my view it's more
clean than dropping all the javascript code for markers (+ info and
icon).

Thanks,


Marc

On Aug 24, 10:02 pm, Andrew Leach <[email protected]>
wrote:
> On Aug 24, 8:42 pm, Marc <[email protected]> wrote:
>
> > I'm performing a search query to display the POI on a normal HTML +
> > CSS page.
>
> So: you're already retrieving the data to build what is effectively a
> static page. Presumably that's done with a PHP (or other server-side)
> script getting the data from your database and then you loop through
> the result set and output the values in the HTML.
>
> Just do the same with your Javascript data. Re-use your result set and
> write the data out in the <script> portion of the page.
>
> A more usual method would be to use something like GDownloadUrl() and
> get all the data from the server at once and process it client-side,
> adding the points to the map and populating a sidebar.
>
> Both methods only involve one database query and one transfer of data
> from the server to the client (in a static page in the first method;
> as an XML file for example in the second). The principal difference is
> that the second, dynamic, method is less friendly to screen-reading
> software and generally produces a less accessible site.
>
> 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