On Mar 2, 1:14 pm, "Ani..." <[email protected]> wrote: > *thanks larry for the page.. but i am still getting error in this.. could > you pls see if i added the script correctly ? > *http://www.idxsync.com/sbaor/... i uncommented the cde so that > you can see the error..
The error I get is 'ovmap' is undefined. That is because the ovmap variable is local to your onLoad function. The setTimeout call is executed in the global context after the onLoad event has finished executing and the ovmap local variable has been destroyed. See this page from Mike Williams' tutorial: Javascript Concepts Part 1 Scope http://econym.org.uk/gmap/scope.htm to make it global: 1. declare it with your other global variables (outside any function definition) 2. remove the "var" from var ovmap = mini.getOverviewMap(); -- Larry > > thanks > > On Wed, Mar 3, 2010 at 12:49 AM, [email protected] > <[email protected]>wrote: > > > > > > > On Mar 2, 9:55 am, "Ani..." <[email protected]> wrote: > > > *i need to minimize the overview map on load time.. i added the script > > too.. > > > but i get some error message > > > > uncaught exception: [Exception... "Component returned failure code: > > > 0x80004003 (NS_ERROR_INVALID_POINTER)" nsresult: "0x80004003 > > > (NS_ERROR_INVALID_POINTER)" location: "JS frame :: > >http://www.idxsync.com/sbaor/::onLoad :: line 148" data: no] .. > > > > can anyone guess what it could be ? > > > Why guess. You gave us access to your map. > > > Have you seen this page from Mike Williams' tutorial: > > Part 13 Using GOverviewMapControl() > >http://econym.org.uk/gmap/basic13.htm > > > In particular this part at the bottom: > > ======================================== > > Restrictions > > > Many GMap2 methods can't be used on the overview until the > > GOverviewMapControl has completed its initialisation. If you try to > > perform them in the same "time slice" as the GOverviewMapControl was > > created, you'll get an error. The calls can be deferred, like this > > setTimeout("ovmap.setMapType(G_SATELLITE_MAP);",1);. > > ======================================== > > > -- Larry > > > > * > > > url :http://www.idxsync.com/sbaor/ > > > > Now i have commented the code .. > > > > -- > > > `•.¸¸.•´ With Luv > > > `•.¸.•´ Anitha > > > > ----------------------------------------------------------------- > > > -- > > 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]<google-maps-api%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-api?hl=en. > > -- > `•.¸¸.•´ With Luv > `•.¸.•´ Anitha > > ------------------------------------------------------------------ Hide > quoted text - > > - Show quoted text - -- 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.
