prototype of moving a map