Class control

Index

Methods

Methods

public static attribution(options?: AttributionOptions): Attribution

Creates an attribution control.

Parameters

Returns

Attribution

public function(options?: ControlOptions): Control

Creates a control with the given options.

Parameters

Returns

Control

public static layers(baseLayers?: any, overlays?: any, options?: LayersOptions): Layers

Creates an attribution control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes.

Parameters

  • baseLayers?: any optional
  • overlays?: any optional
  • options?: LayersOptions optional

Returns

Layers

public static scale(options?: ScaleOptions): Scale

Creates an scale control with the given options.

Parameters

Returns

Scale

public static zoom(options?: ZoomOptions): Zoom

Creates a zoom control.

Parameters

Returns

Zoom