Add note on return value of getDistance.
Add panzoomend event and onEnd option