iOS中MapKit中的經緯度是如何理解的 財富值61?
var topLeftCoord = CLLocationCoordinate2D(latitude: -90, longitude: 180) var bottomRightCoord = CLLocationCoordinate2D(latitude: 90, longitude: -180)for annotation in annotations { topLeftCoord.latitude = max(topLeftCoord.latitude, annotation.coordinate.latitude) topLeftCoord.longitude = min(topLeftCoord.longitude, annotation.coordinate.longitude) bottomRightCoord.latitude = min(bottomRightCoord.latitude, annotation.coordinate.latitude) bottomRightCoord.longitude = max(bottomRightCoord.longitude, annotation.coordinate.longitude) }
請問一下我看到一段代碼,我的理解是topLeftCoord是指左上<愛尬聊_百科知識大全>角的坐標,bottomRightCoord是右下角的坐標,那么就在mapView中的一塊范圍顯示了所有的位置圖釘。latitude是指維度,longitude是指經度。我在百度地圖中 http://api.map.baidu.com/lbsa... 用鼠標獲取了一下。
var topLeftCoord = CLLocationCoordinate2D(latitude: -90, longitude: 180)是右下角
var bottomRightCoord = CLLocationCoordinate2D(latitude: 90, longitude: -180)是左上角
是反過來的,所以請問一下,我應該怎么理解經緯度的正負和方位呢???謝謝