> What I don't understand is that in the example from econym (http://
> econym.org.uk/gmap/example_map2c.htm) the function myclick works
> without adding any reference to lastlinkid or linkid variables.

In the example, clicking on a sidebar entry calls myclick() which in
turn triggers a click on the marker.  The marker click listener is
thus triggered.  The marker click listener code is now run and opens
an infowindow, highlights the sidebar, and stores 'lastlinkid'.

In your code, clicking on a sidebar entry calls your version of myclick
().  For whatever reason, you've chosen to alter that so it does some
(but not all) of the needed actions itself, instead of just triggering
the marker click.

The example works ; yours doesn't ; just look at what is different.

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