Class TileLODProfile

java.lang.Object
com.massifmaps.components.TileLODProfile

public final class TileLODProfile extends Object
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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    The accepted values of this constant namespace.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    A full level finer than the reference (TileLODFactor 0.5, the historical default),
    about 4x its tile count.
    static final int
    Half a level finer than the reference, with a shorter style zoom lift.
    static final int
    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.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TILE_LOD_PROFILE_REFERENCE

      public static final int TILE_LOD_PROFILE_REFERENCE
      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.
      See Also:
    • TILE_LOD_PROFILE_MOBILE

      public static final int TILE_LOD_PROFILE_MOBILE
      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.
      See Also:
    • TILE_LOD_PROFILE_DESKTOP

      public static final int TILE_LOD_PROFILE_DESKTOP
      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.
      See Also:
  • Constructor Details

    • TileLODProfile

      public TileLODProfile()