In the same spot on your page that reads the external KML/XML  file
you would replace it with a MySQL while loop. Study the correct html/
javascript syntax for three polyline points, I believe that two will
be the same - take one of those lines and code it within the loop,
replace the hard coded lat/lng data with php variables that change
with each loop. The third polyline point would remain outside the
loop, either at the beginning or end depending on where it stood in
the hard coded example.

You will have to play around with the loop until it works and study
the source code for mistakes, if the source code shows up. Sometimes
you can't view it if the code is totally screwed up.



On Apr 6, 3:37 pm, Dommer <[email protected]> wrote:
> Okay.
>
> First, thanks to Ralf and the rest of you guys for providing support!
> I've spent the past two weeks working off of the advice from the group
> here, and I'm ready to regroup.  I asked earlier if I would be able to
> store data in MySQL and then get it back somehow, with the intent to
> display it on maps.  Now, I'm able to do that.  However, I realized
> that the other advice I got, namely that I should be running the
> output into javascript rather than outputting a KML was sound.
>
> Here's an example of what I've been able to do:
>
> http://freeforthepicking.com/New/changedpamela8.php
>
> But, I'm not sure how to do that - I'm sure there are some tutorials
> out there, but I don't know exactly what to search for.
>
> What I am creating is a utility that will take user input from a
> search box and use that to alter the SQL query that is within the php
> script and then output the resulting polygons that match the search
> criteria and display them.  So far, everything I've done has been
> using KML to display things as overlays.
>
> So, first: given the scenario I've described is the past advice I got
> still sound: I'm going to be trying to feed the data into javascript
> rather than into KML (or XML like the example above).  I'll have to
> learn how to do that - but that's okay, I just want to make sure I'm
> still going in the right direction.
>
> Also, the reason I'm thinking I am going to do that is because the php
> script runs, but it just outputs a file, a static file.  I need
> something that will respond dynamically: I think that's why javascript
> was recommended.  I'm really hoping you all will be able to keep
> pointing me in the right direction!
>
> Thanks for reading!
>
> Dominic
--~--~---------~--~----~------------~-------~--~----~
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