Quick fix for #4. Redraw vector layer even when panning.
Tiny improvements in formatting and commenting.