Sorry about my last post, the link you guys gave me also centered the map. I went to the code to try this, and tested this with 2 static points and worked great. Thanks alot guys!
On 23 ene, 23:18, Matias Sanchez <[email protected]> wrote: > Thanks to both, this would help me alot! > > Although I still have the issue of where to center the map. I'm think > on finding coords in the different regions that might be central for > the diferent markers, but they would be static. A dinamic method like > the zoom one would be great! I'll search that web to see if I can find > a solution, but some ideas would work great. > > Thanks again! > > On 23 ene, 22:32, "[email protected]" <[email protected]> wrote: > > > On Jan 23, 4:43 pm, Matias Sanchez <[email protected]> wrote: > > > > Hello all! > > > > Im building a site where some markers are loaded depending on the > > > selected region by the user in a ListBox. All the markers are coords > > > are loaded from a database depending if they fit the selected > > > parameters. I've been searching for a way to center the map and set a > > > good zoom level so that all the markers fit the map. > > > > Those anyone know a way to use the setCenter method to fit all the > > > markers? or is it a way to do this in a diferent way? > > > > Any help is deeply appreciated! > > > Mike Williams' tutorial includes this page: > > Part 14 Fitting the map zoom to the > > datahttp://econym.org.uk/gmap/basic14.htm > > > -- Larry > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
