Hi Pamela and Meena,
I face the same problem. I apply a map.panTo function to move the map,
and the bounds_changes event is fired. However, when I want this event
to draw a marker at map.getCenter, it just does not do anything. When
I use map.setCenter instead of panTo, it works fine.
Some piece of code below:
google.maps.event.addListener(map, 'bounds_changed',
function() {
// newCenter = map.getCenter();
if (overlay) {
removeOverlay();
};
alert(map.getBounds());
overlay = new CustomMarker(map.getCenter(), map);
});
How may I capture the end of panning?
Ádám
On szept. 3, 16:52, "pamela (Google Employee)" <
pamela...@gmail.com>
wrote: