added code to show and center the map