Hi Guys,

I have a two simple problems, but unfortunantly I'm not having any
success to resolve that.

I create the map listener below, trying to get all map click events,
but I only get the click on the map, not on the buttons "zoom in" (+)
and "zoom out" (-) of map control.

I need to create a listener to center map on the marker position,
every time someone click on those buttons. Anybody knows how to do
that ?

And the other problem is how to center the map on marker position,
when using mouse wheel ?

My map has only one marker and the user can use only this marker.

            GEvent.addListener(map, "click", function(overlay, point)
{
                if ((overlay) && (numDrags > 1)) {
                    map.removeOverlay(overlay);
                }
                else if (point) {
                    var marker = createMarker(point);
                    map.panTo(point);
                    map.clearOverlays();
                    map.closeInfoWindow();
                    map.addOverlay(marker);
                }
            });

Thanks,
Marcelo.

--

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