On 20 Apr, 22:25, Esa <[email protected]> wrote:
> You did not even try a draggable marker.
>
> http://code.google.com/apis/maps/documentation/reference.html#GMarker

Thank you both for your directions and help!

Ok, I'm new to this world... this is the code from the code-
playground. How should I incorporate that? Should I put it in the
function place?

I appriciate any advice! :-)

/Nimrod

Draggable marker:
---
    var map = new GMap2(document.getElementById("map_canvas"));
    var center = new GLatLng(37.4419, -122.1419);
    map.setCenter(center, 13);
var marker = new GMarker(center, {draggable: true});

    GEvent.addListener(marker, "dragstart", function() {
      map.closeInfoWindow();
    });

    GEvent.addListener(marker, "dragend", function() {
      marker.openInfoWindowHtml("Just bouncing along...");
    });

    map.addOverlay(marker);
----

      function place(lat,lng) {
        var point = new GLatLng(lat,lng);
        map.setCenter(point,14);
        map.addOverlay(new GMarker(point));
        document.getElementById("message").innerHTML = "";
      }

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