Skip to content

Commit

Permalink
Incident header polygon precision (#2048)
Browse files Browse the repository at this point in the history
* Add precision to evac polygons

* Add higher precision to polygon
  • Loading branch information
sukhpalp authored Jul 23, 2024
1 parent 26a7f14 commit fc821a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { LocationData } from '@app/components/wildfires-list-header/filter-by-location/filter-by-location-dialog.component';
import { AGOLService, AgolOptions } from '@app/services/AGOL-service';
import { CommonUtilityService } from '@app/services/common-utility.service';
import {
PublishedIncidentService,
SimpleIncident,
} from '@app/services/published-incident-service';
import { ResourcesRoutes, convertToDateYear, convertToDateTime, openLink, getStageOfControlIcon, getStageOfControlLabel } from '@app/utils';
import L from 'leaflet';
import { setDisplayColor } from '../../../utils';
import { LocationData } from '@app/components/wildfires-list-header/filter-by-location/filter-by-location-dialog.component';
import { AppConfigService } from '@wf1/core-ui';
import { Router } from '@angular/router';
import { WatchlistService } from '@app/services/watchlist-service';
import { CommonUtilityService } from '@app/services/common-utility.service';
import { ResourcesRoutes, convertToDateTime, convertToDateYear, getStageOfControlIcon, getStageOfControlLabel, openLink } from '@app/utils';
import { AppConfigService } from '@wf1/core-ui';
import * as esri from 'esri-leaflet';
import L from 'leaflet';
import { setDisplayColor } from '../../../utils';

export class EvacData {
public name: string;
Expand Down Expand Up @@ -126,7 +126,7 @@ export class EvacAlertFullDetailsComponent implements OnInit {
esri.featureLayer({
url: this.appConfigService.getConfig()['externalAppConfig']['AGOLevacOrders'].toString(),
ignoreRenderer: true,
precision: 3,
precision: 10,
style: (feature) => {
if (feature.properties.ORDER_ALERT_STATUS === 'Order') {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { AGOLService } from '@app/services/AGOL-service';
import { CommonUtilityService } from '@app/services/common-utility.service';
import { PublishedIncidentService } from '@app/services/published-incident-service';
import { AppConfigService } from '@wf1/core-ui';
import * as esri from 'esri-leaflet';
import * as L from 'leaflet';
import * as moment from 'moment';
import { toCanvas } from 'qrcode';
Expand All @@ -35,7 +36,6 @@ import {
setDisplayColor
} from '../../../utils';
import { ContactUsDialogComponent } from '../../admin-incident-form/contact-us-dialog/contact-us-dialog.component';
import * as esri from 'esri-leaflet';

@Component({
selector: 'incident-header-panel',
Expand Down Expand Up @@ -274,7 +274,7 @@ export class IncidentHeaderPanelComponent implements AfterViewInit, OnInit {
esri.featureLayer({
url: this.appConfigService.getConfig()['externalAppConfig']['AGOLevacOrders'].toString(),
ignoreRenderer: true,
precision: 3,
precision: 10,
style: (feature) => {
if (feature.properties.ORDER_ALERT_STATUS === 'Order') {
return {
Expand Down

0 comments on commit fc821a0

Please sign in to comment.