Skip to content

Commit

Permalink
Fix fire display
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysurac committed Nov 1, 2019
1 parent 55f541b commit 014bf0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions js/map.2d.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -1000,11 +1000,14 @@ function loadFire(val) {
createCookie('weather_fire',val,999);
} else {
createCookie('weather_fire',val,999);
fireLayer = L.tileLayer.wms('https://firms.modaps.eosdis.nasa.gov/wms/viirs', {
fireLayer = L.tileLayer.wms('https://firms.modaps.eosdis.nasa.gov/wms/map/', {
layers: 'NASA FIRMS',
format: 'image/png',
opacity: 62,
transparent: true
transparent: true,
time: 24,
instr: 'modis',
sat: 'T'
}).addTo(map);
}
}
Expand Down
7 changes: 5 additions & 2 deletions js/map.3d.weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,14 @@ function loadFire(val) {
} else {
createCookie('weather_fire',val,999);
var fireProvider = new Cesium.WebMapServiceImageryProvider({
url : corsproxy+'https://firms.modaps.eosdis.nasa.gov/wms/viirs',
url : corsproxy+'https://firms.modaps.eosdis.nasa.gov/wms/map/',
layers : 'NASA FIRMS',
parameters : {
transparent : true,
format : 'image/png'
format : 'image/png',
time: 24,
instr: 'modis',
sat: 'T'
}
});
fireLayer = new Cesium.ImageryLayer(fireProvider);
Expand Down

0 comments on commit 014bf0a

Please sign in to comment.