MTZoomable

@MainActor
public protocol MTZoomable

Defines methods for manipulating zoom level.

  • zoomIn() Asynchronous

    Increases the map’s zoom level by 1.

    Declaration

    Swift

    @MainActor
    func zoomIn() async
  • zoomOut() Asynchronous

    Decreases the map’s zoom level by 1.

    Declaration

    Swift

    @MainActor
    func zoomOut() async
  • getZoom() Asynchronous

    Returns the map’s current zoom level.

    Declaration

    Swift

    @MainActor
    func getZoom() async -> Double
  • setZoom(_:) Asynchronous

    Sets the map’s zoom level.

    Declaration

    Swift

    @MainActor
    func setZoom(_ zoom: Double) async