MBMOfflineRegionTilePyramidDefinition.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCoreMaps/MBMGlyphsRasterizationMode.h>
  4. @class MBMCoordinateBounds;
  5. /**
  6. * An offline region definition is a geographic region defined by a style URL,
  7. * geographic bounding box, zoom range, and device pixel ratio. Both `minZoom` and `maxZoom` must be ≥ 0,
  8. * and `maxZoom` must be ≥ `minZoom`. The `maxZoom` may be ∞, in which case for each tile source,
  9. * the region will include tiles from `minZoom` up to the maximum zoom level provided by that source.
  10. * The `pixelRatio` must be ≥ 0 and should typically be 1.0 or 2.0.
  11. */
  12. NS_SWIFT_NAME(OfflineRegionTilePyramidDefinition)
  13. __attribute__((visibility ("default")))
  14. __attribute__((deprecated))
  15. @interface MBMOfflineRegionTilePyramidDefinition : NSObject
  16. // This class provides custom init which should be called
  17. - (nonnull instancetype)init NS_UNAVAILABLE;
  18. // This class provides custom init which should be called
  19. + (nonnull instancetype)new NS_UNAVAILABLE;
  20. - (nonnull instancetype)initWithStyleURL:(nonnull NSString *)styleURL
  21. bounds:(nonnull MBMCoordinateBounds *)bounds
  22. minZoom:(double)minZoom
  23. maxZoom:(double)maxZoom
  24. pixelRatio:(float)pixelRatio
  25. glyphsRasterizationMode:(MBMGlyphsRasterizationMode)glyphsRasterizationMode;
  26. /** The style associated with the offline region. */
  27. @property (nonatomic, readonly, nonnull, copy) NSString *styleURL;
  28. /** The bounds covering the region. */
  29. @property (nonatomic, readonly, nonnull) MBMCoordinateBounds *bounds;
  30. /** Minimum zoom level for the offline region. */
  31. @property (nonatomic, readonly) double minZoom;
  32. /** Maximum zoom level for the offline region. */
  33. @property (nonatomic, readonly) double maxZoom;
  34. /** Pixel ratio to be accounted for when downloading assets. */
  35. @property (nonatomic, readonly) float pixelRatio;
  36. /** Specifies glyphs download mode. */
  37. @property (nonatomic, readonly) MBMGlyphsRasterizationMode glyphsRasterizationMode;
  38. @end