Leaflet/Leaflet — pull request #1939 by jfirebaugh (2013-08-05 19:40:06+00:00)
Title: Support center-oriented scroll/double-click zoom

This is needed for [new share features](https://github.com/openstreetmap/openstreetmap-website/pull/351) on openstreetmap.org -- when the "Include marker" option is checked, the marker needs to be kept centered within the map, so zooming should temporarily be relative to the center, not to the current cursor location.

Some users have requested restoring the 0.5.x behavior for double-click zoom. We don't have plans to do that, but it might be nice for other Leaflet users to have the option.

I chose overloading a single configuration option rather than creating a new one because I anticipate we might want another mutually exclusive variant in the future -- zoom relative to an arbitrary LatLng. For example, Google Maps classic does this when you've clicked a POI.

It's also been requested to be able to