Construct a LatLngBounds http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds
then call extend for each marker you want in the display port. Finally, call fitBounds on your map http://code.google.com/apis/maps/documentation/javascript/reference.html#Map Cheers Chris On Mon, Dec 6, 2010 at 9:02 AM, Blanaru Irina <[email protected]> wrote: > Hello everybody, > I have a question. > How can I autoextend my map in order to see all the selected markers by > their category (type). If I select a type from a checkbox, for instance, the > map should extand and the user can see all that markers, from that category. > I hope I made myself understood. > > Thank you!! > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
