MarkerOptions
public struct MarkerOptions : AnnotationOptions, Equatable
A type that represents marker options.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates an instance of MarkerOptions with a coordinate.
Declaration
Swift
public init(coordinate: CLLocationCoordinate2D)
Parameters
coordinate
The coordinate for the marker.
-
Creates an instance of MarkerOptions with a coordinate, and a pin image.
Declaration
Swift
public init(coordinate: CLLocationCoordinate2D, pinImage: UIImage)
Parameters
coordinate
The coordinate for the marker.
pinImage
The image used for the marker pin.
-
Creates an instance of MarkerOptions with a coordinate, and a pin image.
Declaration
Swift
public init(coordinate: CLLocationCoordinate2D, pinImageURI: String)
Parameters
coordinate
The coordinate for the marker.
pinImageURI
The pin URI used for the marker pin image.
-
Coordinate of the marker.
Declaration
Swift
public let coordinate: CLLocationCoordinate2D
-
Image used for the marker pin.
Declaration
Swift
public var pinImage: UIImage?
-
Decides if the marker is selectable. Default value is
true
. Indicates if given marker can produce delegate call onTomTomMapDelegate
func tomTomMap(_ map: TomTomMap, didTapOnMarker marker: Annotation, onCoordinate coordinate: CLLocationCoordinate2D)
Declaration
Swift
public var isSelectable: Bool
-
Icon image for the marker.
Declaration
Swift
public var iconImage: UIImage?
-
Sets the pin URI. To make it work, you also need
COMPRESS_PNG_FILES
andSTRIP_PNG_TEXT
set toNO
in Xcode build settings.Declaration
Swift
public var pinImageURI: String?
-
Sets the icon URI. If both iconImage and iconImageURI are provided, iconImage will be ignored. To make it work, you also need
COMPRESS_PNG_FILES
andSTRIP_PNG_TEXT
set toNO
in Xcode build settings.Declaration
Swift
public var iconImageURI: String?