Hey, thanks for the reply.

I do that, but it still pans to the last country in the list
(france).

I've also tried adding the line

listItemLink.id = point;

and changing the line in question to:

listItemLink.onmouseover = function(){map.panTo(this.id)};

but in firebug I get the error "a.lng is not a function".

Thanks,
Tom

On Nov 3, 10:55 am, Esa <[EMAIL PROTECTED]> wrote:
> map.panTo(point);
>
> is now outside the for-loop that gives the value for 'point'. Therefor
> it will always uses the last value of point.
>
> Try inside the loop:
>
> listItemLink.onmouseover = function(){map.panTo(point)};
--~--~---------~--~----~------------~-------~--~----~
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