On May 11, 3:16 pm, Adiyya Tadikamalla <[email protected]> wrote: > map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds)) > > above line it reduces the zoom level. I need zoom level should be maximum > and all markeres within boundaries otherwise it should adjust zoom level so > that all markers should be in boundaries and maximum zoom level.
I don't understand. There are several ways of displaying markers. You can select markers according to certain criteria (doesn't matter what; just end up with a result set) and then make sure that the map is zoomed and centred so that they are all visible. That's what the above line does. Or you can select markers which only appear within the existing displayed map, so it doesn't have to change its centre and zoom. In this case you need to pass the bounds to your query in order that they can be used to limit the selection of markers. Is that what you want to do? Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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?hl=en -~----------~----~----~----~------~----~------~--~---
