---
title: "Precipitation layer | Weather"
description: "Weather module precipitation layer API reference."
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Precipitation layer

The PrecipitationLayer shows the atmospheric precipitation in millimeter per hour (**mm/h**). Forecast for precipitation of all sorts (rain, snow, hail, sleet) in amount per hour.

![Precipitation layer](./precipitation.webp)

**Example**

```js
import { PrecipitationLayer } from "@maptiler/weather";

  // After creating a Map instance like in the `Getting Started`
  const layer = new PrecipitationLayer(); // using default settings
```

## API reference

[Class PrecipitationLayer](https://docs.maptiler.com/sdk-js/modules/weather/api-reference/classes/PrecipitationLayer/)

## Related examples

-   [Weather precipitation layer](https://docs.maptiler.com/sdk-js/examples/weather-precipitation/)
-   [Weather layer switcher](https://docs.maptiler.com/sdk-js/examples/weather-layer-switcher/)
