WeatherLayers
DemoIntegrationsDocsStatus
  • Overview
  • WeatherLayers GL
    • Quick Start
    • Layers
      • Particle Layer
      • Raster Layer
      • Contour Layer
      • HighLow Layer
      • Front Layer
      • Grid Layer
      • Data Loading
      • Data Properties
      • Style Properties
    • Controls
      • Legend Control
      • Timeline Control
      • Tooltip Control
      • Attribution Control
      • Logo Control
      • Control
    • Types
    • Functions
    • Data Sources
    • Security
    • Troubleshooting
    • Pricing
    • Changelog
    • Roadmap
  • WeatherLayers Cloud
    • Quick Start
    • Client
    • Types
    • Security
    • Troubleshooting
    • Datasets
    • Pricing
    • Changelog
    • Roadmap
  • Contact
Powered by GitBook
On this page
  • Constructor
  • Methods
  1. WeatherLayers GL
  2. Controls

Control

Parent control

Constructor

Control(config: ControlConfig = {})

Methods

addTo(target: HTMLElement): void

Appends the control to the DOM as a child of the given target.

prependTo(target: HTMLElement): void

Prepends the control to the DOM as a child of the given target.

remove(): void

Removes the control from the DOM.

setConfig(config: ControlConfig): void

Updates the control config.

Last updated 1 year ago