Skip to content

Commit

Permalink
WFNEWS-2144 remove area restrction centroid & increase radii for stat…
Browse files Browse the repository at this point in the history
…ic maps
  • Loading branch information
ssylver93 committed Apr 24, 2024
1 parent 0257360 commit 00d1371
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,28 +136,13 @@ export class AreaRestrictionsFullDetailsComponent implements OnInit {
popupAnchor: [1, -34],
shadowSize: [41, 41],
});
if (this.incident) {
if (this.incident.fireOfNoteInd) {
L.marker(location, { icon: fireOfNoteIcon }).addTo(this.map);
} else {
const colorToDisplay = setDisplayColor(
this.incident.stageOfControlCode,
);
L.circleMarker(location, {
radius: 15,
fillOpacity: 1,
color: 'black',
fillColor: colorToDisplay,
}).addTo(this.map);
}
}

// now fetch the rest of the incidents in the area and display on map
try {
const locationData = new LocationData();
locationData.latitude = Number(this.restrictionData.centroidLatitude);
locationData.longitude = Number(this.restrictionData.centroidLongitude);
locationData.radius = 10;
locationData.radius = 100;
const stageOfControlCodes = ['OUT_CNTRL', 'HOLDING', 'UNDR_CNTRL'];
const incidents = await this.publishedIncidentService
.fetchPublishedIncidentsList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class BansFullDetailsComponent implements OnInit {
const locationData = new LocationData();
locationData.latitude = Number(this.banData.centroidLatitude);
locationData.longitude = Number(this.banData.centroidLongitude);
locationData.radius = 10;
locationData.radius = 100;
const stageOfControlCodes = ['OUT_CNTRL', 'HOLDING', 'UNDR_CNTRL'];
const incidents = await this.publishedIncidentService
.fetchPublishedIncidentsList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class DangerRatingFullDetailsComponent implements OnInit {

// now fetch the rest of the incidents in the area and display on map
try {
locationData.radius = 10;
locationData.radius = 100;
const stageOfControlCodes = ['OUT_CNTRL', 'HOLDING', 'UNDR_CNTRL'];
const incidents = await this.publishedIncidentService
.fetchPublishedIncidentsList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class EvacAlertFullDetailsComponent implements OnInit {
const locationData = new LocationData();
locationData.latitude = Number(this.evacData.centroidLatitude);
locationData.longitude = Number(this.evacData.centroidLongitude);
locationData.radius = 10;
locationData.radius = 100;
const stageOfControlCodes = ['OUT_CNTRL', 'HOLDING', 'UNDR_CNTRL'];
const incidents = await this.publishedIncidentService
.fetchPublishedIncidentsList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ this.router.navigate([ResourcesRoutes.DASHBOARD]);
const locationData = new LocationData();
locationData.latitude = Number(this.incident.latitude);
locationData.longitude = Number(this.incident.longitude);
locationData.radius = 10;
locationData.radius = 100;
const stageOfControlCodes = ['OUT_CNTRL', 'HOLDING', 'UNDR_CNTRL'];
const incidents = await this.publishedIncidentService
.fetchPublishedIncidentsList(
Expand Down

0 comments on commit 00d1371

Please sign in to comment.