On Jun 30, 8:23 pm, Landitus <[email protected]> wrote:
> Hi, I have a map with multiple markers and would like to have an event
> listener that would center the map when you click on a marker. I have
> the basic code, which follows:

Did you read the posting guidelines?
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e

>           map.panTo(marker.LatLng);

Where is the .LatLng property or a marker defined?

> But panTo is not working. Can anybody help??

What is the value of "marker" at that point in your code?

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to