You are mixing up 3.x and 4.x syntax. Remember that in 4.x, a map doesn't have an extent (see Maps and Views in the documentation). Instead, you want to get the extent of the MapView. And the extent doesn't have a getCenter method. It has a center property, resulting in a Point that has a latitude and longitude property.