hey, i have been working on getting markers to bounce when hovering
over a
link to show where on the map.
now it all works well and the map pans to that specific marker that is
bouncing.
However when hovering over the next link the previous one doesn't
stop, which
mean you end up having potentially all your markers jumping.
This is the code i am using
<code>
function highlightMarker(index)
{
for (i=0; i<markers.length; i++)
{
if (i == index)
{
markers[i].setZIndex(10);
map.panTo(markers[i].getPosition());
markers[i].setAnimation(google.maps.Animation.BOUNCE);
markers[i].setIcon('markers/information1.png');
}
</code>
So do i need to set a unique ID for each marker, and if so how
how is that done.
If any one good give me some pointers that can be implemented into the
above code
i would be grateful.
Cheers!
-- Morty
--
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.