iOS中MapKit中的經(jīng)緯度是如何理解的 財(cái)富值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) }
請(qǐng)問(wèn)一下我看到一段代碼,我的理解是topLeftCoord是指左上<愛(ài)尬聊_百科知識(shí)大全>角的坐標(biāo),bottomRightCoord是右下角的坐標(biāo),那么就在mapView中的一塊范圍顯示了所有的位置圖釘。latitude是指維度,longitude是指經(jīng)度。我在百度地圖中 http://api.map.baidu.com/lbsa... 用鼠標(biāo)獲取了一下。
var topLeftCoord = CLLocationCoordinate2D(latitude: -90, longitude: 180)是右下角
var bottomRightCoord = CLLocationCoordinate2D(latitude: 90, longitude: -180)是左上角
是反過(guò)來(lái)的,所以請(qǐng)問(wèn)一下,我應(yīng)該怎么理解經(jīng)緯度的正負(fù)和方位呢???謝謝