map moving and updating the map dynamically