This is work-in-progress, but... http://www.pinksy.co.uk/newsquare/index.php/tidysquare
The DIV on the right is resizeable, exposing more or less of the map underneath as you resize it. As you resize it, the map is panned left or right by the same amount, so that the center of the visible area is *still *the center of the visible area. Because the *actual *center of the map object is not necessarily the center of the *visible area*, I have added bespoke zoom buttons, which ideally need to zoom about the center of the *visible area* - and that's the LatLng I'm trying to work out. I've put a marker at the center of the visible area when the map is first loaded, but drag the map around a bit, and you'll see what I mean. I need to recalculate the LatLng of the center of the visible area when the zoom buttons are pressed. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/sKYYUeeckMYJ. 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.
