map: add automatic panning