I would recommend you the following:
1. save the form data with the coordinates
2. create a file called getPoints.php
3. This file should return an XML like document, a KML containing the
data you want to show in the map (maker names, coordinates,
descriptions, etc)
4. Load your map as always and include the following:
var geoXml = new GGeoXml("getPonits.php");
map.addOverlay(geoXml);
This will add to the map all the markes loaded from the DB with the
corresponding description...
I would recommend you to use this pretty simple script I've made to
fetch data from the DB and display it as a KML in order to be loaded
then in the map...
Complete explanation: http://labs.reweb.com.ar/?p=37
On Aug 14, 7:06 pm, "T.N.T" <[email protected]> wrote:
> Hello everyone,
>
> I'm just looking for a few pointers really. I'm quite a "beginner"
> when it comes to coding, I have messed about in Vbscript, PHP and SQL.
> I'm looking to add the Google Maps API to my site. I'm not looking for
> anyone to do the work for me but if you could give me a few pointers
> it would be very much appreciated.
>
> What I am looking for is the following:
>
> 1) Visitor A visits my site and finds his location by dragging/zooming
> on the google map
> 2) There is a form to the side of the map with custom fields
> 3) Vistor A fills in the form and presses "Create Marker"
> 4) Marker A appears on the map
> 5) Visitor A Leaves
>
> 1) Visitor B visits my site and sees a world view (as visitor A) did
> however he can see visitors A marker
> 2) Clicking Visitor A's marker and sees the information he added on
> the form.
>
> Now the form is not really an issue. I'd probably have a backend SQL
> database to store the information with a PHP front end, my issue
> however is how to integrate this with google maps.
>
> Any suggestions or example code would be extremely welcome.
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---