Google Maps SDK not displaying properly in UIView?

前端 未结 3 633
南旧
南旧 2020-12-11 06:37

I\'m having some problems displaying google maps in Xcode 6.1

I managed to get the map to display in a section of my UIView, but it displays the world map instead of

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 07:13

    I am not sure what is wrong with the code above. It looks fine for me. But to move the camera to certain location. You can animate the camera there as well.

    var newLocation = CLLocationCoordinate2DMake(latitude, longitude)
    googleMapView.animateToLocation(newLocation)
    

    Hope that it works for you.

提交回复
热议问题