PointMarker
public class PointMarker : GeometricMarker, GenericPointIconMarker
Base class for point markers.
-
The coordinates that the marker should be placed at on the map.
Declaration
Swift
public var point: TGGeoPoint
-
The image that should be displayed on the marker. Updates the size of the marker to be the intrinsic size of the image.
Declaration
Swift
public var icon: UIImage?
-
Sets the size of a point marker. Does nothing when a polyline or polygon is set.
Declaration
Swift
public var size: CGSize
-
Animates the marker from its current coordinates to the ones given.
Declaration
Swift
public func setPointEased(_ coordinates: TGGeoPoint, seconds: Float, easeType ease: TGEaseType) -> Bool
Parameters
coordinates
Coordinates to animate the marker to
seconds
Duration in seconds of the animation.
ease
Easing to use for animation.
-
Default initializer.
Declaration
Swift
public required init()
-
Initializes a marker with a given size.
Declaration
Swift
public required init(size s: CGSize)
Parameters
s
The size the marker should be.