added parameter to move map position when drawing