This is the code i'm talking about :
"<a href='javascript:map.getInfoWindow().maximize()'><img src='images/
streetview.png' valign='middle' alt='StreetView'
title='StreetView'border='0'></a>"
It's a link in the infobox of each marker who maximize the content to
let see the streetview.
But the "map" seem to be "undefined" ; I don't understand because I
declare it before :
"var map = new GMap2(document.getElementById("map"), {mapTypes:
[G_NORMAL_MAP,G_PHYSICAL_MAP,G_SATELLITE_MAP]});"
???
Thanks a lot
Aurélie
On 18 mar, 11:52, Rossko <[email protected]> wrote:
> > But when i press on the img, i get a "map undefined"....really don't
> > understand why...
>
> That would be the thing to understand then.
> In what scope is your variable 'map' defined? In what scope is the
> click handler running?http://econym.org.uk/gmap/scope.htm
--
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.