Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Layers

Implements

Index

Constructors

constructor

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

    Parameters

    • Optional baseLayers: any
    • Optional overlays: any
    • Optional options: LayersOptions

    Returns Layers

Methods

addBaseLayer

  • Adds a base layer (radio button entry) with the given name to the control.

    Parameters

    Returns Layers

addEventListener

  • addEventListener(type: string, fn: function, context?: any): Layers
  • addEventListener(eventMap: any, context?: any): Layers
  • Parameters

    Returns Layers

  • Parameters

    • eventMap: any
    • Optional context: any

    Returns Layers

addOneTimeEventListener

  • addOneTimeEventListener(type: string, fn: function, context?: any): Layers
  • Parameters

    Returns Layers

addOverlay

  • Adds an overlay (checkbox entry) with the given name to the control.

    Parameters

    Returns Layers

clearAllEventListeners

  • clearAllEventListeners(): Layers

fire

  • fire(type: string, data?: any): Layers
  • Parameters

    • type: string
    • Optional data: any

    Returns Layers

fireEvent

  • fireEvent(type: string, data?: any): Layers
  • Parameters

    • type: string
    • Optional data: any

    Returns Layers

hasEventListeners

  • hasEventListeners(type: string): boolean

off

  • off(type: string, fn?: function, context?: any): Layers
  • off(eventMap?: any, context?: any): Layers
  • Parameters

    • type: string
    • Optional fn: function
    • Optional context: any

    Returns Layers

  • Parameters

    • Optional eventMap: any
    • Optional context: any

    Returns Layers

on

  • on(type: string, fn: function, context?: any): Layers
  • on(eventMap: any, context?: any): Layers
  • Parameters

    Returns Layers

  • Parameters

    • eventMap: any
    • Optional context: any

    Returns Layers

once

  • once(type: string, fn: function, context?: any): Layers
  • Parameters

    Returns Layers

removeEventListener

  • removeEventListener(type: string, fn?: function, context?: any): Layers
  • removeEventListener(eventMap?: any, context?: any): Layers
  • Parameters

    • type: string
    • Optional fn: function
    • Optional context: any

    Returns Layers

  • Parameters

    • Optional eventMap: any
    • Optional context: any

    Returns Layers

removeLayer

  • Remove the given layer from the control.

    Parameters

    Returns Layers