-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from UMassCDS/pam_bunsen
Pam style changes
- Loading branch information
Showing
6 changed files
with
85 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
const baseUrl = 'https://avianinfluenza.s3.us-east-2.amazonaws.com/'; | ||
export enum DataTypes {ABUNDANCE = 'abundance', MOVEMENT = 'netmovement'};// avianinfluenza.s3.us-east-2.amazonaws.com/abundance/mean/scale_abundance_mean.json | ||
|
||
/* Determine the url containing data to display the legend scale. | ||
The function takes in the data type and the species type. */ | ||
export function changeLegend(dataType: DataTypes, speciesType: string): string { | ||
const finalUrl = `${ | ||
baseUrl + dataType | ||
}/${speciesType}/scale_${dataType}_${speciesType}.json`; | ||
return finalUrl; | ||
} | ||
|
||
/* Determine the url containing the image data. | ||
The function takes in the data type, the species type, and the week number. */ | ||
export function imageURL( | ||
dataType: DataTypes, | ||
speciesType: string, | ||
week: number, | ||
): string { | ||
const finalUrl = `${ | ||
baseUrl + dataType | ||
}/${speciesType}/${dataType}_${speciesType}_${week}.png`; | ||
return finalUrl; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters