Fix in order to center map in View and Edit mode

Fix a bug that the map does not center in the correct center - instead it centers in the original center from the datatype.