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
  1. WeatherLayers GL
  2. Layers

Style Properties

Last updated 1 year ago

Style properties common for all layers.

visible

Type: boolean, optional

Default: true

Visibility of the layer. See .

opacity

Type: number, optional

Default: 1

Opacity of the layer. See .

extensions

Type: array of extensions

Use [new ClipExtension()] for a global image in an equirectangular projection on a , to clip the areas of the image beyond a valid Mercator bounding box. See .

clipBounds

Type: bounding box of minX, minY, maxX, maxY [number, number, number, number], required for ClipExtension

Recommended value is [-181, -85.051129, 181, 85.051129] for a global image in an equirectangular projection on a , to clip the areas of the image beyond a valid Mercator bounding box. There is 181 instead of 180 to avoid a pixel gap at the antimeridian. See .

Layer visible
Layer opacity
WebMercatorViewport
ClipExtension
WebMercatorViewport
ClipExtension.clipBounds