MapOptions

public struct MapOptions : Equatable

MapOptions is the structure used to configure the map with a set of capabilities

  • Used to configure the gestures on the map

    Declaration

    Swift

    public var gestures: GestureOptions
  • Used to configure the ornaments on the map

    Declaration

    Swift

    public var ornaments: OrnamentOptions
  • Used to configure the camera of the map

    Declaration

    Swift

    public var camera: MapCameraOptions
  • Used to configure the location provider

    Declaration

    Swift

    public var location: LocationOptions
  • The preferred frame rate at which the map view is rendered.

    The default value for this property is MGLMapViewPreferredFramesPerSecondDefault, which will adaptively set the preferred frame rate based on the capability of the user’s device to maintain a smooth experience.

    See Also CADisplayLink.preferredFramesPerSecond

    Declaration

    Swift

    public var preferredFramesPerSecond: PreferredFramesPerSecond
  • A Boolean value indicating whether the map should prefetch tiles.

    When this property is set to YES, the map view prefetches tiles designed for a low zoom level and displays them until receiving more detailed tiles for the current zoom level. The prefetched tiles typically contain simplified versions of each shape, improving the map view’s perceived performance.

    The default value of this property is YES.

    Declaration

    Swift

    public var prefetchesTiles: Bool