YESSS ! I SOLVED THE PROBLEM !

I was re-declaring the map variable in the readMap function again,
so the global variable couldn't work.

But it works now with a global variable !
@Rossko -> thank u very much for your help, it was the good
answer ! :o)

Cheers

Aurélie

On 12 avr, 12:10, Or3 <[email protected]> wrote:
> Hi All !
>
> I put a live url, because I'm really desperate with this bug :
>
> http://www.eficiens-serving.com/test/google.php?postcode=75017&county...
>
> The problem is in the infobox, when i'm clicking on the "streetview"
> picto (the little orange).
> I try to maximize the window by a "map.getInfoWindow().maximize()",
> line 202.
>
> I try with :
> <a href='javascript:"+map+".getInfoWindow().maximize()'> //// error,
> Erreur : missing ] after element list, getInfoWindow is not a function
> <a href='javascript:map.getInfoWindow().maximize()'> //// error, map
> is undefined
>
> an I try to put the map variable in global, outside the readMap
> function,
> but if I do that, the readMap doesn't work anymore (no map, markers,
> etc....)
>
> I know that's certainly a stupid thing, but I don't see what to do....
>
> Thank you very much for your help !
>
> Aurélie
>
> On 18 mar, 17:21, Rossko <[email protected]> wrote:
>
> > > The map variable is declare in a function call "readMap" with the
> > > "var" expression / all in the <script></script> of the <head> section.
>
> > Yes, it was local in scope to the readMap() function.  Nothing outside
> > the readMap() function could use the same 'map' variable.   The click
> > handler runs outside the readMap() function when it is clicked, so
> > 'map' was null inside teh click handler.
>
> > > I try to declare it global outside the function, but the problem is
> > > the same (seem to be worth because all the rest doesn't work anymore)
>
> > Then you've done that wrong.  Good luck with that, but if you still
> > want help now is the time to put your code somewhere and share a link
> > to it. .
>
>

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