Send feedback
GMSMapLayer Class Reference
Stay organized with collections
Save and categorize content based on your preferences.
Overview
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).
Inherits GMSCALayer .
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.
kGMSLayerCameraLatitudeKey ranges from [-85, 85], and values outside this range will be clamped.
kGMSLayerCameraLongitudeKey ranges from [-180, 180), and values outside this range will be wrapped to within this range.
kGMSLayerCameraBearingKey ranges from [0, 360), and values are wrapped.
kGMSLayerCameraZoomLevelKey ranges from [kGMSMinZoomLevel, kGMSMaxZoomLevel], and values are clamped.
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.
Property Documentation
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-18 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."]]