You can find the code here: http://great-loop.appspot.com/Great_Loop_Home. The code at issue is the GW.map class in gwxxx.js. This class is used to create each of the maps.
Can anyone provide any guidance concerning use of a single control instance on multiple maps or use of a single geo feature instance on multiple maps. On May 9, 1:58 pm, "[email protected]" <[email protected]> wrote: > On May 9, 9:52 am, puff <[email protected]> wrote: > > > I've a page with multiple (2) GMap2 objects. Each is in a full screen > > DIV. These DIVs are displayed ( display:block ) or hidden > > (display:none) in response to user interaction. When I create the > > maps with > > <snip> > > > as part of a Javascript class. The map DIV IS displayed briefly > > during map creation. > > > Firebug shows the following error: > > <snip> > > > If I create the maps WITHOUT the GOverviewMapControl all is well. > > > Several questions: > > > Is this a bug? > > Yes, probably in your code. > > > Is it driven by timing issues? > > Is there a workaround? > > Don't know as you haven't provided a link to your map as requested in > the posting > guidelines.http://groups.google.com/group/Google-Maps-API/web/suggested-posting-... > > -- Larry > > > > > In a related matter, can a single control instance be on MULTIPLE > > maps, ie. > > > var omc = new GOverviewMapControl( new GSize( 140, 140 )); > > map1.addControl( omc ); > > map2.addControl( omc ); > > > Likewise, can an instance of a geo feature (GMarker, GPolyLine, > > GPolygon) be on multipel maps, ie. > > > var line = new GPolyline( points, feature.color, > > feature.width, GW.POLY_OPACITY ); > > map1.addOverlay( line ); > > map2.addOverlay( line ); > > > Thanks for any help. > > Puff --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
