MSFTileLODProfile
Objective-C
enum MSFTileLODProfile : NSInteger {}
Swift
enum MSFTileLODProfile : Int, @unchecked Sendable
A named set of the tile LOD numbers, so a platform picks a density with one call rather than by tuning four knobs that multiply.
-
The reference density: TileLODFactor 1, which is tangram’s rule, mapbox’s and maplibre’s alike - a tile is refined while it covers more than a 2x2 block of nominal tiles. Fewest tiles, and what every reference renderer ships.
Declaration
Objective-C
MSF_TILE_LOD_PROFILE_REFERENCESwift
case TILE_LOD_PROFILE_REFERENCE = 0 -
Half a level finer than the reference, with a shorter style zoom lift. Meant for a phone: visibly sharper than the reference at roughly twice its tile count.
Declaration
Objective-C
MSF_TILE_LOD_PROFILE_MOBILESwift
case TILE_LOD_PROFILE_MOBILE = 1 -
A full level finer than the reference (TileLODFactor 0.5, the historical default), about 4x its tile count. Meant for a desktop or a web page on a real GPU.
Declaration
Objective-C
MSF_TILE_LOD_PROFILE_DESKTOPSwift
case TILE_LOD_PROFILE_DESKTOP = 2