API Docs for: 7.2
Show:

MQA.TrafficToggle Class

Extends MQA.Control
Module: MQA

Traffic Toggle control constructor.

Constructor

MQA.TrafficToggle

()

Properties

controlVersion

String

Inherited from MQA.Control

The version of the control.

Methods

cancelRefresh

()

Cancels the Refresh Interval

check

()

Checks the controls

getHeight

()

Inherited from MQA.Control

Control uses this function while calculating the top position of this control in the placeControl function. Refer placeControl function in mqa.module.controlbase.js for further details.

getHeightInternal

() private

Inherited from MQA.Control

Get the height of the control.

getMsg

(
  • key
  • defaultMsg
)
String

Inherited from MQA.Control

Provides localization support for controls with text labels.

Parameters:

  • key String

    The unique key for the message.

  • defaultMsg String

    The default message to use if the message isn't found for the localization.

Returns <String>

The localized message.

getPosition

() MQA.CornerPlacement

Inherited from MQA.Control

Returns the position of the control. A default position is set when instantiated.

Returns <MQA.CornerPlacement>

The position of the control.

getTrafficModule

(
  • cb
)

Gets the traffic module and calls the passed in function

Parameters:

getWidth

()

Inherited from MQA.Control

Control uses this function while calculating the left position of this control in the placeControl function. Refer placeControl function in mqa.module.controlbase.js for further details.

getWidthInternal

(
  • parent
)
Number private

Inherited from MQA.Control

Get the width of the control.

Parameters:

Returns <Number>

width

initialize

(
  • map
)

Inherited from MQA.Control

Initialize a control on the map.

Parameters:

scheduleRefresh

()

Sets the refresh timer

uncheck

()

Unchecks the control