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