GMSMapLayer is a custom subclass of CALayer, provided as the layer class on GMSMapView.
This layer should not be instantiated directly. It provides model access to the camera normally defined on GMSMapView.
Modifying or animating these properties will typically interrupt any current gesture on GMSMapView, e.g., a user's pan or rotation. Similarly, if a user performs an enabled gesture during an animation, the animation will stop 'in-place' (at the current presentation value).
Properties |
CLLocationDegrees | cameraLatitude |
CLLocationDegrees | cameraLongitude |
CLLocationDirection | cameraBearing |
float | cameraZoomLevel |
double | cameraViewingAngle |
|
(Note that these are not member functions.)
|
NSString *const | kGMSLayerCameraLatitudeKey |
| kGMSLayerCameraLatitudeKey ranges from [-85, 85], and values outside this range will be clamped.
|
NSString *const | kGMSLayerCameraLongitudeKey |
| kGMSLayerCameraLongitudeKey ranges from [-180, 180), and values outside this range will be wrapped to within this range.
|
NSString *const | kGMSLayerCameraBearingKey |
| kGMSLayerCameraBearingKey ranges from [0, 360), and values are wrapped.
|
NSString *const | kGMSLayerCameraZoomLevelKey |
| kGMSLayerCameraZoomLevelKey ranges from [kGMSMinZoomLevel, kGMSMaxZoomLevel], and values are clamped.
|
NSString *const | kGMSLayerCameraViewingAngleKey |
| kGMSLayerCameraViewingAngleKey ranges from zero (i.e., facing straight down) and to between 30 and 45 degrees towards the horizon, depending on the model zoom level.
|