CloudMade/Leaflet — pull request #740 by danzel (2012-06-19 04:27:53+00:00)
Title: Animate markers when zooming

When zooming, animate all markers/overlays moving like the map!
This makes the awesome stretch zoom effect way more sexy.

Implemented for Marker, Popover, Path.SVG, Path.Canvas.
Plugins that mess with markers may need minor css updates (I've done a branch of @jacobtoye's Leaflet.iconlabel https://github.com/danzel/Leaflet.iconlabel)

Tested to work on latest: chrome, firefox, safari, opera.
Tested to not do anything different on IE9.

TouchZoom works 99%. There is sometimes an animation error when you release your finger when using SVGs (they slide one way and then slide back). I've been bashing my head against this all day with no progress, so help here is appreciated!
I'm pretty certain Map.TouchZoom._onTouchEnd calculates center wrong, or the maths in Path.SVG._animatePathZoom is incorrect for how ZoomAnimation does the zoom with the value passed here.

Check it out:
http://danzel.github.com/Leaflet/debug/vector/feature-group-bounds.html
http://danzel.github.com/Leaflet/debug/vector/vector-canvas.html