Hi, does someone have a function to adjust the zoomlevel, so that all markers are visible? getZoomLevelForBoundingBox seems only to be have the way... Do others need this, too? regards Hinnack
It sounds like you want autoCenterAndZoom(), which sets the bounds and zoom to show all markers and polylines on the map. You can see a basic example of it in action in the "adding a marker" item of the Mapstraction sandbox: http://mapstraction.appspot.com/#adding_a_marker --Adam On Wed, Apr 21, 2010 at 2:17 AM, Henrik Genssen <henrik.genssen at miadi.net>wrote:> Hi, > > does someone have a function to adjust the zoomlevel, so that all markers > are visible? > getZoomLevelForBoundingBox seems only to be have the way... > Do others need this, too? > > regards > > Hinnack > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100421/0dd37426/attachment.htm>
Thanks. Didi not know that. regards Hinnack>reply to message: >date: 21.04.2010 19:09:40 >from: "Adam DuVander" <mapstraction at duvander.com> >to: "Henrik Genssen" <henrik.genssen at miadi.net> >subject: Re: [Mapstraction] adjust zoom > >It sounds like you want autoCenterAndZoom(), which sets the bounds and zoom >to show all markers and polylines on the map. > >You can see a basic example of it in action in the "adding a marker" item of >the Mapstraction sandbox: >http://mapstraction.appspot.com/#adding_a_marker > >--Adam > > >On Wed, Apr 21, 2010 at 2:17 AM, Henrik Genssen <henrik.genssen at miadi.net>wrote: > >> Hi, >> >> does someone have a function to adjust the zoomlevel, so that all markers >> are visible? >> getZoomLevelForBoundingBox seems only to be have the way... >> Do others need this, too? >> >> regards >> >> Hinnack >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >