Hi

I'm trying to add a marker and then if for example the user wanted to
move it they could drag it and drop it to another location...I can
drop the marker of but I can't carry the variable name through when I
want to drop it in the new location... The live version of the code is
available at www.newlaunches.co.uk/Walks/newwalk1.php

function mapLoad() {


    if (GBrowserIsCompatible()) {
       

var map = new GMap2(document.getElementById("map"));

var center = new GLatLng(37.4419, -122.1419);

map.setCenter(center, 13);


var marker = new GMarker(center, {draggable: true});


GEvent.addListener(map, "click", function(overlay, point) {

    map.addOverlay(new GMarker(point, {draggable: true}));

    // document.getElementById("Hotel_geoLocation").value=point.y+",
"+point.x;

    var geoposition = point.y + "," + point.x;

    ajaxpack.getAjaxRequest('pushWalkPoint.php',"geo=" + geoposition +
"&wID=624763487",processGetPost,'txt');



    });



GEvent.addListener(marker, "dragend", function() {

  alert("Run update script");

  });



}

{

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