MSFTerrainFlattenMode

Objective-C

enum MSFTerrainFlattenMode : NSInteger {}

Swift

enum MSFTerrainFlattenMode : Int, @unchecked Sendable

How far a flattened terrain goes back towards a plain 2D map.

  • Rendering only: the terrain passes, the drape and the elevation fetches are dropped, but the tiles keep their terrain subdivision. Switching is instant, but a flat map carries 3D triangles.

    Declaration

    Objective-C

    MSF_TERRAIN_FLATTEN_MODE_RENDER

    Swift

    case TERRAIN_FLATTEN_MODE_RENDER = 0
  • The whole way: a flat map decodes, culls and draws as if no terrain were configured. The price is a re-decode at a switch, paid while the map is already flat; switching back at the same view reuses the last decode, kept in memory.

    Declaration

    Objective-C

    MSF_TERRAIN_FLATTEN_MODE_FULL

    Swift

    case TERRAIN_FLATTEN_MODE_FULL = 1