Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: red outline issue AB#23678 #1461

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions interfaces/IBF-dashboard/src/app/services/map.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,10 +839,10 @@ export class MapService {

getOutlineOpacity(colorPropertyValue) {
switch (true) {
case colorPropertyValue === 0:
return 0;
default:
case colorPropertyValue === 1:
return 1;
default:
return 0;
}
}

Expand Down
5 changes: 3 additions & 2 deletions services/API-service/src/api/metadata/metadata.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export class MetadataService {
return indicators.filter(
(metadata: IndicatorMetadataEntity): boolean =>
metadata.countryDisasterTypes?.[countryCodeISO3] &&
metadata.countryDisasterTypes?.[countryCodeISO3][disasterType],
metadata.countryDisasterTypes?.[countryCodeISO3][disasterType] !==
undefined,
);
}

Expand All @@ -132,7 +133,7 @@ export class MetadataService {
return layers.filter(
(metadata: LayerMetadataEntity): boolean =>
metadata.description?.[countryCodeISO3] &&
metadata.description?.[countryCodeISO3][disasterType],
metadata.description?.[countryCodeISO3][disasterType] !== undefined,
);
}
}
160 changes: 156 additions & 4 deletions services/API-service/src/scripts/json/layer-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -426,25 +426,177 @@
"name": "adminRegions1",
"label": "Admin Level 1",
"type": "shape",
"active": "yes"
"active": "yes",
"description": {
"EGY": {
"heavy-rain": ""
},
"ETH": {
"drought": "",
"floods": "",
"malaria": ""
},
"KEN": {
"drought": "",
"floods": ""
},
"MWI": {
"flash-floods": "",
"floods": ""
},
"PHL": {
"dengue": "",
"floods": "",
"typhoon": ""
},
"SSD": {
"floods": ""
},
"UGA": {
"drought": "",
"floods": "",
"heavy-rain": ""
},
"ZMB": {
"drought": "",
"floods": ""
},
"ZWE": {
"drought": ""
}
}
},
{
"name": "adminRegions2",
"label": "Admin Level 2",
"type": "shape",
"active": "yes"
"active": "yes",
"description": {
"EGY": {
"heavy-rain": ""
},
"ETH": {
"drought": "",
"floods": "",
"malaria": ""
},
"KEN": {
"drought": "",
"floods": ""
},
"MWI": {
"flash-floods": "",
"floods": ""
},
"PHL": {
"dengue": "",
"floods": "",
"typhoon": ""
},
"SSD": {
"floods": ""
},
"UGA": {
"drought": "",
"floods": "",
"heavy-rain": ""
},
"ZMB": {
"drought": "",
"floods": ""
},
"ZWE": {
"drought": ""
}
}
},
{
"name": "adminRegions3",
"label": "Admin Level 3",
"type": "shape",
"active": "yes"
"active": "yes",
"description": {
"EGY": {
"heavy-rain": ""
},
"ETH": {
"drought": "",
"floods": "",
"malaria": ""
},
"KEN": {
"drought": "",
"floods": ""
},
"MWI": {
"flash-floods": "",
"floods": ""
},
"PHL": {
"dengue": "",
"floods": "",
"typhoon": ""
},
"SSD": {
"floods": ""
},
"UGA": {
"drought": "",
"floods": "",
"heavy-rain": ""
},
"ZMB": {
"drought": "",
"floods": ""
},
"ZWE": {
"drought": ""
}
}
},
{
"name": "adminRegions4",
"label": "Admin Level 4",
"type": "shape",
"active": "yes"
"active": "yes",
"description": {
"EGY": {
"heavy-rain": ""
},
"ETH": {
"drought": "",
"floods": "",
"malaria": ""
},
"KEN": {
"drought": "",
"floods": ""
},
"MWI": {
"flash-floods": "",
"floods": ""
},
"PHL": {
"dengue": "",
"floods": "",
"typhoon": ""
},
"SSD": {
"floods": ""
},
"UGA": {
"drought": "",
"floods": "",
"heavy-rain": ""
},
"ZMB": {
"drought": "",
"floods": ""
},
"ZWE": {
"drought": ""
}
}
},
{
"name": "evacuation_centers",
Expand Down
Loading