Methods
changeType()
Filter the reports by the required type of crisis
- Source:
checkUpdate()
Check if there are new reports to show. If there are, show a button to update the reports
- Source:
checkUpdate()
Check if there are new requests to show. If there are, show a button to update the requests
- Source:
dengueButtonClicked()
Showing the dengue hotspots and toggling off the weather and psi section
getCookie(name)
Get cookie from the current web page
Parameters:
Name | Type | Description |
---|---|---|
name |
Name of the cookie |
hideMarkers(markers_type)
Hide the markers on the map
Parameters:
Name | Type | Description |
---|---|---|
markers_type |
list of all the markers |
initMap()
Initializing the map
nextPage()
Pagination -- Go to the next page
- Source:
nextPage()
Pagination -- Go to the next page
- Source:
prePage()
Pagination -- Go to the previous page
- Source:
prePage()
Pagination -- Go to the previous page
- Source:
psiButtonClicked()
Toggling the map to the PSI section
pullDecisions()
Pull the decisions with their descriptions to show to anyone who visits the web page
- Source:
pullDecisions()
Display the crises on the dashboard of the Decision Maker
- Source:
pullReports()
Pull new reports from the backend
- Source:
pullRequests()
Pull new requests from the backend
- Source:
showMarkers(markers_type)
Display the markers on the map
Parameters:
Name | Type | Description |
---|---|---|
markers_type |
list of all the markers |
updateDecisionStatus(decisionID, newStatus)
Update the status of the decision to manage the cases effectively
Parameters:
Name | Type | Description |
---|---|---|
decisionID |
||
newStatus |
- Source:
updateDengue()
Update the dengue data from the government API
- Source:
updateDengueInHome(dengueData)
Display the dengue cases showing the places of the hotspots and the number of cases in each area.
Parameters:
Name | Type | Description |
---|---|---|
dengueData |
- Source:
updatePSI()
update psi readings from the government API
- Source:
updatePSIInHome(psiData)
Display the PSI in all the 5 different areas and also the overall PSI reading.
Parameters:
Name | Type | Description |
---|---|---|
psiData |
- Source:
updateReportStatus(reportID, newStatus)
Updating the status of the report to efficiently mange the reports
Parameters:
Name | Type | Description |
---|---|---|
reportID |
unique ID of the report | |
newStatus |
the new status to be updated |
- Source:
updateRequestStatus(requestID)
Updating the status of the request to efficiently mange the requests
Parameters:
Name | Type | Description |
---|---|---|
requestID |
unique ID of the request |
- Source:
updateWeather()
Update 2-hour weather nowcast
- Source:
updateWeatherInHome(weatherData)
Display the weather conditions on the Home page.
Parameters:
Name | Type | Description |
---|---|---|
weatherData |
- Source:
weatherButtonClicked()
Toggling the map to the weather section
weatherFullNama(weatherAbbr)
Get the full name of the weather condition given from the abbreviation in the API
Parameters:
Name | Type | Description |
---|---|---|
weatherAbbr |
- Source:
Returns:
String The full weather name