On Aug 27, 5:18 pm, Bossco <[email protected]> wrote: > Is there any way to know the bounds of the map before it is loaded? I > need to update a section on the page based on the map's bounds. What > I'm doing right now is waiting until the map is loaded, once the map > is loaded I'm calling a web method. > > Sometimes takes a while to update the section on the page. What I want > to do is to send the width and height of the div that contains the map > and send the center (latitude/longitude), and get back the bounds. I > want to do this on server side, so I don't have to wait until the map > is loaded in the client side and then go back to the server. > > Any ideas?
Calculate the bounds on the server (or at least estimate it), you will need the center coordinates, div size and zoom level. This has been discussed in the group before. Searching the group should find previous discussions. -- Larry > > Thanks -- 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.
