Lol btw. How do you trash the map after the pop up closes ? Coz
technically once it closes, it defines the map size again to be zero.
is there an unload function i can define ?

On Jul 30, 3:06 pm, ej <[email protected]> wrote:
> THAT IS JUST PURE GENIUS SUGGESTION !
> Seconds right after I read that, and voila! It works !
>
> Problem:
> Since the map loads before the modal gets a defined size, it renders
> size as zero.
> Solution thanks to Rossko and Alex:
> Here's what I did...
>
> <a href="#?w=500" rel="popup2" class="poplight"
> onClick="initialize()"><img src='images/location1.png'
> title='Location' alt='images/location2.png' /></a>
>
> I called the initilize() function when the pop up is clicked =]
>
> Thanks for the help guys!!
>
> On Jul 30, 2:39 pm, "Alex (Axle) Van Leyen" <[email protected]>
> wrote:
>
>
>
> > I encountered something like this a while back, where I had two
> > different maps on different tabs. I worked my way around this by
> > recreating the map when I opened the tab. When I left the tab, I just
> > crumpled it up and tossed it into the proverbial recycle bin.
>
> > This would be your best bet:
> > In the function that handles the event of opening the modal window,
> > create your map right there and then. Then you can either delete it
> > when you close the modal box, or leave it there and just reuse the map
> > if the user opens the map view again.
>
> > Hope that helps.
>
> > On Jul 30, 2:17 pm, ej <[email protected]> wrote:
>
> > > I included a copy of the script in stack.js that calls the pop up to
> > > appear/disappear in the source code of the html.
> > > This is holding me back so much on designing. And I dont have much
> > > options =[
>
> > > On Jul 29, 7:18 pm, Rossko <[email protected]> wrote:
>
> > > > > Im not a pro about this so I really dont know how to trigger that
> > > > > resize once div is loaded.
>
> > > > Neither do I.  What do you do to make the map visible, what code runs
> > > > then?  You need to call resize at that time.  Something to do with the
> > > > click listener in your stack.js code.
>
> > > > > Here's the part that loads the map:
>
> > > > Not much point looking at the map initializing code, that loads it
> > > > into the hidden div.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to