added map panning function