Update radar.js

This commit is contained in:
Connor H 2021-09-14 18:51:53 -04:00 committed by GitHub
parent 950cfcd8e9
commit 986bf4348a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ function Radar(divIDin, intervalHoursIn, zoomIn, latitudeIn, longitudeIn, withSa
zoomOffset: -1
}).addTo(map);
if (withSat == true) {
$.getJSON("https://api.weather.com/v3/TileServer/series/productSet/PPAcore?filter=satrad&apiKey=" + api_key, function(data) {
$.getJSON("https://api.weather.com/v3/TileServer/series/productSet?filter=satrad&apiKey=" + api_key, function(data) {
for (var i = 0; i < data.seriesInfo.satrad.series.length; i++) {
timeLayers.push(
L.tileLayer("https://api.weather.com/v3/TileServer/tile/satrad?ts="+ data.seriesInfo.satrad.series[i].ts +"&xyz={x}:{y}:{z}&apiKey=" + api_key, {
@ -60,7 +60,7 @@ function Radar(divIDin, intervalHoursIn, zoomIn, latitudeIn, longitudeIn, withSa
});
});
} else {
$.getJSON("https://api.weather.com/v3/TileServer/series/productSet/PPAcore?filter=radar&apiKey=" + api_key, function(data) {
$.getJSON("https://api.weather.com/v3/TileServer/series/productSet?filter=radar&apiKey=" + api_key, function(data) {
for (var i = 0; i < data.seriesInfo.radar.series.length; i++) {
timeLayers.push(
L.tileLayer("https://api.weather.com/v3/TileServer/tile/radar?ts="+ data.seriesInfo.radar.series[i].ts +"&xyz={x}:{y}:{z}&apiKey=" + api_key, {