On Jun 28, 6:28 am, doug <[email protected]> wrote:
> Hi,
> I'm just getting started on adding a Google map element to our
> website. Reading through all of the posts the perceived wisdom seems
> to be to write a PHP function to extract all of the marker info from a
> database table and build an XML file.

Not really a file, dynamically created xml on demand.

> To display the map the data can
> then read back in from the XML through a JS function.
>
> If the database gets updated should the XML file be recreated and
> users only see the pre-prepared XML? Or should I run the extract to
> create an session based XML file? Doing it this way makes it almost
> real-time and allows me to filter the data down to what's appropriate
> for the user.

That is the best way for xml.

>
> One of the systems I've seen runs the SQL and creates a JS module from
> it. It's really cumbersome but is this the best way?

I don't know what that means.  There have been a number of discussions
on this group regarding the efficiency of xml vs. json.  Is that what
you mean?  Or are you talking about creating a "page", which would
lose the ability to just refresh the map.

  -- Larry

>
> Your guidance would be most appreciated.
>
> Regards
> Doug

-- 
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