TomTomMap
public class TomTomMap : AnnotationsActions, RouteActions, MapActions
extension TomTomMap: CameraActions
extension TomTomMap: RenderedFeatureActions
extension TomTomMap: VehicleActions, LocationActions
extension TomTomMap: DiagnosticActions
extension TomTomMap: MapMetricsMonitorService
TomTomMap aggregates core map functionalities
-
The object that acts as the delegate of the
TomTomMap
.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public weak var delegate: MapDelegate?
-
The object that acts as the data source of the
TomTomMap
.Declaration
Swift
public weak var dataSource: MapDataSource?
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var language: Locale { get set }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var styleMode: StyleMode { get set }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var layers: [Layer] { get }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var disabledGestures: [MapGestureDisableOption] { get set }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var styleContainer: StyleContainer { get set }
-
Declaration
Swift
public var allRoutes: [Route] { get }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var isMarkersFadingEnabled: Bool { get set }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var isMarkersShrinkingEnabled: Bool { get set }
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func setExclusiveGestures(gesture: GestureType, blockedGestures: [GestureType])
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func addMarker(options: MarkerOptions) throws -> Marker
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func addLine(options: LineOptions) throws -> Line
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func addPolygon(options: PolygonOptions) throws -> Polygon
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func addPolygonOverlay(options: PolygonOverlayOptions) throws -> PolygonOverlay
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func remove(annotation: Annotation)
-
Declaration
Swift
public func addRoute(_ options: RouteOptions) throws -> Route
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func removeAnnotations(tag: String)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func zoomToMarkers(marginPx: UInt, tag: String)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func zoomToMarkers(tag: String)
-
Declaration
Swift
public func removeRoutes()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func addCircle(options: CircleOptions) throws -> Circle
-
Declaration
Swift
public func removeRoute(_ route: Route)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func removeAnnotations()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func zoomToMarkers()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func zoomToMarkers(marginPx: UInt)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func setMarkerDistanceFadingRange(range: ClosedRange<Measurement<UnitLength>>)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func setMarkerDistanceShrinkingRange(range: ClosedRange<Measurement<UnitLength>>)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func coordinateForPoint(point: CGPoint) -> CLLocationCoordinate2D?
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func pointForCoordinate(coordinate: CLLocationCoordinate2D) -> CGPoint?
-
Declaration
Swift
public func bringToFront(route: Route)
-
Declaration
Swift
public func zoomToRoutes(padding: UInt)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func select(annotation: Annotation)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func deselect(annotation: Annotation)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func snapshot() -> UIImage
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func snapshotWithoutViews(views: [UIView]) -> UIImage
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func layersForRegexp(pattern: NSRegularExpression) -> [Layer]
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func showTraffic()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func hideTraffic()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func showTrafficIncidents()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func hideTrafficIncidents()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func registerTrafficIncidentObserver(_ observer: TrafficIncidentObserver)
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func showHillshading()
-
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func hideHillshading()
-
Returns visible region of the map.
Declaration
Swift
public var visibleRegion: VisibleRegion { get }
-
Returns current camera properties.
Declaration
Swift
public var cameraProperties: CameraProperties { get }
-
Declaration
Swift
public var cameraTrackingMode: CameraTrackingMode { get set }
-
Declaration
Swift
public func applyCamera( _ update: CameraUpdate, animationDuration: TimeInterval, completion: ((Bool) -> ())? )
-
Declaration
Swift
public func moveCamera(_ update: CameraUpdate)
-
Declaration
Swift
public func stopAnimation()
-
Declaration
Swift
@available(*, deprecated, message: "This is an experimental API. It may be changed or removed at any time without notice. Use of this API is strongly discouraged.") public func updateCameraTrackingMode(mode: CameraTrackingMode, config: FollowCameraOperatorConfig)
-
Declaration
Swift
public func mapFeatures(coordinate: CLLocationCoordinate2D) -> [RenderedFeature]
-
Declaration
Swift
public func mapFeatures(coordinate: CLLocationCoordinate2D, options: RenderedFeatureQueryOptions) -> [RenderedFeature]
-
Declaration
Swift
public func mapFeatures(coordinateBounds: CoordinateBounds) -> [RenderedFeature]
-
Declaration
Swift
public func mapFeatures(coordinateBounds: CoordinateBounds, options: RenderedFeatureQueryOptions) -> [RenderedFeature]
-
Declaration
Swift
public var locationProvider: LocationProvider { get set }
-
Declaration
Swift
public var locationValidator: LocationValidator { get set }
-
Declaration
Swift
public var locationIndicatorType: LocationIndicator { get set }
-
Declaration
Swift
public func activateLocationProvider()
-
Declaration
Swift
public func deactivateLocationProvider()
-
Declaration
Swift
public func showVehicleRestrictions(vehicle: Vehicle) throws
-
Declaration
Swift
public func showVehicleRestrictions() throws
-
Declaration
Swift
public func hideVehicleRestrictions()
-
Declaration
Swift
public func updateVehicle(_ vehicle: Vehicle)
-
Adds
MapMetricsObserver
that will be notified with map metrics.Declaration
Swift
public func addMapMetricsObserver(_ observer: MapMetricsObserver)
-
Removes
MapMetricsObserver
from being notified with map metrics.Declaration
Swift
public func removeMapMetricsObserver(_ observer: MapMetricsObserver)