GMSMarker
@interface GMSMarker : GMSOverlayA marker is an icon placed at a particular point on the map’s surface. A marker’s icon is drawn oriented against the device’s screen rather than the map’s surface; i.e., it will not necessarily change orientation due to map rotations, tilting, or zooming.
- 
                  
                  Marker position. Animated. DeclarationSwift var position: CLLocationCoordinate2D { get set }Objective-C @property (nonatomic) CLLocationCoordinate2D position;
- 
                  
                  Snippet text, shown beneath the title in the info window when selected. DeclarationSwift var snippet: String? { get set }Objective-C @property (nonatomic, copy, nullable) NSString *snippet;
- 
                  
                  Marker icon to render. If left nil, uses a default SDK place marker. Supports animated images, but each frame must be the same size or the behavior is undefined. Supports the use of alignmentRectInsets to specify a reduced tap area. This also redefines how anchors are specified. For an animated image the value for the animation is used, not the individual frames. DeclarationSwift var icon: UIImage? { get set }Objective-C @property (nonatomic, nullable) UIImage *icon;
- 
                  
                  Marker view to render. If left nil, falls back to the iconproperty instead.Supports animation of all animatable properties of UIView, exceptframeandcenter. Changing these properties or their correspondingCALayerversion, includingposition, is not supported.Note that the view behaves as if clipsToBoundsis set to YES, regardless of its actual value.DeclarationSwift var iconView: UIView? { get set }Objective-C @property (nonatomic, nullable) UIView *iconView;
- 
                  
                  Controls whether the icon for this marker should be redrawn every frame. Note that when this changes from NO to YES, the icon is guaranteed to be redrawn next frame. Defaults to YES. Has no effect if iconViewis nil.DeclarationSwift var tracksViewChanges: Bool { get set }Objective-C @property (nonatomic) BOOL tracksViewChanges;
- 
                  
                  Controls whether the info window for this marker should be redrawn every frame. Note that when this changes from NO to YES, the info window is guaranteed to be redrawn next frame. Defaults to NO. DeclarationSwift var tracksInfoWindowChanges: Bool { get set }Objective-C @property (nonatomic) BOOL tracksInfoWindowChanges;
- 
                  
                  The ground anchor specifies the point in the icon image that is anchored to the marker’s position on the Earth’s surface. This point is specified within the continuous space [0.0, 1.0] x [0.0, 1.0], where (0,0) is the top-left corner of the image, and (1,1) is the bottom-right corner. If the image has non-zero alignmentRectInsets, the top-left and bottom-right mentioned above refer to the inset section of the image. DeclarationSwift var groundAnchor: CGPoint { get set }Objective-C @property (nonatomic) CGPoint groundAnchor;
- 
                  
                  The info window anchor specifies the point in the icon image at which to anchor the info window, which will be displayed directly above this point. This point is specified within the same space as groundAnchor. DeclarationSwift var infoWindowAnchor: CGPoint { get set }Objective-C @property (nonatomic) CGPoint infoWindowAnchor;
- 
                  
                  Controls the animation used when this marker is placed on a GMSMapView(defaultkGMSMarkerAnimationNone, no animation).DeclarationSwift var appearAnimation: GMSMarkerAnimation { get set }Objective-C @property (nonatomic) GMSMarkerAnimation appearAnimation;
- 
                  
                  Controls whether this marker can be dragged interactively (default NO). DeclarationSwift var isDraggable: Bool { get set }Objective-C @property (nonatomic, getter=isDraggable) BOOL draggable;
- 
                  
                  Controls whether this marker should be flat against the Earth’s surface (YES) or a billboard facing the camera (NO, default). DeclarationSwift var isFlat: Bool { get set }Objective-C @property (nonatomic, getter=isFlat) BOOL flat;
- 
                  
                  Sets the rotation of the marker in degrees clockwise about the marker’s anchor point. The axis of rotation is perpendicular to the marker. A rotation of 0 corresponds to the default position of the marker. Animated. When the marker is flat on the map, the default position is north aligned and the rotation is such that the marker always remains flat on the map. When the marker is a billboard, the default position is pointing up and the rotation is such that the marker is always facing the camera. DeclarationSwift var rotation: CLLocationDegrees { get set }Objective-C @property (nonatomic) CLLocationDegrees rotation;
- 
                  
                  Sets the opacity of the marker, between 0 (completely transparent) and 1 (default) inclusive. DeclarationSwift var opacity: Float { get set }Objective-C @property (nonatomic) float opacity;
- 
                  
                  Provides the Core Animation layer for this GMSMarker.DeclarationSwift var layer: GMSMarkerLayer { get }Objective-C @property (nonatomic, readonly) GMSMarkerLayer *_Nonnull layer;
- 
                  
                  The panoramaViewspecifies which panorama view will attempt to show this marker. Note that if the marker’spositionis too far away from thepanoramaView‘s current panorama location, it will not be displayed as it will be too small.Can be set to nil to remove the marker from any current panorama view it is attached to. A marker can be shown on both a panorama and a map at the same time. DeclarationSwift weak var panoramaView: GMSPanoramaView? { get set }Objective-C @property (nonatomic, weak, nullable) GMSPanoramaView *panoramaView;
- 
                  
                  Convenience constructor for a default marker. DeclarationSwift convenience init(position: CLLocationCoordinate2D)Objective-C + (nonnull instancetype)markerWithPosition:(CLLocationCoordinate2D)position;
- 
                  
                  Creates a tinted version of the default marker image for use as an icon. DeclarationSwift class func markerImage(with color: UIColor?) -> UIImageObjective-C + (nonnull UIImage *)markerImageWithColor:(nullable UIColor *)color;