In a for loop, I'm adding markers, and extending the bounds for each lat/lng. After the loop end, I use getBoundsZoomLevel() to get the zoom level, and feed that to setCenter to zoom the map. All is working, except that in one instance of my map component, getBoundsZoomLevel returns different zoom levels for the same bounds. The returned values are consistent within each instance. I'll post the data below.
Any suggestions will be appreciated. I am thinking I might have to calculate my zoom level manually, using the length of the bounds diagonal, but would rather solve the issue directly. Thanks in advance. Tracy Spratt Loop in component instance A: processing points: 4 new bounds: 42.27806 / -71.26722, 42.27806 / -71.26722 ..current zoom level: 17 new bounds: 42.27806 / -71.26722, 41.57306 / -71.63278 ..current zoom level: 9 new bounds: 42.53139 / -70.98667, 41.57306 / -71.63278 ..current zoom level: 8 new bounds: 42.53139 / -70.98667, 41.57306 / -71.63278 ..current zoom level: 8 Loop in component instance B: processing points: 4 new bounds: 42.27806 / -71.26722, 42.27806 / -71.26722 ..current zoom level: 17 new bounds: 42.27806 / -71.26722, 41.57306 / -71.63278 ..current zoom level: 10 new bounds: 42.53139 / -70.98667, 41.57306 / -71.63278 ..current zoom level: 9 new bounds: 42.53139 / -70.98667, 41.57306 / -71.63278 ..current zoom level: 9 -- 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.
