GMSMapLayer 類別參考資料

GMSMapLayer 類別參考

總覽

GMSMapLayer 是 CALayer 的自訂子類別,由 GMSMapView 上的圖層類別提供。

這個資料層不應直接例項化。它會提供模型存取通常在上定義的相機GMSMapView

修改這些屬性或建立動畫效果通常會中斷目前的任何手勢GMSMapView,例如使用者的平移或旋轉。同樣地,如果使用者在動畫播放期間執行了已啟用的手勢,動畫會停止「定位」(在目前的顯示值中)。

繼承GMSCALayer

資源

CLLocationDegreescameraLatitude
CLLocationDegreescameraLongitude
CLLocationDirectioncameraBearing
float cameraZoomLevel
DoublecameraViewingAngle

(請注意,這些並非成員函式)。

NSString *constkGMSLayerCameraLatitudeKey
 kGMSLayerCameraLatitudeKey 範圍從 [-85, 85],高於這個範圍以外的值。
NSString *constkGMSLayerCameraLongitudeKey
 kGMSLayerCameraLongitudeKey 範圍從 [-180, 180) 開始,而超出這個範圍的值會包裝到這個範圍之內。
NSString *constkGMSLayerCameraBearingKey
 kGMSLayerCameraBearingKey 範圍從 [0, 360] 開始,而值會包裝。
NSString *constkGMSLayerCameraZoomLevelKey
 kGMSLayerCameraZoomLevelKey 範圍從 [kGMSMinZoomLevel, kGMSMaxZoomLevel] 範圍內,值被取值範圍限制。
NSString *constkGMSLayerCameraViewingAngleKey
 kGMSLayerCameraSeeAngleKey 範圍從零 (如朝垂直向下) 到介於 30 到 45 度之間,到地平線水平,視模型縮放等級而定。

- (NSString* 常數) kGMSLayerCameraLatitudeKey [related]

kGMSLayerCameraLatitudeKey 範圍從 [-85, 85],高於這個範圍以外的值。

- (NSString* const) kGMSLayerCameraLongitudeKey [related]

kGMSLayerCameraLongitudeKey 範圍從 [-180, 180) 開始,而超出這個範圍的值會包裝到這個範圍之內。

- (NSString* const) kGMSLayerCameraBearingKey [related]

kGMSLayerCameraBearingKey 範圍從 [0, 360] 開始,而值會包裝。

- (NSString* const) kGMSLayerCameraZoomLevelKey [related]

kGMSLayerCameraZoomLevelKey 範圍從 [kGMSMinZoomLevel, kGMSMaxZoomLevel] 範圍內,值被取值範圍限制。

- (NSString* const)kGMSLayerCameraViewingAngleKey [related]

kGMSLayerCameraSeeAngleKey 範圍從零 (如朝垂直向下) 到介於 30 到 45 度之間,到地平線水平,視模型縮放等級而定。


屬性說明文件

- (CLLocationDegrees) cameraLatitude [read, write, assign]
- (CLLocationDegrees) cameraLongitude [read, write, assign]
- (CLLocationDirection) cameraBearing [read, write, assign]
- (浮點值) cameraZoomLevel [read, write, assign]
- (雙倍精度) cameraViewingAngle [read, write, assign]