On Sep 17, 12:31 pm, Ralph <[email protected]> wrote:
> I'm trying to assign a "click" event listener to multiple markers, so
> that when I click on any of these markers the map is centered and
> zoomed around the selected marker. The following code seems alright,
> but leads to incorrect results. When I click on any marker the map
> zooms into the last one that was added (Marker 3).
>
> Does anyone know how I can solve this? Any help will be appreciated.

Sounds like pitfall #3 on this page of Mike Williams' (v2) tutorial:
The Basics - Part 1 Markers with info windows
http://econym.org.uk/gmap/basic1.htm


>
> Thanks,
> Ralph
>
> --- Code Starts Here ---

If you want me to look at your code, post a link to your map.

This map may help you:
http://www.geocodezip.com/v3_MW_example_map1.html
(my quick and dirty translation to v3)

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