Hi guys, I'm trying to catch dragstart, drag and dragend event of map,
but I don't know why it doesn't work. But if I change the eventname
from 'dragstart' to 'click' or other events it works. Is anything
different of drag events or I made some mistakes here?

var map;
function initialize() {
  var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
  var myOptions = {
    zoom: 4,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);

  google.maps.event.addListener(map, 'dragstart', function(event) {
   test(event.latLng);
  });
}

function test(location) {

var op = {zoom:10};
          map.setOptions(op);
  map.setCenter(location);
}

Thank you for your time!

Gordon

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