From 8766a5881112f0380c058910eaff50fa780262df Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 4 Aug 2016 21:19:31 +0100 Subject: [PATCH] Add a NEXRAD layer suggested in #135 --- public_html/layers.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public_html/layers.js b/public_html/layers.js index 4e7e13e..28cd9e6 100644 --- a/public_html/layers.js +++ b/public_html/layers.js @@ -66,6 +66,18 @@ function createBaseLayers() { } } + us.push(new ol.layer.Tile({ + name: 'nexrad', + title: 'NEXRAD', + type: 'overlay', + source: new ol.source.XYZ({ + url : 'http://mesonet{1-3}.agron.iastate.edu/cache/tile.py/1.0.0/nexrad-n0q-900913/{z}/{x}/{y}.png', + attributions: 'NEXRAD courtesy of IEM' + }), + opacity: 0.5, + visible: false + })); + if (world.length > 0) { layers.push(new ol.layer.Group({ name: 'world',