MBMTileOptions.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. /** Options for custom geometry tiles. */
  4. NS_SWIFT_NAME(TileOptions)
  5. __attribute__((visibility ("default")))
  6. @interface MBMTileOptions : NSObject
  7. - (nonnull instancetype)init;
  8. - (nonnull instancetype)initWithTolerance:(double)tolerance
  9. tileSize:(uint16_t)tileSize
  10. buffer:(uint16_t)buffer
  11. clip:(BOOL)clip
  12. wrap:(BOOL)wrap;
  13. /** Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance). Default is `0.375`. */
  14. @property (nonatomic, readonly) double tolerance;
  15. /** Size of the tiles. Tile size must be a power of 2. Default is `512`. */
  16. @property (nonatomic, readonly) uint16_t tileSize;
  17. /** Tile buffer size on each side (measured in 1/512ths of a tile; higher means fewer rendering artifacts near tile edges but slower performance). Default is `128`. */
  18. @property (nonatomic, readonly) uint16_t buffer;
  19. /** If the data includes geometry outside the tile boundaries, setting this to true clips the geometry to the tile boundaries. Default is `false`; */
  20. @property (nonatomic, readonly, getter=isClip) BOOL clip;
  21. /** If the data includes wrapped coordinates, setting this to true unwraps the coordinates. Default is `false`; */
  22. @property (nonatomic, readonly, getter=isWrap) BOOL wrap;
  23. @end