AI-generated Key Takeaways
-
GMSMarkerLayer
is a subclass ofGMSOverlayLayer
used for animating properties of aGMSMarker
. -
It allows animation of latitude, longitude, rotation, and opacity of the associated marker.
-
This layer is not directly rendered and relies on the OpenGL layer of
GMSMapView
. -
Adjustments or animations to default properties of
CALayer
will not affectGMSMarkerLayer
.
GMSMarkerLayer
@interface GMSMarkerLayer : GMSOverlayLayer
GMSMarkerLayer
is a subclass of GMSOverlayLayer
, available on a per-marker basis, that allows
animation of several properties of its associated GMSMarker
.
Note that this CALayer
is never actually rendered directly, as GMSMapView
is provided
entirely via an OpenGL layer. As such, adjustments or animations to ‘default’ properties of
CALayer
will not have any effect.
-
Latitude, part of
position
onGMSMarker
.Declaration
Swift
var latitude: CLLocationDegrees { get set }
Objective-C
@property (nonatomic) CLLocationDegrees latitude;
-
Longitude, part of
position
onGMSMarker
.Declaration
Swift
var longitude: CLLocationDegrees { get set }
Objective-C
@property (nonatomic) CLLocationDegrees longitude;
-
Rotation, as per
GMSMarker
.Declaration
Swift
var rotation: CLLocationDegrees { get set }
Objective-C
@property (nonatomic) CLLocationDegrees rotation;
-
Opacity, as per
GMSMarker
.Declaration
Swift
var opacity: Float { get set }
Objective-C
@property float opacity;