Hey IanW- I'm guessing the problem is actually with myNewImage - you need to send a unique display object into each GroundOverlay. This is because our API doesn't have permission to duplicate your display object. Not sure how myNewImage is being setup, but change it so that it's a new object each time (e.g. new MyImage()).
- pamela On Sat, Feb 21, 2009 at 5:42 AM, IanW <[email protected]> wrote: > > I should add, that I'm looping to produce these, i.e. > > for (1 - 100) > { > var myGroundOverlay : GroundOverlay = new GroundOverlay(myNewImage, > new LatLngBounds(new LatLng(lat1, lng1), new LatLng(lat2, lng2))); > map.addOverlay(myGroundOverlay ); > } > > Is it possible that the map is only displaying the last overlay named > "myGroundOverlay" ? I.e. all other 99 groundOverlays are replaced by > the last one. This of course doesn't affect Marker as you can add as > many of those as you like. > > I could add 100 uniquely named groundOverlays, but I don't know how to > do that in code ?? e.g. > > for (1-100) > { > var myGroundOverlay[loopCount] : ......... > } > > Really stuck here. Help :-) > > Cheers > > Ian > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" 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-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
