On Mar 12, 10:34 am, BuckyE <[email protected]> wrote: > Fantastic! The UrchinTracker is nifty. I never saw that before. > > Yes, you've fixed it. I've had to increase the delay to about 4000. > even that long sometimes isn't enough. Interesting.
I had a thought about doing this in a more reliable way. The straight hardcoded delay may not work depending on network latencies. What we really need is a function that tells us the polyline module is loaded and the isHidden function will work. It looks like the visibilitychanged event could be used to do this (run the makeSidebar function after the polyline module has loaded and isHidden works). You would probably want to create a function that runs once and updates the sidebar. It only needs to do it once, calling it multiple times would waste time and processing power. If I get time, I will try to put together an example. -- Larry > > I wonder if there's a way to test for the polys having been added? I > vaguely remember a repeated "try" routine in applescript. I'll search > here for test routines. and in the meantime, I can't thank you enough > for having identified the cause of the problem. Wonderful! > > On Mar 12, 5:04 am, "[email protected]" <[email protected]> > wrote: > > > > > On Mar 12, 1:39 am, "[email protected]" <[email protected]> > > wrote:> On Mar 11, 7:35 pm, BuckyE <[email protected]> wrote: > > > > > So, why the h*ll is my margutta category shown (instead of being > > > > hidden) when my map opens? I must be missing something really basic, > > > > but I can't see it. > > > > It looks like the .isHidden() value for the polylines and polygons is > > > returning false when the sidebar is being created. Sometime later the > > > visibility property of the polys is updated, but by that time, the > > > sidebar has already been > > > created.http://www.geocodezip.com/romanholidaymap_polysA.asp > > > This may be applicable:http://econym.org.uk/gmap/modularized.htm > > >http://www.geocodezip.com/romanholidaymap_polysB.asp > > (500 msec is a random guess, 1 didn't work) > > > -- Larry- 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 -~----------~----~----~----~------~----~------~--~---
