Home Reference Source
import {CombinedZoom} from 'guide4you/src/controls/CombinedZoom.js'
public class | source

CombinedZoom

Extends:

ControlComposedControl → CombinedZoom

This combines the two zoom controls (zoomslider and zoombuttons)

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
Private Members
private
private
private
private

Method Summary

Public Methods
public
public
public

setMap(map: G4UMap)

Inherited Summary

From class ComposedControl
public
public
public
private

$container_: jQuery

private
private
private
private
public

addControl(control: Control, options: Object)

public

used by positioning

public
public

get$Container(): jQuery

public
public

isSqueezable(dimension: string): boolean

Returns true if the control is squeezable in the given dimension.

public

release(dimension: string)

Removes the squeeze.

public

removeControl(control: Control, propagate: boolean)

public

setMap(map: G4UMap)

public

squeezeBy(dimension: string, value: number): number

Squeezes the control in the given dimension by the provided value.

public
private

addClasses_($item: jQuery): jQuery

This method adds some helping css classes to the items

Public Constructors

public constructor(options: CombinedZoomOptions) source

Override:

ComposedControl#constructor

Params:

NameTypeAttributeDescription
options CombinedZoomOptions
  • optional
  • default: {}

Public Members

public zoomButtonOptions: * source

public zoomSliderOptions: * source

Private Members

private hasButtons_: boolean source

private hasSlider_: boolean source

private zoomButtons_: Zoom source

private zoomSlider_: ZoomSlider source

Public Methods

public addZoomButtons() source

public addZoomSlider() source

public setMap(map: G4UMap) source

Override:

ComposedControl#setMap

Params:

NameTypeAttributeDescription
map G4UMap