Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/units"

Index

Functions

getMapSize

  • getMapSize(displaySize: [number, number], metersPerUnit: number, units: UnitOfMeasure, resolution?: undefined | number, precision?: undefined | number): [number, number]
  • Utility function to compute the physical map size based on the given display size and various display settings

    since

    0.11

    export

    Parameters

    • displaySize: [number, number]
    • metersPerUnit: number
    • units: UnitOfMeasure
    • Optional resolution: undefined | number
    • Optional precision: undefined | number

    Returns [number, number]

getUnitOfMeasure

getUnits

getUnitsOfMeasure

  • Gets all available units of measure

    since

    0.12.2

    Returns UnitOfMeasure[]

Generated using TypeDoc