Hey guys,

So I worked at this for a while and figured out that the problem seems
to be the fact that I am also adding in the google earth plugin as
well. So if I load the google earth control with a map, remove the map
canvas and then recreate another map i get a javascript error when
single clicking (even if i didn't actually click on the google earth
button). When I don't load the google earth control with the google
map then I don't get this error. Does this ring a bell with anyone?
Thanks!!!

On May 21, 2:36 pm, hobeau <[email protected]> wrote:
> Thanks for the reply Andrew, I'll give that a shot!. Sorry Rossoko,
> the application is not public yet so I don't have any links to post.
>
> On May 21, 9:41 am, Andrew Leach <[email protected]>
> wrote:
>
>
>
> > On May 21, 2:22 pm, Rossko <[email protected]> wrote:
>
> > > How?
>
> > We can make a reasoned guess...
>
> > When you "destroy the map" by calling GUnload, you actually completely
> > remove all references to the API and its objects. So having done that
> > you cannot then attempt to create or use an API object again.
>
> > You should not be dynamically destroying and re-creating a map; even
> > without GUnload that's a recipe for massive memory leakage. You should
> > re-centre/zoom/re-populate an existing map, calling checkResize() if
> > you resize it as well.
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-maps-api?hl=en.
>
> --
> 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 
> athttp://groups.google.com/group/google-maps-api?hl=en.

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