Thanks all. An alert in the event handler function indicates if the handler function is called. It is never called when the example runs from a file url, so either the event is not added successfully, or the event when it happens never results in a call to the handler.
Nianwei's flash security sandbox explanation sounds very plausible. But isn't the flash running as an online version, just embedded in the local file? And it works partially - you can move it and change its POV. Maybe the flash does some page status check, related only to the events, which hits a security limitation. The CSS warnings relate to the Google css, http://code.google.com/css/codesite.pack.04102009.css, that I used to get a Google Maps API help file look to the page. I can't fix them, but I'm sure that the css is not affecting my example. On Aug 18, 6:55 pm, Bart Van der Donck <[email protected]> wrote: > Neale Morison wrote: > > In the online version, clicking on the street view panorama arrows > > moves the panorama and the little streetview man on the map. > > In the offline local file version, clicking on the street view > > panorama has no effect on the map streetview man. > >http://www.nealemorison.com/googlemapsapi/myhouse2c.html > > I cannot see a solution, but maybe the following can help to narrow > down the problem a bit. > > Line 123, add "alert('test');", this is not shown; this leads me to > believe that the event was not successfully added to the object > already from the beginning. I would at first sight suspect a 'typical' > javascript local/web URI issue (forward slash versus backslash, case > sensitive, abs/rel path...). > > P.S. I would also advice the following (probably not related to this > problem): > - use // or /* */ for javascript comments, not <!-- --> > - you have many CSS warnings, checkhttp://jigsaw.w3.org/css-validator/ > > For what it's worth > > -- > Bart --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
