mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-17 08:41:41 -07:00
Release of improve census tract display info (#1480)
* will replace mapbox logo (#1477) * Replace maplibre logo with mapbox * change the logo go to mapbox * Add CodeQL and modify mapbox logo via useRef() * Make side panel formula more apparent (#1481) * Add ExceedBurden and CategorySpacer - create ExceedBurden component that is used twice - create a .categorySpacer class for the AND component - modify indicator styling to work with background higlighting - add BE stubs for Burden booleans - remove Indicators header - add copy to intl * Add comments on disadv. indicator - darken bg color - add a border - bold the text * Adds indicator arrow and sub text to sidepanel - add threshold to IndicatorInfo - update SASS for indicatorValueCol - update tests - add constants to intl * Make disadv indicators bold - add 1px margin between indicators * Add BE signals for new sidepanel - tested with staging backend * Add staging hash to URL * Fix poverty backend signal - refactor backend signals in constants file * Make exceed burden value bold * Refactor indicator values - remove arrows and subtext when value is N/A - Show -- when value is N/A - intl alt tags in indicator - fix alignment of arrows - update snapshots * Revert settings.json file * revert settings file again * Refactor what is displayed when data unavailable - add an unavailable icon - add data is not available subtext - modify low income threshold - update snapshots - factor out rendered logic to JSX functions - update image alt tags and intl * Refactor Indicator component to unit test - Add unit test for Indicator value icon - Add unit test for Indicator value sub-text - update snapshots * Add de-coupled BE signals * Rebase hotfix * Fix indicator value 0 shows N/A icon - remove coercion of 0 as null - make components check null / failure case first and default all else - update unit test to account for this use case - update snapshots * Add null check for percentage suffix - update unit tests - update snapshots * remove cypress zoom test - intermittent failure continue * revert cypress to 8.3.0 * Revert cypress-cucumber * Add Chrome to frontend deploy action * Update logo css classname after update to maplibre (#1482) * Add new wording to the map panel that appears upon load when no tract is selected and Outstanding CEQ changes to sidepanel (#1483) * Add new side panel unselected tract - add new icons - refactor old component - follow component folder pattern - update snapshot tests - add to intl * Add bold to text, add spacing and correct typos * Add tabindex to sidepanel content to pass a11y * Refactor i18n anti-patterns on explore tool page - add i18n patterns for nesting - add i18n pattern for partial strings - add i18n rich-text functions - add i18n pattern for minimal context - add i18n pattern for dates - add i18n pattern for numbers - add i18n pattern for centralizing rich text functions - add i18n patter for description - add i18n pattern for ids - see shared drive file J40 Localization Patterns for status on refactor * Remove links of expired public engagement sessions - allow cypress tests to pass * Update snapshots for public enagement page * Copy updates to non-selected side panel - update snapshots * Updates to side panel copy - ag loss and building loss text - clean transit - NPL RMP sites - proportion to percent - update snapshots - updates to es.json * Updates from QA - make title smaller - make margins above icons smaller - add bottom margin on container - add census before tracts in copy - update snapshots * Update snapshot after rebase * disable max-len on description fields on i18n copy (#1487) * Remove color key from Explore the tool page (#1484) * Remove color key * Add comment to Language component * Move tribal note copy to meth page - adjust responsive sizing props on Grid to allow for proper mobile viewing on Explore page * Add responsive size to text under map - reduce z-index of territory focus control so that it doesn't go over the survey button on mobile * Rewrite the two "notes about" the "low" datasets (#1489) * Refactor all copy to adhere to recommended patterns - remove LowIncome component - add intl README - update snapshots * Fix key error missing in datasetCard - update type in IIndicators - update snapshots * Add two notes on low dataset cards - refactor DatasetCard to standard component pattern - add a note to the interface - update snapshots * Add function comment to force re-build * Update missing sass module file name * Update sidepanel non-selected copy (#1495) * Update sidepanel non-selected copy - update snapshots * Update URL in deploy FE for cypress test * removing trailing slash * Add wording to UI that calls out improvements to display of census tract information (#1492) * Adds census tract alert on all pages - add i18n text - updates snapshots - makes public engagement page a fast link * Style the Alert to have more space around it * Update copy on Alert - update snapshots * Swap gerkhin order * Set Alert to expire on Apr 15th 2022 * Add WHEJAC meetings (#1501) * Add WHEJAC meetings - add expired icons - automatically load expired icons when event has passed - update snapshots * Update public engagement button * Remove public eng gherkin tests - need to troubleshoot why these are failing * Remove the before CEQ in copy * Make the count of thresholds exceeded on the side panel more clear (#1503) * Update category / thrsh count in side panel - connect BE signal of CC to side panel - i18n functions to call from AreaDetail component - update snapshots - * Update send feedback - color and icon - update snapshots * Update both exceed statements in sidepanel - update snapshots * Update copy for higher ed and high school (#1502) * Update copy for higher ed and high school - update dataset cards - update taskforce card AND - update side panel indicator titles - add i18n for dataset cards title - update snapshots * Update threshold values for Higher ed and HS. - update snapshots * Update AND clause - missing 'of' in copy - update BE signal for non-higher ed enrollment signal
This commit is contained in:
parent
dc981919f1
commit
db6b5de24e
91 changed files with 5339 additions and 3220 deletions
|
@ -4,44 +4,37 @@ import {isMobile as isMobileReactDeviceDetect} from 'react-device-detect';
|
|||
|
||||
export const isMobile = isMobileReactDeviceDetect;
|
||||
|
||||
const XYZ_SUFFIX = '{z}/{x}/{y}.pbf';
|
||||
export const featureURLForTilesetName = (tilesetName: string): string => {
|
||||
// The feature tile base URL and path can either point locally or the CDN.
|
||||
// This is selected based on the DATA_SOURCE env variable.
|
||||
const featureTileBaseURL = process.env.DATA_SOURCE === 'local' ?
|
||||
process.env.GATSBY_LOCAL_TILES_BASE_URL :
|
||||
process.env.GATSBY_CDN_TILES_BASE_URL;
|
||||
|
||||
const featureTilePath = process.env.DATA_SOURCE === 'local' ?
|
||||
process.env.GATSBY_DATA_PIPELINE_SCORE_PATH_LOCAL :
|
||||
process.env.GATSBY_DATA_PIPELINE_SCORE_PATH;
|
||||
|
||||
return [
|
||||
featureTileBaseURL,
|
||||
featureTilePath,
|
||||
process.env.GATSBY_MAP_TILES_PATH,
|
||||
tilesetName,
|
||||
XYZ_SUFFIX,
|
||||
].join('/');
|
||||
};
|
||||
export const FEATURE_TILE_HIGH_ZOOM_URL = featureURLForTilesetName('high');
|
||||
export const FEATURE_TILE_LOW_ZOOM_URL = featureURLForTilesetName('low');
|
||||
|
||||
// Staging links for testing:
|
||||
// export const FEATURE_TILE_HIGH_ZOOM_URL = `https://justice40-data.s3.amazonaws.com/data-pipeline-staging/1297/deee14dd93b783c8d366434dc8438a281b5c89df/data/score/tiles/high/${XYZ_SUFFIX}`;
|
||||
// export const FEATURE_TILE_LOW_ZOOM_URL = `https://justice40-data.s3.amazonaws.com/data-pipeline-staging/1297/deee14dd93b783c8d366434dc8438a281b5c89df/data/score/tiles/low/${XYZ_SUFFIX}`;
|
||||
|
||||
|
||||
// Performance markers
|
||||
export const PERFORMANCE_MARKER_MAP_IDLE = 'MAP_IDLE';
|
||||
|
||||
// ******* PROPERTIES FROM TILE SERVER **************
|
||||
export type J40Properties = { [key: string]: any };
|
||||
|
||||
// Properties
|
||||
export const SCORE_PROPERTY_HIGH = 'SM_PFS';
|
||||
export const SCORE_PROPERTY_LOW = 'M_SCORE';
|
||||
|
||||
// ****** SIDE PANEL BACKEND SIGNALS ***********
|
||||
|
||||
// Set the threshold percentile used by most indicators in the side panel
|
||||
export const DEFAULT_THRESHOLD_PERCENTILE = 90;
|
||||
|
||||
// General Census Track Info
|
||||
export const GEOID_PROPERTY = 'GEOID10';
|
||||
export const COUNTY_NAME = 'CF';
|
||||
export const STATE_NAME = 'SF';
|
||||
export const TOTAL_POPULATION = 'TPF';
|
||||
|
||||
/**
|
||||
* The SCORE_BOUNDAY_THRESHOLD will determine if the tract is disadvantaged
|
||||
* or not. Currently all values are railed to 0 or 1. If the
|
||||
* SCORE_PROPERTY_HIGH is greater than SCORE_BOUNDARY_THRESHOLD,
|
||||
* the tract will be considered disadvantaged.
|
||||
*/
|
||||
export const SCORE_BOUNDARY_THRESHOLD = 0.6;
|
||||
|
||||
// Determines the X of Y threshold exceeded
|
||||
export const TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS = 'TC';
|
||||
export const TOTAL_NUMBER_OF_INDICATORS = 'THRHLD';
|
||||
export const COUNT_OF_CATEGORIES_DISADV = 'CC';
|
||||
|
||||
export const SIDE_PANEL_STATE = 'UI_EXP';
|
||||
export const SIDE_PANEL_STATE_VALUES = {
|
||||
NATION: 'Nation',
|
||||
|
@ -49,102 +42,142 @@ export const SIDE_PANEL_STATE_VALUES = {
|
|||
ISLAND_AREAS: 'Island Areas',
|
||||
};
|
||||
|
||||
export const THRHLD = 'TERRITORY_THRESHOLD';
|
||||
|
||||
// Indicator values:
|
||||
export const ASTHMA_PERCENTILE = 'AF_PFS';
|
||||
export const COUNTY_NAME = 'CF';
|
||||
export const DIABETES_PERCENTILE = 'DF_PFS';
|
||||
export const DIESEL_MATTER_PERCENTILE = 'DSF_PFS';
|
||||
export const ENERGY_PERCENTILE = 'EBF_PFS';
|
||||
export const HEART_PERCENTILE = 'HDF_PFS';
|
||||
export const HIGH_SCHOOL_PROPERTY_PERCENTILE = `HSEF`;
|
||||
export const HOUSING_BURDEN_PROPERTY_PERCENTILE = 'HBF_PFS';
|
||||
export const LEAD_PAINT_PERCENTILE = 'LPF_PFS';
|
||||
export const LIFE_PERCENTILE = 'LLEF_PFS';
|
||||
export const LINGUISTIC_ISOLATION_PROPERTY_PERCENTILE = 'LIF_PFS';
|
||||
export const LOW_MEDIAN_INCOME_PERCENTILE = 'LMI_PFS';
|
||||
export const PM25_PERCENTILE = 'PM25F_PFS';
|
||||
export const POVERTY_PROPERTY_PERCENTILE = 'P200_PFS';
|
||||
export const STATE_NAME = 'SF';
|
||||
export const TOTAL_POPULATION = 'TPF';
|
||||
export const TRAFFIC_PERCENTILE = 'TF_PFS';
|
||||
export const UNEMPLOYMENT_PROPERTY_PERCENTILE = 'UF_PFS';
|
||||
export const WASTEWATER_PERCENTILE = 'WF_PFS';
|
||||
export const EXP_AGRICULTURE_LOSS_PERCENTILE = 'EALR_PFS';
|
||||
export const EXP_BUILDING_LOSS_PERCENTILE = 'EBLR_PFS';
|
||||
export const EXP_POPULATION_LOSS_PERCENTILE = 'EPLR_PFS';
|
||||
export const MEDIAN_HOME_VALUE_PERCENTILE = 'MHVF_PFS';
|
||||
export const POVERTY_BELOW_100_PERCENTILE = 'P100_PFS';
|
||||
export const POVERTY_BELOW_200_PERCENTILE = 'P200_PFS';
|
||||
export const PROXIMITY_NPL_SITES_PERCENTILE = 'NPL_PFS';
|
||||
export const PROXIMITY_RMP_SITES_PERCENTILE = 'RMP_PFS';
|
||||
export const PROXIMITY_TSDF_SITES_PERCENTILE = 'TSDF_PFS';
|
||||
export const HIGHER_ED_PERCENTILE = 'CA';
|
||||
|
||||
export const ISLAND_AREAS_UNEMPLOYMENT_LOW_HS_EDU_PERCENTILE_FIELD= 'IAULHSE_PFS';
|
||||
export const ISLAND_AREAS_POVERTY_LOW_HS_EDU_PERCENTILE_FIELD= 'IAPLHSE_PFS';
|
||||
export const ISLAND_AREAS_LOW_MEDIAN_INCOME_LOW_HS_EDU_PERCENTILE_FIELD= 'IALMILHSE_PFS';
|
||||
export const ISLAND_AREAS_LOW_HS_EDU_PERCENTILE_FIELD= 'IALHE_PFS';
|
||||
export const ISLAND_AREAS_HS_EDU_PERCENTAGE_FIELD= 'IAHSEF';
|
||||
|
||||
// Category booleans (disadvantaged or not):
|
||||
// Climate category
|
||||
export const IS_CLIMATE_FACTOR_DISADVANTAGED_M = 'M_CLT';
|
||||
export const IS_ENERGY_FACTOR_DISADVANTAGED_M = 'M_ENY';
|
||||
export const IS_TRANSPORT_FACTOR_DISADVANTAGED_M = 'M_TRN';
|
||||
export const IS_HOUSING_FACTOR_DISADVANTAGED_M = 'M_HSG';
|
||||
export const IS_POLLUTION_FACTOR_DISADVANTAGED_M = 'M_PLN';
|
||||
export const IS_WATER_FACTOR_DISADVANTAGED_M = 'M_WTR';
|
||||
export const IS_HEALTH_FACTOR_DISADVANTAGED_M = 'M_HLTH';
|
||||
export const IS_WORKFORCE_FACTOR_DISADVANTAGED_M = 'M_WKFC';
|
||||
export const IS_CLIMATE_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_CLT_EOMI';
|
||||
|
||||
// Total indicators values:
|
||||
export const TOTAL_NUMBER_OF_DISADVANTAGE_INDICATORS = 'TC';
|
||||
export const TOTAL_NUMBER_OF_INDICATORS = 'THRHLD';
|
||||
export const EXP_AGRICULTURE_LOSS_PERCENTILE = 'EALR_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_EXP_AGR_LOSS = 'EAL_ET';
|
||||
|
||||
// Indicator booleans (disadvangted or not): (GTE = greater than or equal)
|
||||
export const IS_GTE_90_EXP_POP_LOSS_AND_IS_LOW_INCOME = 'EPLRLI';
|
||||
export const IS_GTE_90_EXP_AGR_LOSS_AND_IS_LOW_INCOME = 'EALRLI';
|
||||
export const IS_GTE_90_EXP_BLD_LOSS_AND_IS_LOW_INCOME = 'EBLRLI';
|
||||
export const IS_GTE_90_PM25_AND_IS_LOW_INCOME = 'PM25LI';
|
||||
export const IS_GTE_90_ENERGY_BURDEN_AND_IS_LOW_INCOME = 'EBLI';
|
||||
export const IS_GTE_90_DIESEL_PM_AND_IS_LOW_INCOME = 'DPMLI';
|
||||
export const IS_GTE_90_TRAFFIC_PROX_AND_IS_LOW_INCOME = 'TPLI';
|
||||
export const IS_GTE_90_LEAD_PAINT_AND_MEDIAN_HOME_VAL_AND_IS_LOW_INCOME = 'LPMHVLI';
|
||||
export const IS_GTE_90_HOUSE_BURDEN_AND_IS_LOW_INCOME = 'HBLI';
|
||||
export const IS_GTE_90_RMP_AND_IS_LOW_INCOME = 'RMPLI';
|
||||
export const IS_GTE_90_SUPERFUND_AND_IS_LOW_INCOME = 'SFLI';
|
||||
export const IS_GTE_90_HAZARD_WASTE_AND_IS_LOW_INCOME = 'HWLI';
|
||||
export const IS_GTE_90_WASTEWATER_AND_IS_LOW_INCOME = 'WDLI';
|
||||
export const IS_GTE_90_DIABETES_AND_IS_LOW_INCOME = 'DLI';
|
||||
export const IS_GTE_90_ASTHMA_AND_IS_LOW_INCOME = 'ALI';
|
||||
export const IS_GTE_90_HEART_DISEASE_AND_IS_LOW_INCOME = 'HDLI';
|
||||
export const IS_GTE_90_LOW_LIFE_EXP_AND_IS_LOW_INCOME = 'LLELI';
|
||||
export const IS_GTE_90_LINGUISITIC_ISO_AND_IS_LOW_INCOME = 'LILHSE';
|
||||
export const IS_GTE_90_BELOW_100_POVERTY_AND_LOW_HIGH_SCHOOL_EDU = 'PLHSE';
|
||||
export const IS_GTE_90_LOW_MEDIAN_INCOME_AND_LOW_HIGH_SCHOOL_EDU = 'LMILHSE';
|
||||
export const IS_GTE_90_UNEMPLOYMENT_AND_LOW_HIGH_SCHOOL_EDU = 'ULHSE';
|
||||
export const EXP_BUILDING_LOSS_PERCENTILE = 'EBLR_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_EXP_BLD_LOSS = 'EBL_ET';
|
||||
|
||||
export const EXP_POPULATION_LOSS_PERCENTILE = 'EPLR_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_EXP_POP_LOSS = 'EPL_ET';
|
||||
|
||||
export const IS_EXCEED_BOTH_SOCIO_INDICATORS_M = 'M_EBSI';
|
||||
|
||||
export const POVERTY_BELOW_200_PERCENTILE = 'P200_PFS';
|
||||
export const IS_FEDERAL_POVERTY_LEVEL_200 = 'FPL200S';
|
||||
export const IS_HIGHER_ED_PERCENTILE = 'CA_LT20';
|
||||
export const TOTAL_THRESHOLD_CRITERIA = 'TC';
|
||||
export const IS_GTE_90_ISLAND_AREA_UNEMPLOYMENT_AND_IS_LOW_HS_EDU_2009 = 'IAULHSE';
|
||||
export const IS_GTE_90_ISLAND_AREA_BELOW_100_POVERTY_AND_IS_LOW_HS_EDU_2009 = 'IAPLHSE';
|
||||
export const IS_GTE_90_ISLAND_AREA_LOW_MEDIAN_INCOME_AND_IS_LOW_HS_EDU_2009 = 'IALMILHSE';
|
||||
export const ISLAND_AREA_LOW_HS_EDU = 'IALHE';
|
||||
export const IS_LOW_HS_EDUCATION_LOW_HIGHER_ED_PRIORITIZED = 'LHE';
|
||||
|
||||
// The name of the layer within the tiles that contains the score
|
||||
export const SCORE_SOURCE_LAYER = 'blocks';
|
||||
export const HIGHER_ED_PERCENTILE = 'CA';
|
||||
export const IS_HIGHER_ED_PERCENTILE = 'CA_LT20';
|
||||
|
||||
export const NON_HIGHER_ED_PERCENTILE = 'NCA';
|
||||
|
||||
|
||||
// Energy category
|
||||
export const IS_ENERGY_FACTOR_DISADVANTAGED_M = 'M_ENY';
|
||||
export const IS_ENERGY_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_ENY_EOMI';
|
||||
|
||||
export const ENERGY_PERCENTILE = 'EBF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_ENERGY_BURDEN = 'EB_ET';
|
||||
|
||||
export const PM25_PERCENTILE = 'PM25F_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_PM25 = 'PM25_ET';
|
||||
|
||||
|
||||
// Transport category
|
||||
export const IS_TRANSPORT_FACTOR_DISADVANTAGED_M = 'M_TRN';
|
||||
export const IS_TRANSPORT_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_TRN_EOMI';
|
||||
|
||||
export const DIESEL_MATTER_PERCENTILE = 'DSF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_DIESEL_PM = 'DS_ET';
|
||||
|
||||
export const TRAFFIC_PERCENTILE = 'TF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_TRAFFIC_PROX = 'TP_ET';
|
||||
|
||||
|
||||
// Housing category
|
||||
export const IS_HOUSING_FACTOR_DISADVANTAGED_M = 'M_HSG';
|
||||
export const IS_HOUSING_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_HSG_EOMI';
|
||||
|
||||
export const HOUSING_BURDEN_PROPERTY_PERCENTILE = 'HBF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_HOUSE_BURDEN = 'HB_ET';
|
||||
|
||||
export const LEAD_PAINT_PERCENTILE = 'LPF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_LEAD_PAINT_AND_MEDIAN_HOME_VAL = 'LPP_ET';
|
||||
|
||||
// export const MEDIAN_HOME_VALUE_PERCENTILE = 'MHVF_PFS'; // No longer showing in UI
|
||||
|
||||
|
||||
// Pollution category
|
||||
export const IS_POLLUTION_FACTOR_DISADVANTAGED_M = 'M_PLN';
|
||||
export const IS_POLLUTION_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_PLN_EOMI';
|
||||
|
||||
export const PROXIMITY_TSDF_SITES_PERCENTILE = 'TSDF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_HAZARD_WASTE = 'TSDF_ET';
|
||||
|
||||
export const PROXIMITY_NPL_SITES_PERCENTILE = 'NPL_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_SUPERFUND = 'NPL_ET';
|
||||
|
||||
export const PROXIMITY_RMP_SITES_PERCENTILE = 'RMP_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_RMP = 'RMP_ET';
|
||||
|
||||
|
||||
// Water category
|
||||
export const IS_WATER_FACTOR_DISADVANTAGED_M = 'M_WTR';
|
||||
export const IS_WATER_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_WTR_EOMI';
|
||||
|
||||
export const WASTEWATER_PERCENTILE = 'WF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_WASTEWATER = 'WD_ET';
|
||||
|
||||
|
||||
// Health category
|
||||
export const IS_HEALTH_FACTOR_DISADVANTAGED_M = 'M_HLTH';
|
||||
export const IS_HEALTH_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_HLTH_EOMI';
|
||||
|
||||
export const ASTHMA_PERCENTILE = 'AF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_ASTHMA = 'A_ET';
|
||||
|
||||
export const DIABETES_PERCENTILE = 'DF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_DIABETES = 'DB_ET';
|
||||
|
||||
export const HEART_PERCENTILE = 'HDF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_HEART_DISEASE = 'HD_ET';
|
||||
|
||||
export const LIFE_PERCENTILE = 'LLEF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_LOW_LIFE_EXP = 'LLE_ET';
|
||||
|
||||
|
||||
// Workforce category
|
||||
export const IS_WORKFORCE_FACTOR_DISADVANTAGED_M = 'M_WKFC';
|
||||
export const IS_WORKFORCE_EXCEED_ONE_OR_MORE_INDICATORS_M = 'M_WKFC_EOMI';
|
||||
|
||||
export const LINGUISTIC_ISOLATION_PROPERTY_PERCENTILE = 'LIF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_LINGUISITIC_ISO = 'LISO_ET';
|
||||
|
||||
export const LOW_MEDIAN_INCOME_PERCENTILE = 'LMI_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_LOW_MEDIAN_INCOME = 'LMI_ET';
|
||||
export const ISLAND_AREAS_LOW_MEDIAN_INCOME_LOW_HS_EDU_PERCENTILE_FIELD= 'IALMILHSE_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_LOW_MEDIAN_INCOME = 'IA_LMI_ET';
|
||||
|
||||
export const UNEMPLOYMENT_PROPERTY_PERCENTILE = 'UF_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_UNEMPLOYMENT = 'UN_ET';
|
||||
export const ISLAND_AREAS_UNEMPLOYMENT_LOW_HS_EDU_PERCENTILE_FIELD= 'IAULHSE_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_UNEMPLOYMENT = 'IA_UN_ET';
|
||||
|
||||
export const POVERTY_BELOW_100_PERCENTILE = 'P100_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_BELOW_100_POVERTY = 'POV_ET';
|
||||
export const ISLAND_AREAS_POVERTY_LOW_HS_EDU_PERCENTILE_FIELD= 'IAPLHSE_PFS';
|
||||
export const IS_EXCEEDS_THRESH_FOR_ISLAND_AREA_BELOW_100_POVERTY = 'IA_POV_ET';
|
||||
|
||||
export const IS_WORKFORCE_EXCEED_BOTH_SOCIO_INDICATORS_M = 'M_WKFC_EBSI';
|
||||
|
||||
export const HIGH_SCHOOL_PROPERTY_PERCENTILE = `HSEF`;
|
||||
export const IS_LOW_HS_EDUCATION_LOW_HIGHER_ED_PRIORITIZED = 'LHE';
|
||||
export const ISLAND_AREAS_HS_EDU_PERCENTAGE_FIELD= 'IAHSEF';
|
||||
export const ISLAND_AREA_LOW_HS_EDU = 'IALHE';
|
||||
|
||||
|
||||
// ********** MAP CONSTANTS ***************
|
||||
|
||||
// Source name constants
|
||||
export const BASE_MAP_SOURCE_NAME = 'base-map-source-name';
|
||||
export const HIGH_ZOOM_SOURCE_NAME = 'high-zoom-source-name';
|
||||
export const LOW_ZOOM_SOURCE_NAME = 'low-zoom-source-name';
|
||||
|
||||
// Layer ID constants
|
||||
export const SCORE_SOURCE_LAYER = 'blocks'; // The name of the layer within the tiles that contains the score
|
||||
export const BASE_MAP_LAYER_ID = 'base-map-layer-id';
|
||||
export const HIGH_ZOOM_LAYER_ID = 'high-zoom-layer-id';
|
||||
export const PRIORITIZED_HIGH_ZOOM_LAYER_ID = 'prioritized-high-zoom-layer-id';
|
||||
|
@ -152,6 +185,10 @@ export const LOW_ZOOM_LAYER_ID = 'low-zoom-layer-id';
|
|||
export const FEATURE_BORDER_LAYER_ID = 'feature-border-layer-id';
|
||||
export const SELECTED_FEATURE_BORDER_LAYER_ID = 'selected-feature-border-layer-id';
|
||||
|
||||
// Used in layer filters:
|
||||
export const SCORE_PROPERTY_LOW = 'M_SCORE';
|
||||
export const SCORE_PROPERTY_HIGH = 'SM_PFS';
|
||||
|
||||
// Zoom
|
||||
export const GLOBAL_MIN_ZOOM = 3;
|
||||
export const GLOBAL_MAX_ZOOM = 22;
|
||||
|
@ -177,13 +214,6 @@ export const PRIORITIZED_FEATURE_FILL_COLOR = '#768FB3';
|
|||
export const FEATURE_BORDER_WIDTH = 0.8;
|
||||
export const SELECTED_FEATURE_BORDER_WIDTH = 5.0;
|
||||
|
||||
/**
|
||||
* This threshold will determine if the feature is prioritized
|
||||
* or not. Currently all values are railed to 0 or 1 so this value
|
||||
* doesn't really matter.
|
||||
*/
|
||||
export const SCORE_BOUNDARY_THRESHOLD = 0.6;
|
||||
|
||||
// Bounds - these bounds can be obtained by using the getCurrentMapBoundingBox() function in the map
|
||||
export const GLOBAL_MAX_BOUNDS: LngLatBoundsLike = [
|
||||
[-180.118306, 5.499550],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue