Re: The dreaded 'a is null' error.
On Jan 8, 5:13 pm, "petercbl...@gmail.com" <petercbl...@gmail.com>
wrote:
> Hi gmappers
>
> Thanks in advance to anyone who tries to help me. I truly appreciate
> having such an amazing resource such as this group!
>
> http://www.climateatlas.org/highlands.html
>
> I've basically ripped a bunch of code from examples, but I'm simply
> trying to get the streetview panorama to work. What am I doing wrong?
http://code.google.com/apis/maps/documentation/reference.html#GMap2.click
click(overlay:GOverlay, latlng:GLatLng, overlaylatlng:GLatLng)
you are pretending the first argument is a GLatLng, it is an overlay
(if you clicked on one) or null (if you didn't).
The second argument is a GLatLng (if you didn't click on an overlay)
or null (if you did).
The third argument should always be a GLatLng (but that doesn't seem
to always be true).
-- Larry
>
> What I'd really like to do is have a simple infowindow open any time a
> user clicks on the blue part of the map, and have the streetview
> inside the infowindow. Is that possible?
>
> Thanks,
>
> Peter
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home