Skip to content

Commit

Permalink
WV-3283 AERONET Daily Layer Date Limitting (#5377)
Browse files Browse the repository at this point in the history
* Prevented data from previous days showing

* Changed to wrapX: false

---------

Co-authored-by: minniewong <min.m.wong@nasa.gov>
  • Loading branch information
christof-wittreich and minniewong authored Jul 31, 2024
1 parent 364d3e9 commit 16244a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dateInterval": "60"
}
],
"wrapX": true,
"wrapX": false,
"projections": {
"geographic": {
"source": "AERONET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dateInterval": "60"
}
],
"wrapX": true,
"wrapX": false,
"projections": {
"geographic": {
"source": "AERONET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"vectorStyle": {
"id": "DAILY_AERONET_ANGSTROM_440-870NM"
},
"wrapX": true,
"wrapX": false,
"projections": {
"geographic": {
"source": "AERONET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"vectorStyle": {
"id": "DAILY_AERONET_AOD_500NM"
},
"wrapX": true,
"wrapX": false,
"projections": {
"geographic": {
"source": "AERONET"
Expand Down
2 changes: 1 addition & 1 deletion web/js/map/layerbuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export default function mapLayerBuilder(config, cache, store) {
for (let j = 0; j < split2.length; j += 1) {
rowObj[key[j]] = split2[j];
}
if (!!rowObj.AERONET_Site_Name && rowObj.AERONET_Site_Name !== '' && !takenNamesActive[rowObj.AERONET_Site_Name]) {
if (!!rowObj.AERONET_Site_Name && rowObj.AERONET_Site_Name !== '' && !takenNamesActive[rowObj.AERONET_Site_Name] && parseInt(rowObj['Date(dd:mm:yyyy)'].split(':')[0], 10) === date.getUTCDate()) {
featuresObj[rowObj.AERONET_Site_Name] = {};
featuresObj[rowObj.AERONET_Site_Name].type = 'Feature';
featuresObj[rowObj.AERONET_Site_Name].geometry = { type: 'Point' };
Expand Down

0 comments on commit 16244a6

Please sign in to comment.