Getting the longitude and latitude of the center of the  map working