On Apr 20, 10:21 am, "[email protected]" <[email protected]>
wrote:
> Hi.
>
> Thanks for you rapid response.
>
> This question is more related to how the trigger of this part is
> executed automatically:
>
> /* ISSUE IS HERE */
>  GEvent.addListener(map, function(overlay, latlng) {
>           myPano.setLocationAndPOV(latlng);
>         });
>        }
>     }

What is that listener listening for? GEvent.addListener needs three
parameters: the clicked object, the event listened for, and a handler
function.

You will also need to handle a click on an overlay, because in that
case latlng will be null and the next line will fail.

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