Type alias ScaleControlOptions

ScaleControlOptions: {
    maxWidth?: number;
    unit?: Unit;
}

The ScaleControl options object

Type declaration

  • Optional maxWidth?: number

    The maximum length of the scale control in pixels.

    Default Value

    100
    
  • Optional unit?: Unit

    Unit of the distance ('imperial', 'metric' or 'nautical').

    Default Value

    'metric'