Auto Center and Zoom with YM4R
When I blogged last month about abstracting mapping with YM4R I commented: What I’ve not yet discovered (and may not be implemented) is a way to automatically center and zoom a map. It would be very nice to be able to add a batch of points to a map and have the plugin automatically work out their mid-point. Maybe I need to work on that a little… What I was missing was the center_zoom_on_bounds_init method. There are various ways to interact with it, but I’ve chosen: ...