Hi Bucca,
To spit the data back out in order to modify markers, just display the
markers and make them draggable.

See this code

// display the PHP generated markers/polygons
       var point = new GLatLng(67.859714, -75.681709);
        var marker = new GMarker(point, {icon:G_DEFAULT_ICON, draggable:
true});
        map.addOverlay(marker);
        marker.enableDragging();

        GEvent.addListener(marker, "drag", function(){
        var DragCoordinates=marker.getPoint().toUrlValue();
        var SplitCoordinates=DragCoordinates.split(",");
        document.getElementById("latitude").value=SplitCoordinates[0];
        document.getElementById("longitude").value=SplitCoordinates[1];
        });

In the HTML

Use this <input type="text" name="places_point_lat" id="latitude"
size="15" value="67.859714">,
<input type="text" name="places_point_long" id="longitude" size="15"
value=" -75.681709">

The values are placed into the code from server side. They change with
the event listener as the marker is dragged.

If you have multiple markers you will need to rename "marker" to
"marker_12345" where the 12345 is some sort of key. This allows the
listener to distinguish between the different markers.

Peace,
James Love
www.jameslove.com


On Sep 18, 10:20 am, Bucca B <[EMAIL PROTECTED]> wrote:
> I've used the tutorial "From Info Windows to a Database: Saving User-
> Added Form Data" to collect user data into my database... but now is
> there a way to spit it back out to the map when we need to edit the
> markers lat/lng or for that matter any of the user submitted data that
> is in the database?
>
> Thanks for the help.
>
> B
--~--~---------~--~----~------------~-------~--~----~
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