var bounds : LatLngBounds = directions.bounds; bounds.extend(someMarker.getLatLng()); //some more extend() here map.setZoom(map.getBoundsZoomLevel(bounds));
works as expected. However, it does (of course) not include the visual size of the marker. Which loads to the following (in some cases): http://twitpic.com/2xswpy It gets even worse, when I'm using my custom marker icons, which are even bigger then the default marker. So I'm looking for a way to include the (pixel) size of the markers in the calculation. An alternative would be to set a padding (in pixel) around the bounds, to ensure, that the marker are always fully visible. Thanks in advance -- 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.
