Click or drag to resize

Telogis.GeoBase.Widgets.Slider

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

Widgets.Slider inherits from Widgets.MapControl.

A skinnable widget used to control zoom levels on a map.

Exceptions
TypeDescription
Errors.ConfigurationErrorIf no valid Widgets.SliderSkin could be found.
Constructor
NameDescription
Widgets.Slider(config)

Arguments

  • config (Object) - Configuration options for the Widgets.Slider.

    Properties
    NameTypeDescription
    skinWidgets.SliderSkin

    The skin to use for the slider widget, describing the customizable aspects of its appearance.

    Defaults to Widgets.SliderSkin.standard.
Functions
NameDescription
getSize (Function callback)

Finds the dimensions of the slider control. Since these are only available once its skin has fully loaded, there may be a small delay before they can be returned. Hence, this procedure is asynchronous, and returns the size to a callback function.

Arguments
  • callback (Function) - The callback to pass the dimensions of the control to, when they become available.

    Arguments
    • size (Size) - The width and height, in pixels, of the slider.

setMap (Telogis.GeoBase.Map map)

Associates the Widgets.Slider with a certain Widgets.Map and updates it accordingly. After this call, the slider will be updated whenever the map is zoomed.

Arguments
  • (Optional) map (Telogis.GeoBase.Map or String) - The reference or string ID specifying the map to bind the slider to. Defaults to this.map.

update (Number updateType)

Checks the current zoom level of the bound map and displays it correctly on the slider.

Arguments
  • updateType (Number) - A combination of Map.UPDATE_* flags describing the type of update that has occurred.