added and implemented setMapCenter to take array with xy to recenter map, code cleanup