I ran into the same problem with a production product:
http://www.gomoos.org/gm/
Using v2.151 fixed the problem, thanks.
But a work around, involving extra bookeeping, works with v2 and v2.x.
Save your polygons and don't call addOverlay(poly) until needed.
Add an attribute to your polygons poly.added = false | true and check
this and call addOverlay(poly) or hide/show depending on the added
attribute
if(poly.added){
    poly.hide() / poly.show()
}
if(poly.added === false) {
   poly.added = true;
   map.addOverlay(poly);
}

Probaly more efficient as well.

Eric


On May 14, 1:18 pm, "[email protected]" <[email protected]>
wrote:
> On May 14, 8:45 am, Shweta Shakya <[email protected]> wrote:
>
> > i changed v=2 and it worked for few days. Now suddenly today when i load the
> > map even with v2 , the circles are loaded on the map automatically!
>
> > What version should i use now? And how would i know when to use what
> > version?
>
> v2 is currently v2.156c
>
> according to the issue referenced 
> above:http://code.google.com/p/gmaps-api-issues/issues/detail?id=1264
>
> v2.151 should work for you.
>
>   -- Larry
>
>
>
> > On Fri, May 1, 2009 at 6:12 PM, [email protected]
> > <[email protected]>wrote:
>
> > > On May 1, 4:10 pm, "[email protected]" <[email protected]>
> > > wrote:
> > > > On May 1, 2:34 pm, "[email protected]" <[email protected]>
> > > > wrote:
>
> > > > > On May 1, 2:29 pm, "[email protected]" <[email protected]>
> > > > > wrote:
> > > > > > On May 1, 1:52 pm, shsh <[email protected]> wrote:
>
> > > > > > > i am creating circles from xml and overlaying it on map and hiding
> > > it.
> > > > > > > The circles should be shown on map only when i click on a link
> > > called
> > > > > > > Wifi access on the map. It was working perfectly fine but now all
> > > of
> > > > > > > sudden the circle is displaying  on the map by default whenever i
> > > load
> > > > > > > the map. Why is circle.hide() function on working anymore 
> > > > > > > initially
> > > > > > > when i load the map ? Please help!
>
> > > > > > > here is the link to my map:
>
> > > > > > >http://secure10.olemiss.edu/cmap/try/map.jsp
>
> > > > > > You may want to review this thread:
> > >http://groups.google.com/group/Google-Maps-API/browse_frm/thread/7f8f...
>
> > > > > > Your problem seems like it might be related.
>
> > > > > It also seems to be a problem with 2.x.  Try using v=2 for your map...
> > > > > (if that fixes if, file an issue with the issue tracker)
>
> > > > Introduced in V2.156:
> > >http://www.geocodezip.com/overlappingPolygonsHide.asp?APIV=2.156
> > > > previous version V2.151 works:
> > >http://www.geocodezip.com/overlappingPolygonsHide.asp?APIV=2.151
>
> > > > Demonstrator:
> > > > v2.x (currently API v2.156c):
> > >http://www.geocodezip.com/overlappingPolygonsHide.asp?APIV=x
>
> > > > v2 (currently API v2.151e):
> > >http://www.geocodezip.com/overlappingPolygonsHide.asp
>
> > > Seems it has already been reported in the Issue Tracker:
> > >http://code.google.com/p/gmaps-api-issues/issues/detail?id=1264
>
> > >    -- Larry
>
> > > > > >  -- Larry- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- 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 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