MBMCustomGeometrySourceOptions.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCoreMaps/MBMCancelTileFunctionCallback.h>
  4. #import <MapboxCoreMaps/MBMFetchTileFunctionCallback.h>
  5. @class MBMTileOptions;
  6. /** Options for custom geometry source. */
  7. NS_SWIFT_NAME(CustomGeometrySourceOptions)
  8. __attribute__((visibility ("default")))
  9. @interface MBMCustomGeometrySourceOptions : NSObject
  10. // This class provides custom init which should be called
  11. - (nonnull instancetype)init NS_UNAVAILABLE;
  12. // This class provides custom init which should be called
  13. + (nonnull instancetype)new NS_UNAVAILABLE;
  14. - (nonnull instancetype)initWithFetchTileFunction:(nonnull MBMFetchTileFunctionCallback)fetchTileFunction
  15. cancelTileFunction:(nonnull MBMCancelTileFunctionCallback)cancelTileFunction
  16. tileOptions:(nonnull MBMTileOptions *)tileOptions;
  17. - (nonnull instancetype)initWithFetchTileFunction:(nonnull MBMFetchTileFunctionCallback)fetchTileFunction
  18. cancelTileFunction:(nonnull MBMCancelTileFunctionCallback)cancelTileFunction
  19. minZoom:(uint8_t)minZoom
  20. maxZoom:(uint8_t)maxZoom
  21. tileOptions:(nonnull MBMTileOptions *)tileOptions;
  22. /** The callback that provides data for a tile. */
  23. @property (nonatomic, readonly, nonnull) MBMFetchTileFunctionCallback fetchTileFunction;
  24. /** The callback that cancels a tile. */
  25. @property (nonatomic, readonly, nonnull) MBMCancelTileFunctionCallback cancelTileFunction;
  26. /**
  27. * A minimum zoom level, at which to create vector tiles.
  28. *
  29. * The default value is `0`.
  30. */
  31. @property (nonatomic, readonly) uint8_t minZoom;
  32. /**
  33. * A maximum zoom level, at which to create vector tiles.
  34. *
  35. * A higher maximum zoom level provides greater details at high map zoom levels.
  36. *
  37. * The default value is `18`.
  38. */
  39. @property (nonatomic, readonly) uint8_t maxZoom;
  40. /** Tile options. */
  41. @property (nonatomic, readonly, nonnull) MBMTileOptions *tileOptions;
  42. @end