On Jan 1, 1:49 am, Lukas <[email protected]> wrote:
> I am trying to create a list linking to the according markers on the
> map.

You mean a sidebar like this?
http://www.geocodezip.com/v3_MW_example_map2.html

> Can anybody help?

Can you help us to help you? Read and follow the posting guidelines
(post a link to your map, not code):
http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e

  -- Larry

>
> // This function picks up the click and opens the corresponding info
> window
> function myclick(a) {
>   google.maps.event.trigger(markers[a], "click");alert(markers[a]);
>
> }
>
>     var i = 0;
>     for (var i = 0; i < markers.length; i++)
>     {
>         var m = markers[i];
>         // Keep track of the bounds.
>         if (n == null || n < m[1]) n = m[1];
>         if (e == null || e < m[0]) e = m[0];
>         if (s == null || s > m[1]) s = m[1];
>         if (w == null || w > m[0]) w = m[0];
>
>         // Create the marker object.
>         var point = new frame.google.maps.LatLng(m[0], m[1]);
>         frame.placeViewMarker(point, m[2]);
>
> //How can I attach an event listener at this point?
> //This does not work!
> side_bar_html += '<a href="javascript:myclick(' + (i) + ')">' +
> 'Hello' + '<\/a><br>';
>
>     }
>
>     document.getElementById("side_bar").innerHTML = side_bar_html;
>
>     frame.fluster.initialize();

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