Skip to content

dataLayerPngRainviewer

Technical Details

A single file contains the currently available timestamps of radar images. This file is available at https://tilecache.rainviewer.com/api/maps.json

Once the timestamps have been determied, the image for each timestamp is available at: https://tilecache.rainviewer.com/v2/radar/{timestamp}/256/{z}/{x}/{y}/5/1_1.png

Configuration

The following parameters may be specified in the configuration file when defining a dataLayerPngRainviewer layer.

Parameter Example Value Default Description
id "radarLayerRainviewerLooping" required Unique layer identifier. Used only for programming puposes and will not be seen by the user but MUST be unique.
class "data-layer-png-rainviewer" required This specifies the class to use to display a data layer.
label "Rainviewer Radar (loop)" required Label on menu checkbox.
loop true false When true, radar images will be on a loop.
maxImages 10 10 The maximum number of radar images to display when looping.
opacity "0.4" 0.4 Opacity of the radar images.
refresh true false The timestamp file will be updated every 5 minutes, or whatever the system-wide refresh interval is set to.
url https://tilecache.rainviewer.com/ v2/radar/ {timestamp}/256/{z}/{x}/{y}/ 5/1_1.png https://tilecache.rainviewer.com/ v2/radar/ {timestamp}/256/{z}/{x}/{y}/ 5/1_1.png url to radar images